Skip to content

Commit

Permalink
Merge pull request #538 from sibyl-dev/quickstart_tutorial
Browse files Browse the repository at this point in the history
Cleaning up quickstart and tutorials
  • Loading branch information
zyteka committed Mar 20, 2024
2 parents 6d8fd84 + 650a873 commit c647a09
Show file tree
Hide file tree
Showing 17 changed files with 353 additions and 628 deletions.
4 changes: 4 additions & 0 deletions pyreal/sample_applications/titanic.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ def load_transformers(save=False, use_saved=False):


def load_app(n_rows=None):
def pred_format_func(pred):
return "Survived" if pred else "Died"

x_train_orig, y = load_data(include_targets=True, n_rows=n_rows)
model = load_model()
transformers = load_transformers()
Expand All @@ -107,4 +110,5 @@ def load_app(n_rows=None):
y_train=y,
transformers=transformers,
feature_descriptions=feature_descriptions,
pred_format_func=pred_format_func,
)
File renamed without changes.
384 changes: 0 additions & 384 deletions tutorials/basic_explanation_generation.ipynb

This file was deleted.

124 changes: 91 additions & 33 deletions tutorials/demos/demo2_housing.ipynb

Large diffs are not rendered by default.

210 changes: 0 additions & 210 deletions tutorials/demos/using_pyreal.ipynb

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
254 changes: 254 additions & 0 deletions tutorials/quickstart.ipynb

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion tutorials/user_guide.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@
"source": [
"## Modelling\n",
"\n",
"We can now transform our training and testing data, and initialize, train, and evaluate our ML model."
"We can now transform our training and testing data, and initialize, train, and evaluate our ML model.\n",
"\n",
"In this guide, we will use LightGBM, a powerful and lightweight library that offers classfiers and regressors using the gradient boosting framework. \n",
"It is an effective choice for many ML use cases."
],
"metadata": {
"collapsed": false
Expand Down

0 comments on commit c647a09

Please sign in to comment.