Git Product home page Git Product logo

project1-oslo's Introduction

Project1-Oslo

Project about regression and classification.

This folder is composed of multiple files, here are some information to see clearer:

Our program is composed of two main script corresponding to each one of the task, for each one of the task. A global boolean variable "final" indicate if we do the testing on our training set (evaluate the error) or on the testing set (final prediction). In addition, another script (loopProgram) allow us to run our predictions multiple times to do some statistics.

  • mainClassification.m
  • mainRegression.m
  • loopProgram: Execute the prediction on the training set multiple time to evaluate the final error.

The training of each model is executed in two functions which compute the best beta parametters, using cross validation.

  • trainClassificationModel.m
  • trainRegressionModel.m

In addition, we have developped multiple functions to simplified the some process:

  • dataTransform: Perform data transformation on the training and testing set (for instance dummy encoding, sqrt, remove categorical variables,...).
  • modelSelection: For the regression task, this function will decide in which cluster each testing sample is. It is useful to apply the right model.
  • outlierDetection: Not working but was suppose to detect the outliers in our testing set on the classification task

Finaly, we have the low level machine algorithm :

  • leastSquare
  • leastSquareGD
  • ridgeRegression
  • logisticRegression
  • penLogisticRegression
  • IRLS

Some mathematical functions:

  • sigmoid
  • hessian

Differents cost functions are available:

  • costRMSE
  • costMSE
  • costClass: 1-loss

project1-oslo's People

Contributors

conchylicultor avatar lucile-baumann avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

project1-oslo's Issues

Normalize correctly

Centralize all normalizations at the beginning

Warning: remove other normalizations (on testing and training data)
Warning: some plot may not work after that (search for 16 and 38)

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.