Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>(<em>Disclaimer:</em> the following is untested. I currently only have access to a Windows installation of MATLAB)</p> <p>Try the following sequence of commands to start MATLAB (note that you should NOT use the <a href="http://www.mathworks.com/help/techdoc/ref/matlabunix.html#f7-630210" rel="nofollow noreferrer">-nojvm</a> option):</p> <pre><code># on your machine ssh -x user@host # on the host unset DISPLAY matlab -nodisplay </code></pre> <p>Once in MATLAB, you can explicitly check that Java is available:</p> <pre><code>&gt;&gt; usejava('jvm') &gt;&gt; java.lang.String('str') </code></pre> <p>Next, proceed to create and use the neural network (you just have to suppress <a href="http://www.mathworks.com/help/toolbox/nnet/ug/bss326e-1.html#bss326e-8" rel="nofollow noreferrer">training feedback</a>):</p> <pre><code>%# load sample dataset load simpleclass_dataset %# create and train neural network net = newpr(simpleclassInputs, simpleclassTargets, 20); net.trainParam.showWindow = false; %# no GUI (as @gnovice suggested) net.trainParam.showCommandLine = true; %# display in command line net.trainParam.show = 1; %# display every iteration net = train(net, simpleclassInputs, simpleclassTargets); %# predict and evaluate performance simpleclassOutputs = sim(net, simpleclassInputs); [c,cm] = confusion(simpleclassTargets,simpleclassOutputs) </code></pre> <p>As a side note, even though we disabled all display, we can still plot stuff (although invisible) and export figures to files, as I have shown in <a href="https://stackoverflow.com/questions/1853259/save-matlab-invisible-plot-under-terminal-as-an-image-with-same-size/1853388#1853388">previous</a> related <a href="https://stackoverflow.com/questions/4137628/render-matlab-figure-in-memory/4138622#4138622">questions</a>...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload