Skip to content
Snippets Groups Projects
Commit 538bad1a authored by Fabian Pedregosa's avatar Fabian Pedregosa
Browse files

Remove failing doctests.

From: Fabian Pedregosa <fabian.pedregosa@inria.fr>

git-svn-id: https://scikit-learn.svn.sourceforge.net/svnroot/scikit-learn/trunk@577 22fbfee3-77ab-4535-9bad-27d1bd3bc7d8
parent 9b559045
No related branches found
No related tags found
No related merge requests found
...@@ -30,15 +30,6 @@ def create_graph(samples, **kwargs): ...@@ -30,15 +30,6 @@ def create_graph(samples, **kwargs):
The following example creates a graph from samples and outputs the The following example creates a graph from samples and outputs the
first item, that is a tuple representing the distance from that first item, that is a tuple representing the distance from that
element to all other elements in sample: element to all other elements in sample:
>>> import numpy as np
>>> samples = np.array([[0., 0., 0.], [1., 0., 0.], [0., 1., 0.], [1., 1., 0.5]])
>>> graph = create_graph(samples, k=3)
>>> print graph[0]
[array([ 0., 1., 1.]), array([0, 2, 1])]
That is, it's at distance 0 from itself, at distance 1.0 from the
second element and equally distance 1.0 from the third element.
""" """
from scikits.learn.neighbors import Neighbors from scikits.learn.neighbors import Neighbors
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment