Re:GNU Octave
by messe on Saturday November 19, 2016 @02:27PM
(#12995146)
What's wrong with:
No need to transpose, as numpy handles row and column vectors identically. Using the above variables `m` and `v`:
Where `@`, for those who don't know, is the matrix multiplication operator (`np.dot`) introduced in recent versions of python 3.
[ Parent
| on HN ]
Sounds like a case of familiarity being confused for ease of use.
Re:GNU Octave
by TheSpiceIsLife on Saturday November 19, 2016 @04:14PM
(#12995714)
What's wrong with .... introduced in recent versions of python 3.
Exactly.
Python3 is ancient, can we stop pretending otherwise?
Re:GNU Octave
by TAForObvReasons on Sunday November 20, 2016 @12:14AM
(#12997379)
PEP 465 introduced the infix operator @: https://www.python.org/dev/peps/pep-0465/
Python 3.5 was the first version of python3 to implement the PEP: https://docs.python.org/3.5/whatsnew/3.5.html
If I am reading the release notes correctly, Python 3.5.0 was released last year (2015-09-13): https://www.python.org/downloads/release/python-350/
It's fair to say that this is a relatively new development.
It's true that infix multiply is new, but infix multiply if I'm not mistaken is not a breaking change.
Re:GNU Octave
by TheSpiceIsLife on Sunday November 20, 2016 @02:11AM
(#12997724)
True.
I mean in the context as @sampo described it above ...
In the Stanford/Coursera machine learning class, Andrew Ng said that his teaching experience is that students pick up octave/matlab quicker and the course can cover more actual machine learning, compared to python where more time is spent learning the language.
Then "which version of Python, and how is that different..." etc.
Code targeting Python 3.2 which was released five years code is still compatible with the latest versions of Python 3. What is the issue exactly?
Re:GNU Octave
by collinmanderson on Wednesday November 23, 2016 @09:24AM
(#13022812)
There are still hundreds of projects that need to get ported to 3.x. http://portingdb.xyz
Re:GNU Octave
by collinmanderson on Friday December 02, 2016 @12:22PM
(#13090448)
That link above seems to have broken. Here's an alternative link: https://portingdb-encukou.rhcloud.com/