@@ -35,25 +35,25 @@ persistence model, namely `pickle <https://docs.python.org/2/library/pickle.html
3535 >>> y[0] 
3636 0 
3737
38- In the specific case of scikit-learn, it may be better to use
39- joblib's  replacement of pickle (``joblib. dump `` & ``joblib. load ``),
40- which is more efficient on  objects that carry large numpy arrays internally as
41- is often the case for  fitted scikit-learn estimators, but can only pickle to the
42- disk and not to a  string::
38+ In the specific case of scikit-learn, it may be better to use joblib's 
39+ replacement of pickle (``dump `` & ``load ``), which is more efficient on 
40+ objects that carry large numpy arrays internally as is often the case for 
41+ fitted scikit-learn estimators, but can only pickle to the disk and not to a 
42+ string::
4343
44-  >>> from sklearn.externals  import joblib  
45-  >>> joblib. dump(clf, 'filename.joblib') # doctest: +SKIP 
44+  >>> from joblib  import dump, load  
45+  >>> dump(clf, 'filename.joblib') # doctest: +SKIP 
4646
4747Later you can load back the pickled model (possibly in another Python process)
4848with::
4949
50-  >>> clf = joblib. load('filename.joblib') # doctest:+SKIP 
50+  >>> clf = load('filename.joblib') # doctest:+SKIP 
5151
5252.. note ::
5353
54-  ``joblib. dump `` and ``joblib. load `` functions also accept file-like object
54+  ``dump `` and ``load `` functions also accept file-like object
5555 instead of filenames. More information on data persistence with Joblib is
56-  available `here  <https://pythonhosted.org/joblib /persistence.html >`_.
56+  available `here  <https://joblib.readthedocs.io/en/latest /persistence.html >`_.
5757
5858.. _persistence_limitations :
5959
0 commit comments