<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">And, answering your last question, a
good way to learn Data science using Python is, for I, "Python
data science handbook" that you can read as Jupyter notebooks:<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/jakevdp/PythonDataScienceHandbook">https://github.com/jakevdp/PythonDataScienceHandbook</a><br>
<br>
Le 20/06/2017 à 06:28, Gaël Pegliasco via scikit-learn a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:a94d7c53-c015-799e-2492-c11af9491424@makina-corpus.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="moz-cite-prefix">Hi,<br>
<br>
You may find these R/Python comparison-sheets useful in
understanding both languages syntaxes and concepts:<br>
<br>
<ul>
<li><a class="moz-txt-link-freetext"
href="https://www.datacamp.com/community/tutorials/r-or-python-for-data-analysis"
moz-do-not-send="true">https://www.datacamp.com/community/tutorials/r-or-python-for-data-analysis</a></li>
<li><a class="moz-txt-link-freetext"
href="http://pandas.pydata.org/pandas-docs/stable/comparison_with_r.html"
moz-do-not-send="true">http://pandas.pydata.org/pandas-docs/stable/comparison_with_r.html</a></li>
</ul>
<br>
Gaël,<br>
<br>
Le 18/06/2017 à 18:02, C W a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAE2FW2k5hbOj-9G9BZOAN-hsm158xA10Hwo+EG6+yQ=jWv=zjg@mail.gmail.com">
<div dir="ltr">Dear Scikit-learn,
<div><br>
</div>
<div>What are some good ways and resources to learn Python for
data analysis?</div>
<div><br>
</div>
<div>
<div>I am extremely frustrated using this thing. Everything
comes after a dot! Why would you type the sam thing at the
beginning of every line. It's not efficient.</div>
</div>
<div><br>
</div>
<div>code 1:</div>
<div>y_sin = np.sin(x)</div>
<div>y_cos = np.cos(x)</div>
<div><br>
</div>
<div>I know you can import the entire package without the "as
np", but I see np.something as the standard. Why?<br>
</div>
<div><br>
</div>
<div>
<div>
<div>Code 2:</div>
<div>model = LogisticRegression()</div>
<div>model.fit(X_train, y_train)</div>
</div>
<div>model.score(X_test, y_test)<br>
</div>
</div>
<div><br>
</div>
<div>In R, everything is saved to a variable. In the code
above, what if I accidentally ran model.fit(), I would not
know.</div>
<div><br>
</div>
<div>Code 3:</div>
from sklearn import linear_model<br>
reg = linear_model.Ridge (alpha = .5)<br>
reg.fit ([[0, 0], [0, 0], [1, 1]], [0, .1, 1])
<div><br>
</div>
<div>In the code above, sklearn > linear_model > Ridge,
one lives inside the other, it feels that there are multiple
layer, how deep do I have to dig in?</div>
<div><br>
</div>
<div>Can someone explain the mentality behind this setup?</div>
<div><br>
</div>
<div>Thank you very much!</div>
<div><br>
</div>
<div>M</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
scikit-learn mailing list
<a class="moz-txt-link-abbreviated" href="mailto:scikit-learn@python.org" moz-do-not-send="true">scikit-learn@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/scikit-learn" moz-do-not-send="true">https://mail.python.org/mailman/listinfo/scikit-learn</a>
</pre>
</blockquote>
<p><br>
</p>
<div class="moz-signature">-- <br>
<table style="border: none;">
<tbody>
<tr>
<td><a href="http://makina-corpus.com"
moz-do-not-send="true"><img alt="Makina Corpus"
src="cid:part5.6E04FA3E.1E4583DA@makina-corpus.com"
title="Site de Makina Corpus" class="" width=""></a>
<br>
<span style="font-family: verdana, geneva; font-size:
x-small;"><span><a
href="http://makina-corpus.com/formulaires/newsletters"
moz-do-not-send="true"><span>Newsletters</span></a></span>
| <span><a href="http://makina-corpus.com/formation"
moz-do-not-send="true"><span>Formations</span></a></span>
| <span><a href="https://twitter.com/makina_corpus"
moz-do-not-send="true"><span>Twitter</span></a></span>
</span><br>
</td>
<td>
<div> <span style="font-family: verdana, geneva;
font-size: x-small;">Gaël Pegliasco</span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">Chef de projets</span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">Tél : 02 51 79 80 84</span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">Portable : 06 41 69 16 09</span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">11 rue du Marchix FR-44000 Nantes</span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">-- </span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;"> <span><a
href="https://twitter.com/GPegliasco"
moz-do-not-send="true"><span>@GPegliasco</span></a></span><br>
<span style="font-family: verdana, geneva;
font-size: x-small;">-- </span><br>
<span style="font-family: verdana, geneva;
font-size: x-small;">Découvrez <a
href="http://makina-corpus.com/formation/etl-talend-open-studio"
moz-do-not-send="true">Talend Data Integration</a>,
LA solution d'intégration de données Open Source</span></span></div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
scikit-learn mailing list
<a class="moz-txt-link-abbreviated" href="mailto:scikit-learn@python.org">scikit-learn@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/scikit-learn">https://mail.python.org/mailman/listinfo/scikit-learn</a>
</pre>
</blockquote>
<p><br>
</p>
<div class="moz-signature">-- <br>
<table style="border: none;">
<tbody>
<tr>
<td><a href="http://makina-corpus.com"><img alt="Makina
Corpus"
src="cid:part12.4CC64BAB.3871DD95@makina-corpus.com"
title="Site de Makina Corpus" width=""></a>
<br>
<span style="font-family: verdana, geneva; font-size:
x-small;"><span><a
href="http://makina-corpus.com/formulaires/newsletters"><span>Newsletters</span></a></span>
| <span><a href="http://makina-corpus.com/formation"><span>Formations</span></a></span>
| <span><a href="https://twitter.com/makina_corpus"><span>Twitter</span></a></span>
</span><br>
</td>
<td>
<div>
<span style="font-family: verdana, geneva; font-size:
x-small;">Gaël Pegliasco</span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">Chef de projets</span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">Tél : 02 51 79 80 84</span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">Portable : 06 41 69 16 09</span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">11 rue du Marchix FR-44000 Nantes</span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">-- </span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">
<span><a href="https://twitter.com/GPegliasco"><span>@GPegliasco</span></a></span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">-- </span><br>
<span style="font-family: verdana, geneva; font-size:
x-small;">Découvrez <a
href="http://makina-corpus.com/formation/etl-talend-open-studio">Talend
Data Integration</a>, LA solution d'intégration de
données Open Source</span></span></div>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>