Skip to content

Commit

Permalink
DOC: use .joblib file extension rather than .pkl
Browse files Browse the repository at this point in the history
  • Loading branch information
lesteve committed Jun 18, 2018
1 parent 355d880 commit 066b501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tutorial/basic/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ which is more efficient on big data but it can only pickle to the disk
and not to a string::

>>> from sklearn.externals import joblib
>>> joblib.dump(clf, 'filename.pkl') # doctest: +SKIP
>>> joblib.dump(clf, 'filename.joblib') # doctest: +SKIP

Later, you can reload the pickled model (possibly in another Python process)
with::

>>> clf = joblib.load('filename.pkl') # doctest:+SKIP
>>> clf = joblib.load('filename.joblib') # doctest:+SKIP

.. note::

Expand Down

0 comments on commit 066b501

Please sign in to comment.