Giter Site home page Giter Site logo

jackyan540 / cs181-homework2 Goto Github PK

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

Spring 2021 Machine Learning (CS 181) Homework 2

Python 100.00%
bias-variance maximum-likelihood-estimation classification-model generative-models knn-classification softmax-regression

cs181-homework2's Introduction

cs181-homework2

Spring 2021 Machine Learning (CS 181) Homework 2

Problem Topics

Solutions contained in the personal-solutions folder

  1. Exploring the Bias-Variance Tradeoff
  2. Maximum Likelihood Estimation in Classification (for a generative K-class model)
  3. Comparing 4 different classifiers: (1) softmax regression, (2) generative classifier with a shared covariance matrix, (3) generative classifier with a separate covariance matrix, and (4) kNN classifier

Code

Implementation contained in the code folder

problem1-Gradient-Descent.py

  • Using gradient descent, fits a sigmoid logistic regression model for three different bases

T2_P3.py

  • Controller file that tests the implementation for the 4 different classifiers
  • The classifier implementations are contained in T2_P3_LogisticRegression.py, T2_P3_GaussianGenerativeModel.py, and T2_P3_KNNModel.py

cs181-homework2's People

Contributors

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