Hi Nafiseh.
Please direct questions like this to the scikit-learn mailing list or stackoverflow with the scikit-learn tag. However, you problem is unrelated to scikit-learn: you didn't import BallTree.

Andy


On 04/06/2015 03:26 AM, nafise mehdipoor wrote:
Dear Andy,
I have windows 7 - x86 and I tried to install the Scipy package and Python separately, also I tried suggested versions, but it didn't work. So, I have installed Anaconda 2.1.0. But, when I want to use BallTree, the compiler doesn't find it. Would you please let me know why?

It is my code:

import numpy as np
np.random.seed(0)
X = np.random.random((10, 2))
tree = BallTree(X, leaf_size=2)
dist, ind = tree.query(X[0], k=3)
print ind
print dist
print X


*Error:*

File "...\Anaconda\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 580, in runfile
    execfile(filename, namespace)

tree = BallTree(X, leaf_size=2)

NameError: name 'BallTree' is not defined


Thank you.

Nafiseh.





On Monday, April 6, 2015 9:20 AM, nafise mehdipoor <mehdipour...@yahoo.com> wrote:


Dear Andy,
I have windows 7 and I tried to install the Scipy package and Python separately, I tried suggested versions, but it didn't work. So, I have installed Anaconda 2.1.0. But, when I want to use BallTree, it the compiler doesn't find it. Would you please let me know why?

Thank you.

Nafiseh.



On Tuesday, March 24, 2015 8:49 PM, nafise mehdipoor <mehdipour...@yahoo.com> wrote:


Dear Andy,
Thank you for the help.



On Tuesday, March 24, 2015 4:35 PM, Andy <t3k...@gmail.com> wrote:


Hi.
There was an issue in generating the docs afterwards.
The docs for the 0.16b1 version work again:
http://scikit-learn.org/dev/modules/generated/sklearn.neighbors.BallTree.html#sklearn.neighbors.BallTree
I don't think there were any major changes.
You can look at the docstring directly if you have it installed, using help(BallTree).

Andy

On 03/24/2015 10:52 AM, nafise mehdipoor wrote:
Hi,
Would you please let me know about some documents of "Ball Tree" of version 0.14 or 0.15. When I search for this, I just find the link below which is for version 0.13.1

http://scikit-learn.org/0.13/modules/generated/sklearn.neighbors.BallTree.html#sklearn.neighbors.BallTree

Actually, I need to know if we have still the behavior of version 0.13.1 in the following versions or there are any changes?
Thank you.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now.http://goparallel.sourceforge.net/


_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net  
<mailto:Scikit-learn-general@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general








------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to