Submitting Assignment on Coursera ML in Octave

Muhriddin Ismoilov picture Muhriddin Ismoilov · Aug 31, 2017 · Viewed 15.8k times · Source

Programming assignment Week 3, Machine Learning, Andrew-ng, Coursera
System: Ubuntu 16.04
Octave 4.0.0

Problem: Cannot submit the code to the server. This code was successfully submitted from Windows env.

octave:1> submit
== Submitting solutions | Logistic Regression...
Login (email address): *************
Token: ************
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   983  100    25  100   958     11    436  0:00:02  0:00:02 --:--:--   437
error: structure has no member 'message'
error: called from
    submitWithConfiguration at line 35 column 5
    submit at line 40 column 3
error: evaluating argument list element number 2
error: called from
    submitWithConfiguration at line 35 column 5
    submit at line 40 column 3

Answer

Vaibhav Pandey picture Vaibhav Pandey · Aug 31, 2017

Octave 4.0.0 doesn't work well with submit scripts (on Ubuntu).

Check the version on your terminal:

octave --version

if it's 4.0.0 update it.

sudo add-apt-repository ppa:octave/stable

sudo apt update

sudo apt-get install octave

There is also warning in the discussions.