Main Content

La traduzione di questa pagina non è aggiornata. Fai clic qui per vedere l'ultima versione in inglese.

plotregression

Traccia la regressione lineare

Descrizione

esempio

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

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 (23-Mar-2023 10:38:25) 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

Vedi anche