Closed duchesnay closed 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()
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()