<div dir="ltr">Hi, See: <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.loadtxt.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.loadtxt.html</a> for one way.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 6, 2017 at 8:27 AM, Sema Atasever <span dir="ltr"><<a href="mailto:s.atasever@gmail.com" target="_blank">s.atasever@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">Dear </span><span class="m_-5250678994509259399gmail-il" style="font-size:12.8px">scikit</span><span style="font-size:12.8px">-learn members,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have a dat file where the columns represent the features and the rows represent the protein. (you can see the dat file in the attachment)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">i want to use <b>sklearn.cluster.Birch</b> with this text file values as X which is the</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Parameters:<span class="m_-5250678994509259399gmail-m_2321009139742540830gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div><div style="font-size:12.8px">X : {array-like, sparse matrix}</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">How can i transform this text file values into X : {array-like, sparse matrix}. </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div style="font-size:12.8px">I would appreciate if you could advise on some methods.<br></div></div><div style="font-size:12.8px"><span style="font-size:12.8px">Thanks.</span></div></div>
<br>______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/scikit-learn</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Manoj,<br><a href="http://github.com/MechCoder" target="_blank">http://github.com/MechCoder</a><br></div></div></div></div></div></div>
</div>