Commit b0c9959b authored by Gavin Lee's avatar Gavin Lee
Browse files

add renku run notebook

parent ef85a8ad
Pipeline #310413 passed with stage
in 17 seconds
%% Cell type:markdown id:cac88086-1bc3-4916-809f-85e7e94f8fe0 tags:
## Renku MLS Plug-in demo
%% Cell type:markdown id:2b928da5-636d-463c-a081-98586cf8c468 tags:
This plug-in allows you to compare across different `renku run` iterations in terms of pre-defined metrics.
%% Cell type:markdown id:a13b4e8a-660f-402a-8e53-72b68b198985 tags:
See `src/train.py` for the demonstration training file.
%% Cell type:code id:4b06791b-a3c2-45db-a788-69c8c39d0cf0 tags:
``` python
%%bash
cd ../ # Return to the main repository
python src/train.py data/wine/wine.data label RandomForestClassifier models/RFC
```
%%%% Output: stream
You chose the RandomForestClassifier model.
Accuracy: 1.0
%%%% Output: stream
/opt/conda/lib/python3.9/site-packages/xgboost/compat.py:36: FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.
from pandas import MultiIndex, Int64Index
%% Cell type:code id:c6544915-fda6-4728-92a4-faa27acb2be0 tags:
``` python
%%bash
cd ../ # Return to the main repository
python src/train.py data/wine/wine.data label LinearSVC models/SVC
```
%%%% Output: stream
You chose the LinearSVC model.
Accuracy: 0.9152542372881356
%%%% Output: stream
/opt/conda/lib/python3.9/site-packages/xgboost/compat.py:36: FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.
from pandas import MultiIndex, Int64Index
/opt/conda/lib/python3.9/site-packages/sklearn/svm/_base.py:1206: ConvergenceWarning: Liblinear failed to converge, increase the number of iterations.
warnings.warn(
%% Cell type:code id:7d2b84bb-0c7d-4095-8af5-83ff05e50c4f tags:
``` python
%%bash
cd ../ # Return to the main repository
python src/train.py data/wine/wine.data label XGBClassifier models/XGB
```
%%%% Output: stream
You chose the XGBClassifier model.
[01:12:17] WARNING: ../src/learner.cc:1115: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
Accuracy: 0.9830508474576272
%%%% Output: stream
/opt/conda/lib/python3.9/site-packages/xgboost/compat.py:36: FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.
from pandas import MultiIndex, Int64Index
/opt/conda/lib/python3.9/site-packages/xgboost/sklearn.py:1224: UserWarning: The use of label encoder in XGBClassifier is deprecated and will be removed in a future release. To remove this warning, do the following: 1) Pass option use_label_encoder=False when constructing XGBClassifier object; and 2) Encode your labels (y) as integers starting with 0, i.e. 0, 1, 2, ..., [num_class - 1].
warnings.warn(label_encoder_deprecation_msg, UserWarning)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment