Hi,
When running GridSearchCV a huge number of processes are spawned which
makes my computer freeze. The same thing happens with
sklearn.cluster.KMeans.
I run Windows, scikit-learn 0.12.1. Same thing happens for Python 2.6
and 2.7.
This code creates the problem for me:
-
import numpy as np
from sklearn.grid_search import GridSearchCV
from sklearn.svm import SVC
tuned_parameters = [{'kernel': ['linear'],
'C': np.arange(0.1,2,0.1)}]
clf = GridSearchCV(SVC(C=1), tuned_parameters,
verbose=2,
n_jobs=2,
pre_dispatch=1)
num_points = 100
train_data = np.random.randn(num_points,100)
train_labels = np.random.randint(0,2,num_points)
clf.fit(train_data, train_labels, cv=5)
print clf.best_estimator_
-
Best Regards,
Erik
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general