ImportError: No module named sklearn.cluster, Parameters extraction not yet performed!

2,883 views
Skip to first unread message

komkiew pinpimai

unread,
Feb 17, 2014, 7:34:48 PM2/17/14
to ductap...@googlegroups.com
Hi all,
I'm a new user. I got the errors as following this. I'm not quite sure is there anything wrong with my data. What should I do ?
I run ductape on Mac.


 Calculating parameters                            
100% [======================================================================]
                             Item 192 on 192 total                              Exception in thread Thread-1:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 808, in __bootstrap_inner
    self.run()
  File "/Library/Python/2.7/site-packages/ductape/phenome/biolog.py", line 2336, in run
    self.exp.clusterize(self.save_fig, self.n_clusters)
  File "/Library/Python/2.7/site-packages/ductape/phenome/biolog.py", line 1322, in clusterize
    from ductape.phenome.clustering import mean, kmeans, plotClusters
  File "/Library/Python/2.7/site-packages/ductape/phenome/clustering.py", line 11, in <module>
    from sklearn.cluster import KMeans, MeanShift, estimate_bandwidth
ImportError: No module named sklearn.cluster

13:26:05 - 2 - Clustering
13:26:05 - Parameters extraction not yet performed!
Traceback (most recent call last):
  File "/usr/local/bin/dphenome", line 626, in <module>
    ret = options.func(options, wdir, project)
  File "/usr/local/bin/dphenome", line 98, in dstart
    elbow=options.e):
  File "/usr/local/bin/dphenome", line 352, in doClusterPhenome
    biolog.addWells(wells, clustered=True, replace=True)
  File "/Library/Python/2.7/site-packages/ductape/storage/SQLite/database.py", line 3710, in addWells
    raise Exception('Parameters extraction not yet performed!')
Exception: Parameters extraction not yet performed!


Marco Galardini

unread,
Feb 18, 2014, 8:37:17 AM2/18/14
to komkiew pinpimai, ductap...@googlegroups.com
Hi komkiew,

Are you sure that the scikit-learn package is installed on your system?
You can either download it from their website http://scikit-learn.org/
or by using the python package manager (pip).

To make sure that the installation process went fine just type from
the terminal:
- python
- from sklearn.cluster import KMeans

Hope this helps,
Marco

----- Messaggio da dog...@gmail.com ---------
Data: Mon, 17 Feb 2014 16:34:48 -0800 (PST)
Da: komkiew pinpimai <dog...@gmail.com>
Rispondi-A:komkiew pinpimai <dog...@gmail.com>
Oggetto: [DuctApe] ImportError: No module named sklearn.cluster,
Parameters extraction not yet performed!
A: ductap...@googlegroups.com
> --
> You received this message because you are subscribed to the Google
> Groups "DuctApe" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to ductape-user...@googlegroups.com.
> To post to this group, send email to ductap...@googlegroups.com.
> Visit this group at http://groups.google.com/group/ductape-users.
>


----- Fine del messaggio da dog...@gmail.com -----



-------------------------------------------------
Marco Galardini
DBE - Department of Evolutionary Biology
University of Florence - Italy

e-mail: marco.g...@unifi.it
www: http://www.unifi.it/dblage/CMpro-v-p-51.html
phone: +39 055 2288249
mobile: +39 340 2808041
-------------------------------------------------

Reply all
Reply to author
Forward
0 new messages