TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Math to Code – Interactive NumPy tutorial for engineers

137 点作者 vthommeret将近 5 年前

14 条评论

vthommeret将近 5 年前
Math to Code is an interactive Python tutorial (all client-side) to teach engineers how to implement math in papers.<p>I was inspired to create it while taking the Fast.ai course and seeing Jeremy Howard share [0] how a &quot;complicated&quot; Frobenius norm equation could be implemented in a single line of Python.<p>Math to Code uses the Skulpt library to interpret Python in JavaScript.<p>It&#x27;s open source here: <a href="https:&#x2F;&#x2F;github.com&#x2F;vthommeret&#x2F;mathtocode" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vthommeret&#x2F;mathtocode</a><p>I would appreciate any and all feedback!<p>[0] <a href="https:&#x2F;&#x2F;youtu.be&#x2F;4u8FxNEDUeg?t=1390" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;4u8FxNEDUeg?t=1390</a><p>&gt; <i>It&#x27;s time to start reading papers. And papers look something like this, which if you&#x27;re anything like me, that&#x27;s terrifying. And I&#x27;m not going to lie, it&#x27;s still the case when I start looking at a new paper, every single time, I think, I&#x27;m not smart enough to understand this. I just can&#x27;t get past that immediate reaction. So I just look at this stuff and I go, that&#x27;s not something I understand.</i> &gt; <i>But then I remember, this is the Adam paper and you&#x27;ve all seen Adam implemented in one cell of Microsoft Excel.</i> &gt; <i>1. Even familiar stuff looks complex in a paper!</i> &gt; <i>2. Papers are important for deep learning beyond the basics, but hard to read.</i> &gt; <i>3. Learn to pronounce Greek letters.</i>
评论 #23516034 未加载
评论 #23515321 未加载
评论 #23514234 未加载
neil_s将近 5 年前
Neat! I know python and wanted a quick primer in NumPy syntax recently for a quick data analysis, this is perfect. Would be nice if the input box was automatically focused when advancing to the next question.
评论 #23519167 未加载
nromiun将近 5 年前
Nice. Here is another similar resource that was posted recently.<p>1. <a href="https:&#x2F;&#x2F;github.com&#x2F;Jam3&#x2F;math-as-code&#x2F;blob&#x2F;master&#x2F;PYTHON-README.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Jam3&#x2F;math-as-code&#x2F;blob&#x2F;master&#x2F;PYTHON-READ...</a><p>The HN thread:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23507764" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23507764</a>
Donckele将近 5 年前
Good work! I’m learning, thank you.<p>Feedback: Please autofocus to input box - it will be a smoother experience!
barrenko将近 5 年前
This is cool. Got a coding interview task recently, ended up doing the whole thing with numpy and pandas, it was quite fun, and it did not feel like &quot;regular&quot; coding at all. So all my data science research ended up no totally worthless.
somethingsome将近 5 年前
I was expecting some math but there is only a norm, I would be more interested in how to transfer from advanced math to code. example : what would be a good code abstraction for a Borel Space
评论 #23515196 未加载
评论 #23513824 未加载
set92将近 5 年前
I had to access the solution for std because I missed the right position of <i></i> 2, I put it after the parenthesis. And in Fnorm I had to check it in the comments because I didn&#x27;t thought of the similarity with the m.prod() and the list.<p>Is a cool experiment, and it could be good to lose the fear in papers. Maybe you could add some exercises with formulas or different papers that are a must read.
rmelhem将近 5 年前
amazing! i love interactive (and free) tutorials. I&#x27;m blogging every free resource I can in the data science roadmap. Will include yours as well. Anyone have any other tool like that for Numpy? I figured out one for SQL called sqlbolt.com, which is dope too!
tchaffee将近 5 年前
This was useful, although too basic for me. I would love to see you add many more exercises.
rayraegah将近 5 年前
For slide 12 the correct answer[0] threw an error the first time but couldn&#x27;t reproduce it.<p>[0] <a href="https:&#x2F;&#x2F;pastebin.com&#x2F;raw&#x2F;AivpKE3u" rel="nofollow">https:&#x2F;&#x2F;pastebin.com&#x2F;raw&#x2F;AivpKE3u</a>
评论 #23514541 未加载
sharemywin将近 5 年前
Got stuck would be nice to get right answer like a help button
评论 #23513699 未加载
vthommeret将近 5 年前
Based on the feedback, Math to Code now includes a Show solution button which lets you toggle a solution on and off if you get stuck!
jackge将近 5 年前
Useless, since based on Python 2.* interpreter (and this is not indicated anywhere) : &quot;Skulpt is a Javascript implementation of Python 2.x.&quot; Nearly nothing of this runs on Python 3.<i>
jackge将近 5 年前
Useless, since based on Python 2. (and this is nowhere indicated) - the user string is interpreted with Sculpt <a href="https:&#x2F;&#x2F;github.com&#x2F;skulpt&#x2F;skulpt" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;skulpt&#x2F;skulpt</a>: Skulpt is a Javascript implementation of Python 2.x. Nothing of this runs on current Python 3.*, providing this kind of tutorials is confucing learners.
评论 #23518356 未加载