yandex / rep

Machine Learning toolbox for Humans
http://yandex.github.io/rep/
Other
687 stars 144 forks source link

Problems with LVQ in neurolab #74

Open arogozhnikov opened 8 years ago

arogozhnikov commented 8 years ago

The following minimal example by @mschlupp fails

from rep.estimators import NeurolabClassifier
import pandas as pd
clf = NeurolabClassifier(net_type='learning-vector')
ds = pd.DataFrame()
ds['feature1']=[0,1,2,3,4,5]
ds['feature2']=[5,7,2,4,7,9]
ds['y']=[0,0,0,1,1,1]
clf.fit(ds[['feature1','feature2']],ds['y'])

since transf makes no sense for LVQ.