Contenuto principale

plotregression

Tracciare la regressione lineare (da rimuovere)

plotregression sarà rimossa in una prossima release. Per ulteriori informazioni, vedere Transition Legacy Neural Network Code to dlnetwork Workflows.

Per suggerimenti sull'aggiornamento del codice, vedere Version History (Storico della versione).

Descrizione

plotregression(targets,outputs) traccia la regressione lineare di targets relativa a outputs.

esempio

plotregression(targs1,outs1,'name1',targs2,outs2,'name2',...) genera grafici multipli.

Esempi

comprimi tutto

Questo esempio mostra come tracciare la regressione lineare di una rete feed-forward.

[x,t] = simplefit_dataset;
net = feedforwardnet(10);
net = train(net,x,t);

Figure Neural Network Training (19-Apr-2026 04:07:48) contains an object of type uigridlayout.

y = net(x);
plotregression(t,y,'Regression')

Figure Regression (plotregression) contains an axes object. The axes object with title Regression: R=0.99999, xlabel Target, ylabel Output ~= 1*Target + -0.00095 contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Y = T, Fit, Data.

Argomenti di input

comprimi tutto

Target della rete, specificati come una matrice o un array di celle.

Output della rete, specificati come una matrice on un array di celle.

Cronologia versioni

Introdotto in R2008a

espandi tutto