Giter Site home page Giter Site logo

ml-model-comparison's Introduction

Model evaluation mini-project

Aim: Develop a program to evaluate the performance of several supervised models on regression datasets

In this repo we look at applying a variety of SupervisedLearning models to predict a variety of regression data-sets.

Setup

I used this dataset from Kaggle for car prices: https://www.kaggle.com/CooperUnion/cardataset (save it in the root directory as "car_data.csv")

I used this dataset from Kaggle for test_scprse: https://www.kaggle.com/kwadwoofosu/predict-test-scores-of-students (save it in the root directory as "test_scores.csv")

How to run the project

Run the project by running:

$ python3 main.py

Install dependencies with:

$ pip3 install -r requirements.txt

Description

The following models were run on the dataset:

  • K-Nearest-Neighbours
  • Linear Regression
  • Decision Tree
  • Random Forest
  • SVR

Evaluates the performance of 5 key models:

  • it should evaluate the performance on the validation set ✅

  • it should return a train, val and test loss value and R-squared score for that hyperparameterisation ✅

  • it should return the hyperparameters which resulted in that score ✅

  • the time taken to fit the model ✅

  • evaluate them on all of sklearn's toy regression datasets available in sklearn.datasets ✅

  • create a main.py file which loops through each dataset and each model, printing the results ✅

  • graphical visualisations of

  • time to fit each of the best models ✅

  • final train, validation and test set loss/mse scores ✅

  • final train, validation and test set R-squared scores (= model.score) ✅

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.