{"comment":{"url":"https://api.github.com/repos/DplusT/stock-price-prediction/comments/31778111","html_url":"https://github.com/DplusT/stock-price-prediction/commit/83877fc3c660d16359338dfe8096fea53e6382d9#commitcomment-31778111","id":31778111,"node_id":"MDEzOkNvbW1pdENvbW1lbnQzMTc3ODExMQ==","user":{"login":"DplusT","id":46106824,"node_id":"MDQ6VXNlcjQ2MTA2ODI0","avatar_url":"https://avatars1.githubusercontent.com/u/46106824?v=4","gravatar_id":"","url":"https://api.github.com/users/DplusT","html_url":"https://github.com/DplusT","followers_url":"https://api.github.com/users/DplusT/followers","following_url":"https://api.github.com/users/DplusT/following{/other_user}","gists_url":"https://api.github.com/users/DplusT/gists{/gist_id}","starred_url":"https://api.github.com/users/DplusT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DplusT/subscriptions","organizations_url":"https://api.github.com/users/DplusT/orgs","repos_url":"https://api.github.com/users/DplusT/repos","events_url":"https://api.github.com/users/DplusT/events{/privacy}","received_events_url":"https://api.github.com/users/DplusT/received_events","type":"User","site_admin":false},"position":3,"line":2,"path":"your_name/readme.md","commit_id":"83877fc3c660d16359338dfe8096fea53e6382d9","created_at":"2018-12-26T00:58:36Z","updated_at":"2018-12-26T00:58:36Z","author_association":"OWNER","body":"此项目由两个py文件组成，分别是test0.py和test1.py\r\n\r\ntest0.py用于数据预处理，去除数据的Date和Time列，运行时注意修改读取文件名和写入文件名\r\n\r\ntest1.py用于建立数据集、建立模型、训练模型以及推理\r\n    def series_to_supervised(data, n_in=1, n_out=1, dropnan=True)函数用于将文件中读取的数据转换成可供模型训练和推理用的数据\r\n        data为从文件读取的数据\r\n        n_in表示前序序列长度，此实验中设为10\r\n        n_out表示输出维度，此实验只需要预测midprice，所以设为1\r\n\r\n    def rmse(X, y)函数用于计算验证集经模型推理后得到的结果的RMSE\r\n        X为验证集数据\r\n        y为验证集正确结果\r\n\r\n    model.add(LSTM(500, input_shape=(train_X.shape[1], train_X.shape[2])))语句用于添加LSTM层到模型，500为神经元个数，可以调整\r\n\r\n    history = model.fit(train_X, train_y, epochs=100, batch_size=72, validation_data=(test_X, test_y), verbose=2, shuffle=False)\r\n        可以设置epochs和batch_size\r\n\r\n    最终输出一个名为result.csv的文件\r\n\r\nresult1.csv 和 result2.csv为提交的两个结果 "}}
{"actor":{"display_login":"DplusT"}}