-
四个游戏
说明: 四个python的小游戏 欢迎下载 使用玩耍 一起学习一起进步(Four Python games Welcome to download and use play Study together and progress together)
- 2020-11-13 12:51:47下载
- 积分:1
-
test_ctly
简单的支持向量机回归应用,应用于球磨机实验中。(Simple support vector machine regression application)
- 2020-08-31 20:18:10下载
- 积分:1
-
图像融合 图像处理 卷积 高斯模糊 hybrid
说明: 图像融合 图像处理(卷积、高斯模糊) 图像融合 图像处理(卷积、高斯模糊)(image hybrid Image fusion image processing (convolution, Gaussian blur) image fusion image processing (convolution, Gaussian blur))
- 2020-06-12 01:48:57下载
- 积分:1
-
逻辑回归
逻辑回归
- 2021-05-06下载
- 积分:1
-
python通过wind下载日行情数据 存储到postgresql
python通过wind下载日行情数据 存储到postgresql,修复了大奖章中的小bug,需要安装wind个人接口
- 2022-03-20 04:28:36下载
- 积分:1
-
simple_em
说明: 二维gauss混合分布的EM解法,可以用作学习与初步了解(The EM solution of two-dimensional Gauss mixed distribution can be used for learning and preliminary understanding)
- 2019-11-29 20:45:30下载
- 积分:1
-
textCNN文本分类
textCNN文本分类
- 2021-05-06下载
- 积分:1
-
基于正态分布阈值的反转策略
基于正态分布阈值的反转策略 对过去某个时间段的分钟数据进行正态统计,然后自己设定一个阈值进行反转交易。设置固定的止盈止损,或者当出现反向信号的时候平仓。回测的效果不错,一般用在外汇和衍生品交易
- 2022-01-26 17:51:22下载
- 积分:1
-
俄罗斯方块强化学习实验报告
一、俄罗斯方块DQN算法实验报告1. 网络结构图1 DQN网络结构2. 超参数 GAMMA = 0.99 # decay rate of past observations 设置增强学习更新公式中的累计折扣因子 OBSERVE = 500. # timesteps to observe before training 设置观察期的迭代次数 EXPLORE = 500. # frames over which to anneal epsilon 设置探索期的观察次数 FINAL_EPSILON = 0.002 # final value of epsilon 设置ε的最终最小值 INITIAL_EPSILON = 10.0 # starting value of epsilon 设置ε的初始值 REPLAY_MEMORY = 5900 # number of previous transitions to remember 设置replay memory的容量 BATCH = 32 # size of mini batch 设置每次网络参数更新世用的样本数目 K = 1 # only select an action every Kth frame, repeat prev for others,设置几帧图像进行一次动作, # K越大让控制台输出的速度变慢,游戏画面速度变快,机器人动作的速度变越迟缓。ACTIONS = 6 # number of valid actions 游戏动作数3.实验结果训练前期的self.score分数很低150左右,EPSILON=1.0,Q_MAX= 2.061341e-02:图2 EPSILON=1.0设置超参数EPSILON=0.05在1000步迭代之后:EPSILON固定在0.04999999999999416 Q_MAX = -1.163765e-01Self.score有明显的提升,但是之后无论训练多久都没有明显提升了。图3 EPSILON=0.05设置超参数EPSILON= 0.002在1001步迭代之后:EPSILON固定在0.000004 Q_MAX = 1.728995e 02Self.score可以轻松达到200以上。图4 EPSILON=0.000004设置超参数EPSILON= 0.000001在1001步迭代之后:EPSILON固定在-0.001998997999987482 Q_MAX = 1.899879e 03Self.score可以轻松达到200以上。图5 EPSILON=-0.002 【核心代码】用DQN来玩俄罗斯方块 tetrix_DQN ├── Wrapped Game Code│ └── tetris_fun.py├── deep_q_network.py├── logs_tetris│ ├── hidden.txt│ └── readout.txt└── saved_networks ├── tetris-dqn-10000.data-00000-of-00001 ├── tetris-dqn-10000.index ├── tetris-dqn-10000.meta └── tetris-dqn-316600003 directories, 8 files
- 2020-12-01下载
- 积分:1
-
使用GeoServer和Openlayers发布地图服务示例代码
说明: Openlayer geoserver 中Layer View 必备的(when you use geoserver to show your layer map ,you have to get openlayer.js include ol.js and ol.css to finish your own function to view a map.This is a sample which use geoserver and openlayer)
- 2020-06-16 21:00:02下载
- 积分:1