[scikit-learn] How can i write the birch prediction results to the file
aliozcan at gmail.com
Tue Aug 22 04:37:36 EDT 2017
Sema, you can use this
import numpy as np
np.savetxt('birch_predict.csv', birch_predict, delimiter=',')
On Tue, Aug 22, 2017 at 10:33 AM, Roman Yurchak <rth.yurchak at gmail.com>
> Hello Sema,
> On 22/08/17 11:24, Sema Atasever wrote:
> > "joblib.dump" produces a file format with npy extension so I can not
> open the file with the notepad editor. I can not see the predictions
> results inside the file.
>> Is there another way to save the prediction results in text format?
> Prediction results are just an array: you could use numpy.savetxt to save
> them in an ascii text format.
> scikit-learn mailing list
> scikit-learn at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the scikit-learn