利用动态神经网络(NAR)做预测时,利用nnstart界面建立好网络后,但不知道怎么做预测,麻烦解读一下。

这是只有输出的网络,训练完后。在我想做预测,不知道接下来该如何编写。:

% Solve an Autoregression Time-Series Problem with a NAR Neural Network

% Script generated by NTSTOOL

% Created Wed Dec 02 17:31:17 CST 2015

%

% This script assumes this variable is defined:

%

%   x0 - feedback time series.

targetSeries = tonndata(x0,false,false);

% Create a Nonlinear Autoregressive Network

feedbackDelays = 1:2;

hiddenLayerSize = 10;

net = narnet(feedbackDelays,hiddenLayerSize);

% 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.

[inputs,inputStates,layerStates,targets] = preparets(net,{},{},targetSeries);

% Setup Division of Data for Training, Validation, Testing

net.divideParam.trainRatio = 70/100;

net.divideParam.valRatio = 15/100;

net.divideParam.testRatio = 15/100;

% Train the Network

[net,tr] = train(net,inputs,targets,inputStates,layerStates);

% Test the Network

outputs = net(inputs,inputStates,layerStates);

errors = gsubtract(targets,outputs);

performance = perform(net,targets,outputs)

% View the Network

view(net)

% Plots

% Uncomment these lines to enable various plots.

%figure, plotperform(tr)

%figure, plottrainstate(tr)

%figure, plotresponse(targets,outputs)

%figure, ploterrcorr(errors)

%figure, plotinerrcorr(inputs,errors)

% Closed Loop Network

% Use this network to do multi-step prediction.

% The function CLOSELOOP replaces the feedback input with a direct

% connection from the outout layer.

netc = closeloop(net);

[xc,xic,aic,tc] = preparets(netc,{},{},targetSeries);

yc = netc(xc,xic,aic);

perfc = perform(net,tc,yc)

% Early Prediction Network

% For some applications it helps to get the prediction a timestep early.

% The original network returns predicted y(t+1) at the same time it is given y(t+1).

% For some applications such as decision making, it would help to have predicted

% y(t+1) once y(t) is available, but before the actual y(t+1) occurs.

% The network can be made to return its output a timestep early by removing one delay

% so that its minimal tap delay is now 0 instead of 1.  The new network returns the

% same outputs as the original network, but outputs are shifted left one timestep.

nets = removedelay(net);

[xs,xis,ais,ts] = preparets(nets,{},{},targetSeries);

ys = nets(xs,xis,ais);

closedLoopPerformance = perform(net,tc,yc)

nar神经网络_动态神经网络(NAR)做预测相关推荐

  1. 卷积网络和卷积神经网络_卷积神经网络的眼病识别

    卷积网络和卷积神经网络 关于这个项目 (About this project) This project is part of the Algorithms for Massive Data cour ...

  2. rnn 递归神经网络_递归神经网络rnn的简单解释

    rnn 递归神经网络 Recurrent neural network is a type of neural network used to deal specifically with seque ...

  3. 模型 标签数据 神经网络_大型神经网络和小数据的模型选择

    模型 标签数据 神经网络 The title statement is certainly a bold claim, and I suspect many of you are shaking yo ...

  4. 人工神经网络_人工神经网络实践

    人工神经网络(Artificial Neural Network,ANN) 使一种受人脑生物神经网络信息处理方式启发而诞生的一种计算模型,得益于语音识别.计算机视觉和文本处理方面的许多突破性成果,人工 ...

  5. 卷积云神经网络_卷积神经网络简介

    广告 一.卷积 我们在 2 维上说话.有两个 的函数 f(x, y) 和 g(x, y) .所谓 f 和 g 的卷积就是一个新的 的函数 c(x, y) .通过下式得到: 这式子的含义是:遍览从负无穷 ...

  6. cnn卷积神经网络_卷积神经网络(CNN)原理及应用

    一.CNN原理 卷积神经网络(CNN)主要是用于图像识别领域,它指的是一类网络,而不是某一种,其包含很多不同种结构的网络.不同的网络结构通常表现会不一样.从CNN的一些典型结构中,可以看到这些网络创造 ...

  7. 人脸检测卷积神经网络_卷积神经网络和计算机视觉的人脸面具检测算法

    人脸检测卷积神经网络 In this article, we explore an application of Computer Vision that is largely relevant to ...

  8. 卷积云神经网络_卷积神经网络

    阅读提醒,本文以严谨为主,兼顾理解. 目标 介绍CNNs的基础结构和训练方法. 理解本文所需知识: 高中数学,高中语文 完全读懂本文所需知识: 微积分,线性代数 为了大众阅读,在英文第一次出现的时候, ...

  9. 复数神经网络_如果神经网络状态为复数会发生什么?

    复数神经网络 It's a question currently on the edge of research in neural networks: what were to happen if ...

  10. 径向基函数神经网络_卷积神经网络的发展

    1968 Hubel & Wiesel 猫脑实验 Hubel和Wiesel干了一件事,他们将猫麻醉后,把电极插到其视觉神经上连接示波器,并给它们看不同的图像,观察脑电波的反应.他们发现猫看到鱼 ...

最新文章

  1. 怎样增加混凝土粘聚性_如何改善中低强度等级混凝土粘聚性? 这篇文章一定要看...
  2. C#前期绑定和后期绑定操作Excel-------实现简单打印功能
  3. 易语言 字段重复_使对易失性字段的操作原子化
  4. linux apache 跨域,解决nginx/apache静态资源跨域访问问题详解
  5. 深度强化学习-Policy Gradient基本实现
  6. qt5 传输 图片压缩_图片如何转换成pdf?免费教你几个宝藏方法,请低调使用!...
  7. Nginx 学习--初级篇,Nginx 认识以及作用
  8. activity 和service通信,调用service方法
  9. Linux宝库名人轶事栏目 | 人生若只如初见,我与开源圈
  10. 关于win10不能修改ip问题
  11. 初探BP神经网络工具箱
  12. ORACLE EBS/ERP 固定资产总账模块分录
  13. 小白如何进入IT行业及如何选择培训机构
  14. 【小技术】数据库显示“远程过程调用失败”怎么办?
  15. 机器学习分类器——案例(opencv sklearn svm ann)
  16. python sqlite3的使用及sql语句
  17. suricata中的单模匹配和多模匹配
  18. redis三个定时监控任务和主观下线、客观下线
  19. 火山PC文件目录的创建复制移动等操作
  20. i5 12600kf参数i5 12600kf功耗

热门文章

  1. 小米手机qq不读取相册照片_【qq影像读取不了照片】qq影像读取不到相册_qq影像读取不了相册...
  2. 关于SQL sever中创建表时出现“对象名无效”的情况
  3. 最保险的“跳槽理由”
  4. Java如何与Simon Ritter-JDK 9到13一起发展
  5. python expend_Python序列化proto中repeated修饰的数据
  6. html css 浏览器 响应式 面试题持续更新!
  7. 表结构 shopnc
  8. 第五节:蜂鸣器的驱动程序
  9. Retinanet论文解读
  10. 百度js推送没法用了?帝国CMS结合百度API推送方法来了