资源简介
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详细代码
- PSO优化BP神经网络模型.zip
- CNN卷积神经网络
- 基于遗传算法的BP神经网络优化算法—
- 神经网络激活函数matlab
- 神经网络学习算法,梯度下降,动量
- 神经网络控制,有s模块源码及simuli
- MATLAB基于神经网络的英文字母识别
- 基于神经网络的电力负荷预测代码
- 卷积神经网络CNN代码解析-matlab.doc
- 人工神经网络(ANN)程序
- Matlab版本的卷积神经网络案例
- 人工神经网络实验 用CHNN算法求解T
- BP神经网络预测模型
- 径向基神经网络MATLAB仿真
- 基于Elman神经网络的房价预测matlab脚本
- RNN-LSTM 卷积神经网络 Matlab 实现,简单
- 卷积神经网络matlab代码
- 神经网络滑模控制器设计的matlab源代
- 神经网络观测器设计程序
- 用matlab从0开始实现的一个多层感知机
- 神经网络的GUI可视化界面
- 混沌同步程序matlab
- 神经网络故障诊断和数据预测的matl
- adaboost 演示demo基于Matlab,学习算法包
- RBF神经网络负荷预测
- 基于 GM-RBF 神经网络的光伏发电功率预
- 基于BP神经网络的函数逼近不使用任何
- 粒子群算法优化RBF神经网络
- 基于BP神经网络的PID控制器的Matlab仿真
评论
共有 条评论