首页

ML Code Exercises

221 点作者 mchab11 个月前

22 条评论

TrackerFF11 个月前
No one (well, few professionals at least) will reinvent the wheel when it comes to standard scientific computations and methods. Like numerical math, linear algebra, etc.<p>Looking through the problem sets in the link, the majority seems to be asking for just that.<p>If you&#x27;re wondering whether or not someone knows how to transpose a matrix, or find the eigenvalues, let them do that on the whiteboard. No need to leetcode-ify such problems, because with 99.99% probability they&#x27;ll provide you with solutions that are subpar compared to industry standard packages. There&#x27;s more than time and space complexity when it comes to these problems.<p>EDIT: Also, you&#x27;ll potentially lose a lot of high-quality candidates if you suddenly start to test people on methods they haven&#x27;t worked with or seen in quite a while.<p>If you ask something like &quot;please show us the equations for a support vector machine, and how you can compute a SVM&quot; you could fail even world class ML scientists, if they haven&#x27;t touched those for 10 years. Which is a very real possibility in the current ML scene.<p>I&#x27;d say that almost every ML interview I&#x27;ve had, or been part of, have been more big picture whiteboard interviews. Specific programming questions have ranked quite low on things to prioritize.
评论 #40926146 未加载
评论 #40926496 未加载
评论 #40926635 未加载
评论 #40926116 未加载
评论 #40926769 未加载
bArray11 个月前
This is quite a nice way to learn about ML, props for this!<p>Edit: I see a lot of people complaining about interviews, but instead I consider this a good resource for checking you understand fundamental principles.
评论 #40926288 未加载
esafak11 个月前
The hard part about ML isn&#x27;t the implementation but the theory. If you&#x27;re not sure what SVD is how is this going to help? <a href="https:&#x2F;&#x2F;www.deep-ml.com&#x2F;problem&#x2F;12" rel="nofollow">https:&#x2F;&#x2F;www.deep-ml.com&#x2F;problem&#x2F;12</a>
评论 #40929732 未加载
评论 #40926052 未加载
评论 #40927706 未加载
HiPHInch11 个月前
Thank you for your work! Is there something wrong with: <a href="https:&#x2F;&#x2F;www.deep-ml.com&#x2F;problem&#x2F;7" rel="nofollow">https:&#x2F;&#x2F;www.deep-ml.com&#x2F;problem&#x2F;7</a> ?
评论 #40927182 未加载
admissionsguy11 个月前
Looks like a decent problem set to accompany an introductory ML class. No need to get so defensive. However, I thought leetcode meant algorithmic problem solving while the problems here simply ask to implement the various elementary operations.
评论 #40926167 未加载
mrits11 个月前
The issue with leetcode type questions is that formally trained and experienced people often could not answer these questions without specifically practicing for them. Most of the topics on this list could be covered in an introduction course.
renegade-otter11 个月前
If you have to &quot;study&quot; something for interviews every single time because it&#x27;s absolutely not relevant to your day job - it&#x27;s probably bullshit.<p>Everyone copies the FAANG interview process because it looks cool - except that FAANG is just a welfare program for recent graduates, who indulge in peer interview hazing because they are not doing anything else. They don&#x27;t study for Leetcode because they want to DO something - they study because of the money. But in a real company you have to DO things.<p>What has Google done in the last decade that is REALLY useful? Google Gmail and Docs can be maintained by probably 50 people, their search has gotten useless and all they do is kill their own products because maintenance toil is a total drag.<p>Like the dumb brain teasers that Google &quot;pioneered&quot; in 2000s. How many golf balls can fit in a 747? I don&#x27;t know, but I can estimate how many can fit up your a...<p>This Leetcode nonsense will go the way of THAT, in time.<p>Just no.
评论 #40926471 未加载
评论 #40926800 未加载
评论 #40926143 未加载
评论 #40926091 未加载
drfunk11 个月前
Nice project! I have a few qualms with the instructions (sometimes misleading or unclear) and the implementation. For instance some problems fail, because 0. is considered different from 0.0<p>Using np.testing.assert_allclose in your asserts would solve this I think (<a href="https:&#x2F;&#x2F;numpy.org&#x2F;doc&#x2F;stable&#x2F;reference&#x2F;generated&#x2F;numpy.testing.assert_allclose.html" rel="nofollow">https:&#x2F;&#x2F;numpy.org&#x2F;doc&#x2F;stable&#x2F;reference&#x2F;generated&#x2F;numpy.testi...</a>).<p>Happy to contribute &#x2F; elaborate if you think it&#x27;s be useful! :)
评论 #40935403 未加载
diimdeep11 个月前
I like Code Kata approach, it allows to learn and practice.<p>But dislike siloed websites like Leetcode where they ask you to bear with their awful web experience, I want to keep my code and notes offline and close in case I need it in a year or 10 years.<p>Approach with simple test files and exercises is more appealing to me <a href="https:&#x2F;&#x2F;github.com&#x2F;dabeaz-course&#x2F;python-mastery">https:&#x2F;&#x2F;github.com&#x2F;dabeaz-course&#x2F;python-mastery</a><p>So what is the goal here, to be like Leetcode ? or spread knowledge ? If latter, put material as plain markdown and .py files on github repo, we will say thank you.
评论 #40930314 未加载
sourabhv11 个月前
While this might be helpful to gain a deeper understanding, but adding a time constraint and making it something that can be asked in an interview sounds painful. Please make this a github repo instead like python_koans
sk1100111 个月前
Typically what happens for ML engineering roles is that you have a regular Leetcode round as for any other SWE position and an additional round with ML questions without coding - there&#x27;s no ML-specific LC questions. Which is nice as a candidate because it&#x27;s yet another thing to prepare for, even if the questions are relevant and being able to solve them is kind of neat.
评论 #40926609 未加载
mchab11 个月前
Created a discord for anyone that had any recommendations or wants to stay up to date on new questions we are working on <a href="https:&#x2F;&#x2F;discord.gg&#x2F;s4uVTQwk" rel="nofollow">https:&#x2F;&#x2F;discord.gg&#x2F;s4uVTQwk</a>
ZoomerCretin11 个月前
The first example is a bit confusing.<p>Example: input: a = [[1,2],[2,4]], b = [1,2] output:[5, 10] reasoning: 1<i>1 + 2</i>2 = 5; 1<i>2+ 2</i>4 = 10<p>Which 1 and 2 correspond to the 1 and 2 from a and b?
评论 #40930189 未加载
MOARDONGZPLZ11 个月前
I haven’t seen anyone ask these types of questions for interviewing for ML positions. They feel like ChatGPT or straight from a textbook. Can you share how you arrived at these questions?
评论 #40926230 未加载
sweezyjeezy11 个月前
Edit: previous title was &quot;Leetcode for ML&quot; or somesuch...<p>I like the idea and might try some! But as a warning: leetcode is specifically aimed at prepping for interviews, and I&#x27;ve never seen questions like these in an interview (I&#x27;m somewhere between an MLE and ML researcher FWIW). The most common kinds of ML-specific things in my experience are:<p>- ML system design (basically everyone does this)<p>- ML knowledge questions (&quot;explain ADAM etc.&quot;)<p>- probability + statistics knowledge<p>- ML problem solving in a notebook (quite rare, but some do it)
评论 #40926086 未加载
评论 #40926639 未加载
DasCorCor11 个月前
This website is super buggy. Sign up with Google doesn&#x27;t work. The code editor keeps running in to tabs vs spaces issues. Defaults to 2 space tabs like it is Javascript.
评论 #40931192 未加载
iknownthing11 个月前
I&#x27;m curious how you run the python code in the browser
anualvis11 个月前
Is it down for anyone else too?
评论 #40927300 未加载
Xeamek11 个月前
Great resource!
kebsup11 个月前
It&#x27;s sad how a lot of people see this as &quot;a bad way to test job candidates&quot; rather than a &quot;fun way to practice ML skills&quot;.
评论 #40926630 未加载
评论 #40926487 未加载
评论 #40928073 未加载
htrp11 个月前
Please don&#x27;t.<p>Leetcode already ruined so many coding interviews by asking people to do bullshit like<p>&quot;Output data from a stream in order, make the solution performant&quot;<p>Why would you ruin ML for us too?<p>Looking at your site, problem #1 is Multiply a matrix times a vector..... in no universe is that a legitimate ML interview question.<p>Also ML is such a huge field (everything from statistical learning through to transformer neural networks), I fail to see how you could say your solution tests core skills. If I&#x27;m hiring for an ASR Role, it&#x27;s going to be very different than for a CV role.
评论 #40927900 未加载
评论 #40928090 未加载
rty3211 个月前
My nightmare has finally come true.
评论 #40926246 未加载
评论 #40926114 未加载