Giter Site home page Giter Site logo

machine-learning-project's Introduction

Machine learning project

Student Name: Rahul Trivedi

Student Number: 69535

Description:

Project directory includes following files:

  • app.py: A Flask API script used to serve the trained model for predictions. This script sets up an endpoint that takes input features and returns the predicted credit score.
  • best_svm_model.joblib: The trained Support Vector Machine (SVM) model saved in a joblib file. This model is used for making predictions on new data.
  • requirements.txt: A file listing all the dependencies and Python packages required to run the project. This includes Flask, scikit-learn, and any other libraries used in the project.

Running API:

python3 app.py

Curl request for test:

curl -X POST http://127.0.0.1:5000/predict -H "Content-Type: application/json" -d '{
"features": {
"Month": 7,
"Age": 23,
"Occupation": 1.0,
"Annual_Income": 50000,
"Monthly_Inhand_Salary": 4000,
"Num_Bank_Accounts": 3,
"Num_Credit_Card": 2,
"Interest_Rate": 0.1,
"Delay_from_due_date": 30,
"Num_of_Delayed_Payment": 2,
"Changed_Credit_Limit": 0,
"Num_Credit_Inquiries": 1,
"Credit_Mix": 0,
"Outstanding_Debt": 1,
"Credit_Utilization_Ratio": 0,
"Credit_History_Age": 10,
"Payment_of_Min_Amount": 0,
"Total_EMI_per_month": 0,
"Amount_invested_monthly": 1000,
"Payment_Behaviour": 0,
"Monthly_Balance": 0,
"Count_Auto Loan": 0,
"Count_Credit-Builder Loan": 0,
"Count_Personal Loan": 0,
"Count_Home Equity Loan": 0,
"Count_Not Specified": 0,
"Count_Mortgage Loan": 0,
"Count_Student Loan": 0,
"Count_Debt Consolidation Loan": 0,
"Count_Payday Loan": 0
}
}'

machine-learning-project's People

Contributors

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