Re:Andrew Ng updates his Machine Learning course
by bonniemuffin on Thursday May 19, 2022 @12:19PM
(#31436623)
OTOH, the time I spent learning Octave/Matlab for Andrew Ng's course was 100% wasted time, because I've never used it again in the 10+ years since I took the class, whereas time spent learning Python would've been useful to me in myriad other ways.
[ Parent
| on HN ]
Re:Andrew Ng updates his Machine Learning course
by rg111 on Thursday May 19, 2022 @02:52PM
(#31438564)
> the time I spent learning Octave/Matlab for Andrew Ng's course was 100% wasted time
Really?
If you have programming experience, you don't really need to learn Octave.
Some formulae were the code.
In case of others, the whole program was written, with one or two missing lines that you had to implement.
I spent zero time learning Octave, because there was nothing to learn.
Re:Andrew Ng updates his Machine Learning course
by nytesky on Thursday May 19, 2022 @01:00PM
(#31437178)
So sad to hear Mariah disparaged. I’m an Gen X engineer and Matlab is one of our first languages. Use it today still in aerospace but I would imagine Python suits software shops much better. Does Python handle matrix math as well?
Re:Andrew Ng updates his Machine Learning course
by sampo on Thursday May 19, 2022 @01:50PM
(#31437876)
> Does Python handle matrix math as well?
If you're playing around interactively, it's a bit easier to write (in Matlab)
m = [1 0 0 ; 0 0 -1 ; 0 1 0]
than (in Python) m = np.array([[1, 0, 0], [0, 0, -1], [0, 1, 0]])
Also a bit longer example: m = rand(3,4)
a = [0.1 0.2 0.3]
m \ a'
versus m = np.random.rand(3,4)
a = np.array([0.1, 0.2, 0.3])
np.linalg.lstsq(m, a.T)
wtf?
google...
fine!
a = np.array([[0.1, 0.2, 0.3]])
np.linalg.lstsq(m, a.T)
But if you're developing software, you can't really easily and reliably deploy Matlab or Octave to run in the cloud in your production systems, whereas Python you can.
Re:Andrew Ng updates his Machine Learning course
by DoubleFree on Thursday May 19, 2022 @01:09PM
(#31437294)
Matrix math in python is a bit clunkier, because matrices are not native to the language. That said, numpy, the standard for matrix math in python, is quite nice. Its documentation is, imo, miles ahead of matlab's and the APIs are a bit more sane.
Re:Andrew Ng updates his Machine Learning course
by jcadam on Thursday May 19, 2022 @01:25PM
(#31437541)
This brings up a good point. If the goal is to understand the underlying concepts, it's quite possible Octave is a better tool. Matrix math is fairly clunky in any mainstream programming language.
Re:Andrew Ng updates his Machine Learning course
by bowsamic on Thursday May 19, 2022 @01:09PM
(#31437288)
MATLAB is still in heavy use in physics, mainly for experiments bc of simulink and the control systems toolbox
Re:Andrew Ng updates his Machine Learning course
by jcadam on Thursday May 19, 2022 @01:22PM
(#31437484)
When I worked on the GPS III program back in the day, my job largely consisted of translating scientists' Matlab script into Ada.
Re:Andrew Ng updates his Machine Learning course
by FabienC on Friday May 20, 2022 @05:56AM
(#31445305)
Now there's an app for that https://www.adacore.com/qgen :)
Re:Andrew Ng updates his Machine Learning course
by LosWochosWeek on Thursday May 19, 2022 @01:42PM
(#31437762)
I hate MATLAB with a burning passion, but Simulink is a damn good piece of software.
Re:Andrew Ng updates his Machine Learning course
by londons_explore on Thursday May 19, 2022 @01:08PM
(#31437275)
It's fairly common I have a little dataset I need to do some fft's on and draw a graph or some other similar one-off task. MATLAB still wins for getting the job done.
I wish someone would make "MATLAB with all its toolboxes, but with python syntax, in a colab-like IDE".
Re:Andrew Ng updates his Machine Learning course
by AlotOfReading on Thursday May 19, 2022 @01:29PM
(#31437592)
Is that not what numpy/scipy with Jupyter (as well as the various distributions that package them) essentially provide? If you just want an all-in-one that has a supported Matlab FFI interface, there's Julia.