• 大小: 1.09M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-30
  • 语言: Python
  • 标签:

资源简介

源程序代码 详解 股票预测  LSTM 时间序列rnn 代码程序数据集下载压缩包


资源截图

代码片段和文件信息

from pylab import *
from scipy import stats
import numpy as np
import matplotlib.pyplot as plt


class ClassificationPerformance:
    names = []
    errors = []

    def __init__(self):
        self.count = 0

    def add(self name error_rates):
        self.names.append(name)
        self.errors.append(error_rates)
        self.count += 1

    def compare(self):
        for i in range(self.count):
            for j in range(self.count):
                if i < j:
                    tst pvalue = stats.ttest_ind(self.errors[i] self.errors[j])
                    if pvalue < 0.05:
                        print(“{0} is significantly better than {1}“.format(self.names[i] self.names[j]))
                        print(“{0} avg err = {1} {2} avg err = {3}“.format(
                          

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\
     文件        3081  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\README.md
     文件        3546  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\README_ORIGINAL.md
     文件        1400  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\classification_performance.py
     文件       20668  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\index.html
     文件        6531  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\main.py
     文件        4155  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\nn.py
     文件       13281  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\nyse.py
     文件        4874  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\perceptron.py
     文件        1799  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\plotting.py
     文件     1175512  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\project.pdf
     文件        2140  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\rnn.py
     文件        1853  2016-11-29 23:37  stock-predict-by-RNN-LSTM-master\test.py

评论

共有 条评论