Giter VIP home page Giter VIP logo

nptel_microsoft_project's Introduction

Gold Price Prediction

Gold Image

This is a project assigned from Future Ready Talent sponsored by Microsoft and NPTEL.

Here, I have forecasted gold prices for next 6 months using World Gold Council data for 19 different countries.

Data collection

The main notebook in which I have done data cleaning and model selection is IndianGoldPricePrediction.ipynb.

You can see how gold prices vary differently in different countries every year. The trend of gold price is irregular over all years. This gold price dataset is taken from world gold council and measured in national currency unit per troy ounce. 1 troy ounce is equal to the weight of the gold = 31.1 grams. This dataset contains all the currencies of the world.

Azure Services Used

  1. Azure Machine Learning Studio: I made an Azure ML resource.

I made a compute instance for the fast processing of my codes.

I made notebooks after starting compute and edited with VS Code.

  1. Visual Studio Code: The following processes I performed in the VS Code: (i) Data cleaning (ii) Model Selection (iii) Time Series Forecasting

  2. Static Web Apps: I wrote an index.html file for my website, where I used the resulted forecasted plots for 6 months. I created static web app on azure and deployed using github.

After deploying, I got the link of my output, and the workflow .yaml file.

Data Cleaning

  1. The data that I collected from World Gold Council has all the prices in object data types.
  2. I converted the obejct data type to float data type.

3. I converted the Date to DateTime data type.

4. I selected the data of 10 years i.e., from 2013 till date (2nd October 2023) to predict the gold prices of 19 different countries.

Machine Learning Algorithms

I have used the following machine learning algorithms while selecting the model:

  1. Logistic Regression
  2. Decision Tree Regressor
  3. Random Forest Regressor
  4. XG Boost Regressor
  5. Light GBM Regressor

After comparing all the models, Random Forest Regressor did the best with best training and testing accuracy, and there were no overfitting issues. The evaluation metric was r2 score. The training score was 0.99964 and the testing score was 0.997337.

Forecasting using FB Prophet

Prophet has the ability to produce accurate forecasts with minimal effort. It decomposes a time series into three main components: trend, seasonality, and holidays. It automatically detects and handles various types of seasonal patterns, such as daily, weekly, monthly, and yearly seasonality. It can also handle irregular seasonalities.

After verifying the predicted gold price with the selected model, I forecasted the gold price of 19 different countries in 19 different notebooks.

Output

The output of this implementation can be seen on the website which is made by using Azure Static Web Apps. You can select the country to see the forecasted gold price for next 6 months.

nptel_microsoft_project's People

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.