Skip to content

Documentation: the import of KNeighborsClassifier is missing in "Getting Started" #258

Closed
@RobinVogel

Description

@RobinVogel

The getting started example at the bottom of this page misses the import of KNeighborsClassifier.
Also, changing the presentation of code in the *.rst file from:

>>> print("hello")

to:

::
    print("hello")

as in supervised.rst allows to copy and paste the code as a block and try it straightaway.

I tried to generate the documentation to solve that, I wrote this line but I keep getting:

$ cd doc; make html
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v2.2.0
loading translations [en]... done
loading pickled environment... done
[autosummary] generating autosummary for: auto_examples/index.rst, auto_examples/plot_metric_learning_examples.rst, auto_examples/plot_sandwich.rst, auto_examples/sg_execution_times.rst, getting_started.rst, index.rst, introduction.rst, metric_learn.rst, preprocessor.rst, supervised.rst, unsupervised.rst, user_guide.rst, weakly_supervised.rst
WARNING: [autosummary] failed to import 'metric_learn.Constraints': no module named metric_learn.Constraints

what is the process to build and test the website locally ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions