network
Class: Autoencoder
Convert Autoencoder
object into network
object
Syntax
Description
Input Arguments
autoenc
— Trained autoencoder
Autoencoder
object
Trained autoencoder, returned as an object of the Autoencoder
class.
Output Arguments
net
— Neural network
network
object
Neural network, that is equivalent to the autoencoder autoenc
,
returned as an object of the network
class.
Examples
Create Network from Autoencoder
Load the sample data.
X = bodyfat_dataset;
X is a 13-by-252 matrix defining thirteen attributes of 252 different observations. For more information on the data, type help bodyfat_dataset
in the command line.
Train an autoencoder on the attribute data.
autoenc = trainAutoencoder(X);
Create a network object from the autoencoder, autoenc
.
net = network(autoenc);
Predict the attributes using the network, net
.
Xpred = net(X);
Fit a linear regression model between the actual and estimated attributes data. Compute the estimated Pearson correlation coefficient, the slope and the intercept (bias) of the regression model, using all attribute data as one data set.
[C, S, B] = regression(X, Xpred, 'one')
C = 0.9996
S = 0.9981
B = 0.1245
The correlation coefficient is almost 1, which indicates that the attributes data and the estimations from the neural network are highly close to each other.
Plot the actual data and the fitted line.
plotregression(X, Xpred);
The data appears to be on the fitted line, which visually supports the conclusion that the predictions are very close to the actual data.
Version History
Introduced in R2015b
See Also
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)