GithubHelp home page GithubHelp logo

linlidi / stocksensation Goto Github PK

View Code? Open in Web Editor NEW
309.0 25.0 114.0 5.29 MB

基于情感字典和机器学习的股市舆情情感分类可视化

License: Apache License 2.0

Python 98.65% HTML 1.33% CSS 0.03%
django bootstrap python machine-learning data-visualization javascript word2vec scikit-learn stock sensation-data

stocksensation's Introduction

股市舆情情感分类可视化系统

Last update 16,July,2018

此Web基于Django+Bootstrap+Echarts等框架,个股交易行情数据调用了Tushare接口。对于舆情文本数据采取先爬取东方财富网股吧论坛标题词语设置机器学习训练集,在此基础上运用scikit-learn机器学习朴素贝叶斯方法构建文本分类器。通过Django Web框架,将所得数据传递到前端经过Bootstrap渲染过的html,对数据使用Echarts进行图表可视化处理

不足之处或交流学习欢迎通过邮箱联系我

目前的功能:

  • 个股历史交易行情
  • 个股相关词云展示
  • 情感字典舆情预测
  • 朴素贝叶斯舆情预测

Todo

  • Web UI优化
  • 横向拓展多股吧
  • 横向拓展多分类器
  • 完善训练集
  • 引入金融模型

系统结构

系统架构设计

Quick Start

在项目当前目录下: $ python manage.py runserver
浏览器打开127.0.0.1:8000

PC端实例: 屏幕快照 2018-05-19 01.56.34 移动端:

屏幕快照 2018-05-19 01.58.15

运行效果

情感字典舆情预测:

情感字典舆情预测1 情感字典舆情预测2

机器学习舆情预测:

机器学习舆情预测1 机器学习舆情预测2

stocksensation's People

Contributors

linlidi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stocksensation's Issues

new

My name is Luis, I'm a big-data machine-learning developer, I'm a fan of your work, and I usually check your updates.

I was afraid that my savings would be eaten by inflation. I have created a powerful tool that based on past technical patterns (volatility, moving averages, statistics, trends, candlesticks, support and resistance, stock index indicators).
All the ones you know (RSI, MACD, STOCH, Bolinger Bands, SMA, DEMARK, Japanese candlesticks, ichimoku, fibonacci, williansR, balance of power, murrey math, etc) and more than 200 others.

The tool creates prediction models of correct trading points (buy signal and sell signal, every stock is good traded in time and direction).
For this I have used big data tools like pandas python, stock market libraries like: tablib, TAcharts ,pandas_ta... For data collection and calculation.
And powerful machine-learning libraries such as: Sklearn.RandomForest , Sklearn.GradientBoosting, XGBoost, Google TensorFlow and Google TensorFlow LSTM.

With the models trained with the selection of the best technical indicators, the tool is able to predict trading points (where to buy, where to sell) and send real-time alerts to Telegram or Mail. The points are calculated based on the learning of the correct trading points of the last 2 years (including the change to bear market after the rate hike).

I think it could be useful to you, to improve, I would like to share it with you, and if you are interested in improving and collaborating I am also willing, and if not file it in the box.

If tou want, Please read the readme , and in case of any problem you can contact me ,
If you are convinced try to install it with the documentation.
https://github.com/Leci37/LecTrade/tree/develop I appreciate the feedback

个股相关词云展示有问题

感谢大家,我发现词云展示有点问题,不知道什么原因?
是因为代码如下:
def wordcloudResult(request): return render(request,"wordcloudResult.html")

词云的数据需要单独计算出来吗?
@LinLidi 希望给予回复

运行项目有报错信息

报错信息如下:
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:/FYH/Tool/DownLoad/yaoer360-StockSensation-master/StockSensation/manage.py", line 15, in
execute_from_command_line(sys.argv)
File "C:\FYH\Python\Python37-32\lib\site-packages\django\core\management_init_.py", line 381, in execute_from_command_line
utility.execute()
File "C:\FYH\Python\Python37-32\lib\site-packages\django\core\management_init_.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\FYH\Python\Python37-32\lib\site-packages\django\core\management\base.py", line 336, in run_from_argv
connections.close_all()
File "C:\FYH\Python\Python37-32\lib\site-packages\django\db\utils.py", line 219, in close_all
for alias in self:
File "C:\FYH\Python\Python37-32\lib\site-packages\django\db\utils.py", line 213, in iter
return iter(self.databases)
File "C:\FYH\Python\Python37-32\lib\site-packages\django\utils\functional.py", line 80, in get
res = instance.dict[self.name] = self.func(instance)
File "C:\FYH\Python\Python37-32\lib\site-packages\django\db\utils.py", line 147, in databases
self.databases = settings.DATABASES
File "C:\FYH\Python\Python37-32\lib\site-packages\django\conf_init
.py", line 79, in getattr
self.setup(name)
File "C:\FYH\Python\Python37-32\lib\site-packages\django\conf_init
.py", line 66, in setup
self.wrapped = Settings(settings_module)
File "C:\FYH\Python\Python37-32\lib\site-packages\django\conf_init
.py", line 157, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "C:\FYH\Python\Python37-32\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'StockSensation.StockSensation'
@LinLidi 大佬帮帮看看

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.