GithubHelp home page GithubHelp logo

rezaghasemi / ml_assignment_2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 41.13 MB

Python 97.57% PowerShell 0.09% Batchfile 0.01% JavaScript 0.12% HTML 0.02% CSS 0.03% Jupyter Notebook 0.06% Lua 0.01% Cython 0.28% C 1.39% C++ 0.30% Meson 0.01% Fortran 0.10% Forth 0.01% Roff 0.02%

ml_assignment_2's Introduction

This is the second coding assignment for the introduction to machine learning algorithm by Lili Mou.

Setup Virtual Environment:

Take a look at 'requirements.txt' for required package and versions.

MNIST Dataset:

You can download it from the following link:

https://www.kaggle.com/datasets/hojjatk/mnist-dataset/

Utils.py:

Function generate() takes as input "A" or "B", it returns X, t. X is two dimensional vectors, t is the list of labels (0 or 1).

Function plot_data(X, t, w=None, bias=None, is_logistic=False, figure_name=None) takes as input paris of (X, t) , parameter w, and bias. If you are plotting the decision boundary for a logistic classifier, set "is_logistic" as True "figure_name" specifies the name of the saved diagram.

ml_assignment_2's People

Contributors

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