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.yurc...@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@python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>



-- 
Ali Ozcan
_______________________________________________
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn

Reply via email to