GithubHelp home page GithubHelp logo

david2685 / stock_predict_machinelearning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zxpeter/stock_predict_machinelearning

0.0 1.0 0.0 455 KB

针对沪深300指数的历史交易数据,通过机器学习的方法,预测股票的价格(涨跌概率),并借此来形成相应的交易策略。

Python 2.51% HTML 97.49%

stock_predict_machinelearning's Introduction

Stock Predictor using machine learning

According to the historical transaction data of the Shanghai and Shenzhen 300 Index, the price of the stock (the probability of rise and fall) is predicted by the machine learning method, and the corresponding trading strategy is formed by this. In this experiment, AdjClose is selected as the main sample feature. Finally, choose the hybrid SVM classifier to get the best Accuracy=0.7 result.

针对沪深300指数的历史交易数据,通过机器学习的方法,预测股票的价格(涨跌概率),并借此来形成相应的交易策略。 在本文选取AdjClose即经调整后的收盘价格作为主要样本特征。最后选择混合SVM分类器得到最佳Accuracy=0.7的结果。 An adjusted closing price is a stock's closing price on any given day of tradingthat has been amended to include any distributions and corporate actions thatoccurred at any time prior to the next day's open.

 How to run

You can change dataReader directory and run process_for_ml.py

stock_predict_machinelearning's People

Contributors

zxpeter avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.