neurospin / pylearn-epac

Embarrassingly Parallel Array Computing: EPAC is a machine learning workflow builder.
BSD 3-Clause "New" or "Revised" License
12 stars 3 forks source link

ParGrid Fix semantic: ParGrid with children of several classes #1

Closed duchesnay closed 11 years ago

duchesnay commented 11 years ago

from sklearn import datasets from sklearn.svm import SVC from sklearn.lda import LDA from sklearn.feature_selection import SelectKBest X, y = datasets.make_classification(n_samples=100, n_features=500, n_informative=5)

from epac import ParGrid, ParMethods

wf = ParGrid(SVC(C=1), SVC(C=2), LDA()) wf.fit_predict(X=X, y=y) wf.reduce() wf.results.keys()