Coder Social home page Coder Social logo

liethon / machine-learning-algorithm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kangcai/machine-learning-algorithm

0.0 0.0 0.0 1.25 MB

:star2:【Numpy 手写实现】SVM 支持向量机 | KNN K近邻 | Kmeans | Logistic Regression 逻辑回归 | Maximum Entropy 最大熵 | Naive Bayes 朴素贝叶斯 | Perception 感知机 | Decision Tree 决策树 | Random Forest 随机森林 | DBDT | GDA 高斯判别分析 | PCA 主成分分析 | LDA 线性判别分析

Python 100.00%

machine-learning-algorithm's Introduction

Machine-Learning-Algorithm

注意: 每个文件只有开始的 class 是模型本身,其它代码都是用来测试的,每个模型的实现都在 100 行以内

Note: Only the class at the beginning of each file is the model itself, the rest of the code is for testing, and the implementation of each model is within 100 lines


1. Logistic Regression

File - logistic_regression.py

Cost Function -

Optimization Algorithm - Gradient descent method


2. Support Vector Machine

File - support_vector_machine.py

Example -

Cost Function -

Optimization Algorithm - Sequential minimal optimization (SMO)


3. Perception

File - perception.py

Example -


4. Naive Bayes

File - naive_bayes.py

Example -


5. K-Nearest Neighbor

File - k_nearest_neighbor.py | util_kd_tree.py

Example -


6. Decision Tree

File - decision_tree.py

Optimization Algorithm - Generalized Iterative Scaling (GIS)

Example -


7. Random Forest

File - random_forest.py | | decision_tree.py

Example -


8. Gradient Boosting Decision Tree

File - gradient_boosting_decision_tree.py | decision_tree.py


9. Linear Discriminant Analysis

File - linear_discriminant_analysis.py


10. Maximum Entropy

File - maximum_entropy.py

Example -


11. Gaussian Discriminant Analysis

File - gaussian_discriminant_analysis.py


12. Principal Component Analysis

File - principal_component_analysis.py

Example -


13. K-means

File - kmeans.py | util_kd_tree.py

machine-learning-algorithm's People

Contributors

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