Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yue Zhao
pyod
Commits
94c27ef3
Commit
94c27ef3
authored
4 years ago
by
Yue Zhao
Browse files
Options
Download
Email Patches
Plain Diff
documentation updates
parent
a273749c
master
development
github/fork/Dobatymo/deprecated-use-of-setuptools
github/fork/GBR-613/master
github/fork/KulikDM/pythresh2
github/fork/gian21391/CBLOF_PR
github/fork/juliamariglia/master
github/fork/julienschuermans/fix/copod-docs
github/fork/luismavs/check_array
github/fork/madriss/development
github/fork/sai-krishna-msk/patch-1
github/fork/smarie/fix_issue_253
github/fork/tam17aki/development
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
v0.9.9
v0.9.8
v0.9.7
v0.9.6
v0.9.5
v0.9.4
V0.9.3
V0.9.2
V0.9.1
V0.9.0
V0.8.9
V0.8.8
V0.8.6
V0.8.4
V0.8.3
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.rst
+6
-6
README.rst
docs/example.rst
+1
-0
docs/example.rst
docs/model_persistence.rst
+6
-6
docs/model_persistence.rst
with
13 additions
and
12 deletions
+13
-12
README.rst
+
6
-
6
View file @
94c27ef3
...
...
@@ -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')
----
...
...
This diff is collapsed.
Click to expand it.
docs/example.rst
+
1
-
0
View file @
94c27ef3
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
docs/model_persistence.rst
+
6
-
6
View file @
94c27ef3
...
...
@@ -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')
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets