Skip to content

jsvwhxj/copper_price_forecast

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

copper price(time series) prediction using bpnn and lstm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%