登录
首页 » matlab » shenjingwangluo

shenjingwangluo

于 2011-05-21 发布 文件大小:1KB
0 78
下载积分: 1 下载次数: 9

代码说明:

  T=[1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 1] 输入向量的最大值和最小值 threshold=[0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1] net=newff(threshold,[31 3],{ tansig , logsig }, trainlm ) 训练次数为1000,训练目标为0.01,学习速率为0.1 net.trainParam.epochs=1000 net.trainParam.goal=0.01 LP.lr=0.1 net = train(net,P,T) 测试数据,和训练数据不一致 P_test=[0.2101 0.0950 0.1298 0.1359 0.2601 0.1001 0.0753 0.0890 0.0389 0.1451 0.0128 0.1590 0.2452 0.0512 0.1319 0.2593 0.1800 0.0711 0.2801 0.1501 0.1298 0.1001 0.1891 0.2531 0.0875 0.0058 0.1803 0.0992 0.0802 0.1002 (T = [1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 1] ' of the maximum and minimum input vector threshold = [0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1] net = newff (threshold, [31 3], {' tansig' , ' logsig' }, ' trainlm' ) training times for the 1000 target of 0.01 training, learning rate of 0.1 net.trainParam.epochs = 1000 net. trainParam.goal = 0.01 LP.lr = 0.1 net = train (net, P, T) test data, and training data inconsistencies P_test = [0.2101 0.0950 0.1298 0.1359 0.2601 0.1001 0.0753 0.0890 0.0389 0.1451 0.0128 0.1590 0.2452 0.0512 0.1319 0.2593 0.1800 0.0711 0.2801 0.1501 0.1298 0.1001 0.1891 0.2531 0.0875 0.0058 0.1803 0.0992 0.0802 0.1002 )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • GAPSO-share
    在做优化的时候,起初选择了GA算法,但是GA的不稳定性(或者陷入局部最优)实在让人抓狂,前后两次的结果相差竟然有时候能达到30 以上,当时由于时间的原因,我只好选择了优化1000次,然后以其中的最小值最为最佳方案。虽然问题也算解决了,但是从学术上将,这种奔方法是让人很尴尬的。所以,我从网上下载了一个GA-PSO算法,试着利用GA和PSO组合的策略进行优化,结果算法很问题,效率和不错。我下载原始算法,有一个问题就是它是针对所有的设计变量上下限都是一样的,所以我对程序进行了修改与改进,现在可以处理上下限不一致的问题,同时fix了一些bug。现在把修改后的程序和大家分享一下,希望能对您有用.注意myfit需要用自己的函数,否则出错,因为我的myfit程序在调用过程中,需要使用matlab的Kriging工具箱 (a optimization method combining GA and PSO)
    2011-10-13 09:31:22下载
    积分:1
  • ENVIHeadGet
    读取envi高光谱文件的头文件数据,文件格式为*.hdr(read envi head files)
    2015-03-17 17:37:45下载
    积分:1
  • TE_process
    田纳西伊—斯特曼过程是一个基于真实化工生产过程模型。它的数据在许多领域被广泛研究和应用,比如优化控制、过程监控和故障诊断等。(The tennessee-sterman process is based on a real chemical process model.Its data is widely studied and applied in many fields, such as optimal control, process monitoring and fault diagnosis.)
    2019-06-28 10:46:36下载
    积分:1
  • OFDMcyclicalphaTau
    此程序是OFDM的循环谱计算,希望对大家有用,(this procedure is the cycle OFDM spectrum, we hope to useful,)
    2007-06-12 11:21:14下载
    积分:1
  • HuntLinKulkarni-PredictingCourseGrades
    Most recent approaches have posed texture synthesis in a statistical setting as a problem of sampling from a probability distribution. Zhu et. al. [12] model texture as a Markov Random Field and use Gibbs sampling for synthesis. Unfortunately, Gibbs sampling is notoriously slow and in fact it is not possible to assess when it has converged. Heeger and Bergen [6] try to coerce a random noise image.
    2013-11-22 00:07:04下载
    积分:1
  • CSsampler10M
    基于压缩感知理论对单音频信号以低于奈奎斯特频率进行采样处理(Based compression perception theory, single audio signal sampling below the Nyquist frequency)
    2012-11-13 16:51:46下载
    积分:1
  • lpc_basedon_matlab
    lpc线性预测编码的matlab实现。其中包含原始数据文件和合成语音文件。程序合理易懂。(linear predictive coding of lpc matlab implementation. Which contains the original data file and the synthesized voice files. Procedures reasonably easy to understand.)
    2020-12-15 22:49:13下载
    积分:1
  • Alternatives_to_Athens___Va
    alternative proofs of theorems from ATHENS
    2010-01-18 00:48:35下载
    积分:1
  • robot_arm
    机器人的simulink模型,能够看到原代码。希望对你的学习有所帮助。(robot Simulink model will be able to see the original code. You want to learn some help.)
    2007-06-13 08:24:08下载
    积分:1
  • 相位误差对MUSIC影响
    说明:  从理论上介绍了MUSIC算法原理、分析了阵列相位误差对MUSIC算法性能的影响(The principle of music algorithm is introduced in theory, and the effect of array phase error on the performance of music algorithm is analyzed)
    2020-02-15 17:12:14下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载