Git Product home page Git Product logo

machine-learning's Introduction

machine-learning

机器学习算法,python3实现

回归算法

线性回归算法

一般线性回归算法代码位置 包括常规线性回归,局部加权线性回归,岭回归以及前向梯度回归

分类算法

logistics regression

逻辑回归算法[代码位置](https://github.com/lightnine/machine-learning/blob/master/src /classification/logistic_regression.py) 里面分别采用梯度下降和随机梯度下降算法实现,跑了两个数据集. 一个是简单的只有两个特征的。另外一个数据集是用的UCI的horse colic数据集. 通过这个代码可以了解logistic算法的一些知识

GDA(Gaussian discriminant analysis)

gda算法[代码位置](https://github.com/lightnine/machine-learning/blob/master/src /classification/gda.py) 里面分别运行了一个真实数据集和一个从高斯分布产生的数据集,展示了如何求取gda算法。 求取gda算法的过程比较简单,只需要根据训练数据计算概率,两个类别的均值,协方差矩阵。然后针对测试数据分别计算属于两个类别的概率,比较大小, 选择概率大的作为测试数据的类别即可

machine-learning's People

Contributors

lightnine avatar

Watchers

James Cloos avatar  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.