Commit 94c27ef3 authored by Yue Zhao's avatar Yue Zhao
Browse files

documentation updates

Showing with 13 additions and 12 deletions
+13 -12
......@@ -287,14 +287,14 @@ In short, we recommend to use joblib or pickle for saving and loading PyOD model
See `"examples/save_load_model_example.py" <https://github.com/yzhao062/pyod/blob/master/examples/save_load_model_example.py>`_ for an example.
In short, it is simple as below:
.. code-block:: python
.. code-block:: python
from joblib import dump, load
from joblib import dump, load
# save the model
dump(clf, 'clf.joblib')
# load the model
clf = load('clf.joblib')
# save the model
dump(clf, 'clf.joblib')
# load the model
clf = load('clf.joblib')
----
......
......@@ -71,6 +71,7 @@ Full example: `knn_example.py <https://github.com/yzhao062/Pyod/blob/master/exam
.. code-block:: python
from pyod.utils.data import evaluate_print
# evaluate and print the results
print("\nOn Training Data:")
evaluate_print(clf_name, y_train, y_train_scores)
......
......@@ -8,11 +8,11 @@ In short, we recommend to use joblib or pickle for saving and loading PyOD model
See `"examples/save_load_model_example.py" <https://github.com/yzhao062/pyod/blob/master/examples/save_load_model_example.py>`_ for an example.
In short, it is simple as below:
.. code-block:: python
.. code-block:: python
from joblib import dump, load
from joblib import dump, load
# save the model
dump(clf, 'clf.joblib')
# load the model
clf = load('clf.joblib')
# save the model
dump(clf, 'clf.joblib')
# load the model
clf = load('clf.joblib')
Supports Markdown
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