Giter Club home page Giter Club logo

dpschallenge_ai's Introduction

Digital Product System challenge Artificial Intelligence Engineer

The project is submitted for a challenge for the Digital Product School (DPS). In the project a dataframe consisting of historical values of the accidents from different categories in the city of Munich, Germany.

Description

This challenge for Artificial Intelligence Engineer Consists of 3 tasks.

  • Mission 1: Create a AI Model Cleaning the data, visualizing the historical accidents from the dataframe,Training a model to forecast future values.
  • Mission 2: Publish source code & Deploy Deploying the model with an endpoint that accepts POST requests in JSON body
  • Mission 3: Sending the URL of the task

Files

  • Accident_Prediction_Model.ipynb: A jupyter notebook contains a step-by-step of importing the data, cleaning, and then visualizing the result after that loads the preprocessed data, then estimating the parameters passed for the model: Random Forest regressor. The model is trained and tested on the year 2020 data, the model is then evaluated and exported for deployment.
  • main.py: thisx server file forecasting and returns the result. The latter is the endpoint, which is deployed through Fastapi.

Note

The endpoint accepts a POST request with a JSON body like this:

{
"year" : 2021,
"month" : 1
}

It return prediction in the following format:

{
"prediction" : value
}

Packages:

  • pandas
  • numpy
  • matplotlib
  • sklearn
  • pickle
  • Fastapi
  • pydantic

Visualization:

visualization historically the number of accidents per category

Accidents Category Visualization per year:

image


Number of accidents per category:

image


Number of accidents per Accident Type:

image


Number of accidents per Accident Type:

image

Result Accuracy

MAE(Mean Absolute Error ) : 54.5
R2 Score :0.98

dpschallenge_ai's People

Contributors

manish06097 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.