Code Monkey home page Code Monkey logo

machine-learning-explained's Introduction

Hi πŸ‘‹, I'm Gilbert Tanner

I'm a software engineer from Austria currently studying Robotics and Artificial Intelligence at the University of Klagenfurt.

  • πŸ‘¨πŸ½β€πŸ’» Currently working and growing my skillset in Robotics and Artificial Intelligence
  • 🀝 Open for collaborations regarding technical articles and Machine Learning projects
  • 🌐 Visit my website for more information

πŸ“• Latest Blog Posts

🀝Connect with me:

machine-learning-explained's People

Contributors

tannergilbert avatar texify[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

machine-learning-explained's Issues

Bug?

Hello, I think there might be a bug in your linear_discriminant_analysis.py script
You are computing

Between class scatter matrix

    total_mean = np.mean(X, axis=0)
    S_B = np.empty((n_features, n_features))
    for label in labels:
        _X = X[y == label]
        _mean = np.mean(_X, axis=0)
        S_B += len(_X) * (_mean - total_mean).dot((_mean - total_mean).T)

Which gives a NxN S_B matrix, where N is the number of features. But with

_mean = np.mean(_X, axis=0)

the _mean has shape (N, ), which makes (_mean - total_mean).dot((_mean - total_mean).T) a scalar instead of a matrix. S_B keeps to have correct shape because of its initialization, but incorrect values.

I might be wrong, but please consider this.

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.