Hi All
I have trained my model with a csv file containing 10000 examples.
Currently I have decide to use my saved model with joblib in a web site.
So I have just one input and after passing this input to the model it
should assign a probability to test example.
data = list(csv.DictReader(open('data.csv', 'rU')))
vec = DictVectorizer()
data= vec.fit_transform(data).toarray()
new_example=vec.fit_transform({in dictionary form})
clf2 = joblib.load('SavedModel.pkl')
print(clf2.predict(my_sample))
the input has 13 string features but the error says it must be 494.
I think it must be something relevant to string to numerical.
Could you please tell me how should I pass my new example to the saved
model?
Best
Kaveh
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general