Location of Scikit-learn course documentation

I have scikit-learn 0.16.1 installed on Ubuntu 14.04 and working through a tutorial. SKL was installed with all the default configuration. The textbook indicates

The source of this tutorial can be found in the scikit-learn folder: scikit learn / doc / tutorial / text_analytics /

I used find on my drive and there is no tutorial folder. Nowhere. Does anyone know where these files are really installed?

+8
python scikit-learn ubuntu
source share
1 answer

Search package contents

If packages are installed, depends on how you installed scikit-learn

  • If you used the Ubuntu package system through

     sudo apt-get install python-sklearn python-sklearn-doc 

    (you often need a doc package to get supporting documentation), then the tutorial is simply missing. doc/ folder is not contained in the python-sklearn-doc package. See Error Report .

    You can find out the contents of the package through

     dpkg-query --listfiles python-sklearn-doc 
  • If you used the Python package index to set it using

     pip install --user --install-option="--prefix=" -U scikit-learn 

    then the installation should be in $HOME/.local/lib/python2.7/site-packages/sklearn . (as from pip show -f scikit-learn ). But a

     find . | grep -i tutorial 

    No tutorial/ folders found.

  • If you installed it from the source, consider reinstalling via pip, and a warning indicates that

A warning

Packages installed using the python setup.py installation command cannot be removed and updated later. To properly remove scikit-learn in this case, you must remove the sklearn folder from your Python site directory.

Decision

The solution is to use the source. Download the main file or execute it with git:

  git clone https://github.com/scikit-learn/scikit-learn.git 

The git archive has over 60 MiB, so you may prefer master zip .

+6
source share

All Articles