[scikit-learn] How can i write the birch prediction results to the file
Ali Ozcan
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>
wrote:
> 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.
>
> --
> Roman
>
>
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
--
Ali Ozcan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20170822/b583982f/attachment.html>
More information about the scikit-learn
mailing list