GithubHelp home page GithubHelp logo

alanmorninglight / copper_price_forecast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liyinwei/copper_price_forecast

0.0 1.0 0.0 82 KB

copper price(time series) prediction using bpnn and lstm

Home Page: https://github.com/liyinwei

License: GNU General Public License v3.0

Python 100.00%

copper_price_forecast's Introduction

Copper price forecast

This is an open source project aims at making a prediction of copper price using machine learning / deep learning approach. The language of this project is Python and the ideas may extend to other time series prediction problems as you like.

Motivation

The motivation of launching this project is that copper is a kind of important raw material of some midstream and downstream materials, whose price is of great relevance to copper price. Thus a high accuracy of copper price prediction can to some extent providing purchasing decisions for the purchasing agent.

Here is a comparison of the fluctuation of the price of cooper and a kind of downstream material:

image

Prerequisites

Structure

  • common: common method such as data loading, model evaluation & model visualization etc.
  • mlp: predict copper price using sklearn.neural_network.MLPRegressor
  • lstm: predict copper price using keras.layers.recurrent.LSTM
  • pcb: correlation analysis of copper and a downstream material price

Data

You can visit the spiders project and run shfe to crawling copper future price from Shanghai Futures Exchange.

Running

There is a main method in each python file so you can run it easily.

the following is a sample of predict result of the mlp method:

image

while the following is a sample of predict result of the lstm method with epochs=500:

image

Authors

Don't hesitate to contact me on any topics about this project at your convenience.

Contributors

Contributing

When contributing to this repository, you can first discuss the change you wish to make via issue, email, or any other method with the owners of this repository.

License

This project is licensed under the GNU General Public License v3.0 License - see the LICENSE file for details.

Acknowledgments

I'd like hat tip to anyone who use the codes or send me any proposals of the project.

copper_price_forecast's People

Contributors

liyinwei avatar

Watchers

 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.