[scikit-learn] question in using Scikit-learn MLPClassifier?

linjia at ruijie.com.cn linjia at ruijie.com.cn
Tue Dec 6 06:12:47 EST 2016


Hi all:
        I uses a ‘Car Evaluation’ dataset from http://archive.ics.uci.edu/ml/machine-learning-databases/car/car.data to test the effect of MLP.  (I transfer some class in the data to digit value, e.g. ‘low’ to 1 ‘med’ to 2, ‘high ’to 3, the final dataset’s input is 6 dimension, output label is 4 dimension)
        However, the accuracy rate is not satisfied comparing to the result in Matlab which use BP algorithm too, I wonder if I should tune the parameter of MLP for better?

Attachment:

main code in matlab: accuracy 100% after train
net=newff([-1 1;-1 1;-1 1;-1 1;-1 1;-1 1;],[10 4],{'tansig','logsig'},'trainlm');

main code in MLP Code: accuracy 70% after fit
clf = MLPClassifier(solver='sgd', activation='logistic', max_iter=2000, learning_rate='adaptive',warm_start = True)





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20161206/3d893015/attachment-0001.html>


More information about the scikit-learn mailing list