[scikit-learn] How can i write the birch prediction results to the file

Roman Yurchak rth.yurchak at gmail.com
Tue Aug 22 04:33:21 EDT 2017


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



More information about the scikit-learn mailing list