Closed kribou closed 11 years ago
Since we create a VirtualList which re-use node memory, the node will change during iteration. This bug has been fixed by returning only key strings instead of nodes.
>>> from epac import CV, Methods, Pipe
>>> from sklearn.svm import SVC
>>> from sklearn.lda import LDA
>>> from sklearn.feature_selection import SelectKBest
>>> y = [1, 1, 2, 2]
>>> wf = CV(Methods(*[Pipe(SelectKBest(k=k), SVC())
... for k in [1, 5]]), n_folds=2, y=y)
>>> node1 = wf.get_node("CV/CV(nb=0)")
>>> node1
CV/CV(nb=0)
>>> node2 = wf.get_node("CV/CV(nb=1)")
>>> node2
CV/CV(nb=1)
>>> node1
CV/CV(nb=1)
Regular expression does not work in BaseNode.get_node
What we expect results are: