资源简介
narx动态神经网络,动态神经网络预测重庆市用水量matlab代码
代码片段和文件信息
% Solve an Autoregression Problem with External Input with a NARX Neural Network
% script generated by Neural Time Series app
% Created 20-Sep-2018 21:10:56
%
% This script assumes these variables are defined:
%
% input1 - input time series.
% output - feedback time series.
X = tonndata(input1falsefalse);
T = tonndata(outputfalsefalse);
% Choose a Training Function
% For a list of all training functions type: help nntrain
% ‘trainlm‘ is usually fastest.
% ‘trainbr‘ takes longer but may be better for challenging problems.
% ‘trainscg‘ uses less memory. Suitable in low memory situations.
trainFcn = ‘trainlm‘; % Levenberg-Marquardt backpropagation.
% Create a Nonlinear Autoregressive Network with External Input
inputDelays = 1:12;
feedbackDelays = 1:12;
hiddenlayerSize = 9;
net = narxnet(inputDelaysfeedbackDelayshiddenlayerSize‘open‘trainFcn);
% Prepare the Data for Training and Simulation
% The function PREPARETS prepares timeseries data for a particular network
% shifting time by the minimum amount to fill input states and layer
% states. Using PREPARETS allows you to keep your original time series data
% unchanged while easily customizing it for networks with differing
% numbers of delays with open loop or closed loop feedback modes.
[xxiait] = preparets(netX{}T);
% Setup Division of Data for Training Validation Testing
net.divideParam.trainRatio = 75/100;
net.divideParam.valRatio = 20/100;
net.divideParam.testRatio = 5/100;
% Train the Network
[nettr] = train(netxtxiai);
% Test the Network
y = net(xxiai);
e = gsubtract(ty);
performance = perform(netty);
rmse=sqrt(performance);
% View the Ne
相关资源
- 神经网络分类matlab程序
- 基于BP神经网络对几种字体0-9的数字识
- matlab版的车牌识别程序
- 基于BP神经网络的盲均衡算法 C程序(
- 小波神经网络Matlab交通仿真程序
- 基于BP神经网络的语音情感识别系统
- BP神经网络解决手写数字识别问题 m
- rbf神经网络求解机器人的运动学逆解
- BP神经网络实现手写数字识别matlab实现
- matlab神经网络实现数字识别
- matlab常用代码大全科研神器
- 应用BP神经网络逼近非线性函数
- 科研常用代码预测分类评价
- 基于BP神经网络的无线传感器定位算法
- BP神经网络在隧道基坑工程中的实际运
- RBF神经网络建模与预测(1)
- 利用BP神经网络实现手写体数字识别
- 利用BP神经网络对图像提取的MATLAB代码
- MATLAB神经网络43个案例分析源代码
- 《MATLAB 神经网络30个案例分析》源程
- 长江水质预测2005年数学建模+神经网络
- 基于遗传算法的小波神经网络在股票
-
基于SIMUli
nk的汽车发动机怠速模糊神 - 基于蚁群算法和神经网络匹配算法的
- 《MATLAB 神经网络30个案例分析》所有
- matlab神经网络30个案例分析278234
- 基于MATLAB的车牌识别算法
- 斯坦福机器学习编程作业machine-learn
- CNN卷积神经网络图像识别matlab
- 神经网络进行手写体验证码识别的代
评论
共有 条评论