登录
首页 » 算法 » 遗传算法来训练神经网络的权值

遗传算法来训练神经网络的权值

于 2022-03-30 发布 文件大小:8.06 kB
0 208
下载积分: 2 下载次数: 1

代码说明:

需要一个文本文件作为输入包含 x 和 y 坐标的一系列的曲线上的点。该代码然后使用遗传算法训练神经网络来逼近同一条曲线。运行从 python 命令行 ;示例输入的命令会看起来像: python nn_weights_1.py-r 10-n 100 g 500-t 3600.0-RandomCrossOver-s random_seeds_100.txt-i sine_datapoints1.txt-o results.txt nn_weights_1.py 在哪里的代码文件中,名称-r 告诉它多少运行来执行,-n 告诉它在人口中的多少人-g 告诉它多少代人,在每个运行,-t 告诉它的最长时间 (以秒为单位) 运行,— — 告诉它要使用 (随机、 HillClimber、 RandomCrossOver、 SmallCrossOver、 SmartCrossOver) 的算法,-s 告诉它什么文件用于随机种子 (可选),我告诉它什么数据文件用作输入和-o 告诉它要将输出发送到什么文件。

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

发表评论

0 个回复

  • 棋盘填满n*n的棋盘上(1LT;= NLT;= 10)请插入1,2,…
    棋盘填数问题 在N*N的棋盘上(1
    2022-03-18 00:25:40下载
    积分:1
  • 线性方程组的求解
    1.通过这次实验,我掌握了使用Gauss消去法解线性方程组的方法,加深了我对Gauss消元法的理解。2.Gauss消元法还可以改进,可衍生出列主元消去法和平方根法等,达到减少计算量和减小误差的作用使结果更加准确。3.迭代过程中要求主对角线元素不为零,这在一定程度上限制了可解的线性方程组。
    2022-02-06 11:21:14下载
    积分:1
  • 包括基本概念,数学规划的分析方,B。
    包括基本概念,数学规划的解析法,基本构件优化设计,线性规划,桁架优化设计,连续梁和钢架的优化设计,非线性规划在结构优化设计中的应用,动态规划,几何规划,结构动力优化-Including basic concepts, the analytic method of mathematical programming, the basic components to optimize the design, linear programming, optimization of truss design, steel beams and continuous optimization of the design, non-linear programming in structural optimization and design, dynamic programming, geometric programming, structural dynamics Optimization
    2022-08-13 22:32:11下载
    积分:1
  • a_star_pathfinder明星路径可以用来研究路由方的发展。
    a_star_pathfinder A星路径寻找可以用来学习寻路的方法 可以用到很多地方 比如脱机的AI寻路就可以用到他 -a_star_pathfinder A Star path finding can be used to study routing methods can be used in many places such as the AI offline Wayfinding can be used on him
    2022-02-04 14:10:32下载
    积分:1
  • 误差分析的方有多种,例如,威点逊(J. H. Wilkison)针对的计机的浮点运提出的“向后误差分析”,这是一种先验估计误差的方,较以往的“向前误差分...
    误差分析的方法有多种,例如,威点逊(J. H. Wilkison)针对的计算机的浮点运算提出的“向后误差分析”,这是一种先验估计误差的方法,较以往的“向前误差分析”在矩阵运算的舍入误差估计上有较好的结果,以而使矩阵的误差分析获得了突破性的进展,使不少用向前误差分析难于判定可靠性的数值方法获得新的进展。-error analysis by a number of means, for example, Granville point Morrison (J. H. Wilkison), referring to a computer"s floating-point operations "backward error analysis," This is a priori estimation error method, compared to the previous "Forward Error Analysis" in the matrix computation Rounding error a better estimate on the results of a matrix so the error analysis of a breakthrough in the progress, many with forward error analysis difficult to determine the reliability of numerical methods to achieve new progress.
    2022-06-15 17:59:56下载
    积分:1
  • 散列,具有自动扩展功能
    哈希算法,具有自动扩展功能
    2022-10-05 09:40:03下载
    积分:1
  • 利用VB开发的典型pid控制程序,用于一阶加热炉恒温控制。
    利用VB开发的典型pid控制程序,用于一阶加热炉恒温控制。-Using VB to develop a typical pid control procedures, for the first-order control of furnace temperature.
    2022-01-24 09:41:09下载
    积分:1
  • 本程序通过调用matlab提供的信号分析函数对脑电信号进行分析变换,对信号处理工作具有很大帮助。...
    本程序通过调用matlab提供的信号分析函数对脑电信号进行分析变换,对信号处理工作具有很大帮助。-This procedure provided by calling matlab EEG signal analysis function analysis of transformations, the signal processing of great help.
    2022-12-31 02:25:03下载
    积分:1
  • 逆序数计
    计算文件中的逆序数数目。分别采用归并排序和快速排序算法来实现对文件逆序数的计算。
    2022-08-05 20:15:20下载
    积分:1
  • C Source Code program of FFT IFFT Function
    C Source Code program of FFT IFFT Function
    2022-03-17 18:46:55下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载