<div dir="ltr"><pre style="padding:9px;font-size:12px;color:rgb(51,51,51);border-radius:0px;margin-top:0px;margin-bottom:9.5px;line-height:19px;word-break:break-all;word-wrap:break-word;white-space:pre-wrap;background-color:rgb(245,245,245);border:none;overflow-x:auto;overflow-y:hidden"><span class="gmail-n">Sema, you can use this</span></pre><pre style="padding:9px;font-size:12px;color:rgb(51,51,51);border-radius:0px;margin-top:0px;margin-bottom:9.5px;line-height:19px;word-break:break-all;word-wrap:break-word;white-space:pre-wrap;background-color:rgb(245,245,245);border:none;overflow-x:auto;overflow-y:hidden"><span class="gmail-n">import numpy as np</span></pre><pre style="padding:9px;font-size:12px;color:rgb(51,51,51);border-radius:0px;margin-top:0px;margin-bottom:9.5px;line-height:19px;word-break:break-all;word-wrap:break-word;white-space:pre-wrap;background-color:rgb(245,245,245);border:none;overflow-x:auto;overflow-y:hidden"><span class="gmail-n">n</span>p<span class="gmail-o" style="font-family:arial,sans-serif;color:rgb(102,102,102)">.</span><span class="gmail-n" style="font-family:arial,sans-serif">savetxt</span><span class="gmail-p" style="font-family:arial,sans-serif">(</span><span class="gmail-s1" style="font-family:arial,sans-serif;color:rgb(64,112,160)">'birch_predict.csv'</span><span class="gmail-p" style="font-family:arial,sans-serif">, </span><span style="font-family:arial,sans-serif">birch_predict</span><span class="gmail-p" style="font-family:arial,sans-serif">,</span><span style="font-family:arial,sans-serif"> </span><span class="gmail-n" style="font-family:arial,sans-serif">delimiter</span><span class="gmail-o" style="font-family:arial,sans-serif;color:rgb(102,102,102)">=</span><span class="gmail-s1" style="font-family:arial,sans-serif;color:rgb(64,112,160)">','</span><span class="gmail-p" style="font-family:arial,sans-serif">)</span></pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 22, 2017 at 10:33 AM, Roman Yurchak <span dir="ltr"><<a href="mailto:rth.yurchak@gmail.com" target="_blank">rth.yurchak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Sema,<span class=""><br>
<br>
On 22/08/17 11:24, Sema Atasever wrote:<br>
> "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.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Is there another way to save the prediction results in text format?<br>
</blockquote>
<br></span>
Prediction results are just an array: you could use numpy.savetxt to save them in an ascii text format.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Roman</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org" target="_blank">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/scikit-learn</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Ali Ozcan</div></div></div>
</div>