Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwasham/machine-learning
Some notes on machine learning algorithms, mostly in Matlab format.
https://github.com/jwasham/machine-learning
Last synced: about 1 month ago
JSON representation
Some notes on machine learning algorithms, mostly in Matlab format.
- Host: GitHub
- URL: https://github.com/jwasham/machine-learning
- Owner: jwasham
- Created: 2016-02-28T04:44:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-03-29T17:15:12.000Z (over 8 years ago)
- Last Synced: 2024-05-01T20:22:37.824Z (7 months ago)
- Language: Matlab
- Size: 7.69 MB
- Stars: 57
- Watchers: 5
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Machine Learning Algorithms
This is a collection of notes and code for machine learning algorithms.
Most of these will be Matlab/Octave files. Would like to add some Python/Numpy implementations later.
## Linear regression
Regularized linear regression has the following cost function:
![regularized linear regression cost function](images/regularized-linear-regression-cost-function.png)
Correspondingly, the partial derivative of regularized linear regression's cost for θj is defined as:
![Regularized linear regression gradient](images/regularized-linear-regression-gradient.png)
To plot the learning curve, we need a training and cross validation set
error for different training set sizes. To obtain different training set sizes,
use different subsets of the original training set X. Specifically, for
a training set size of i, you should use the first i examples (i.e., X(1:i,:)
and y(1:i)).You can use the trainLinearRegression() function to find the θ parameters. Note
that the lambda is passed as a parameter to the learningCurve function.
After learning the θ parameters, you should compute the error on the training
and cross validation sets. Recall that the training error for a dataset is
defined as:![Calculating training error](images/calculating-training-error.png)
In particular, note that the training error does not include the regularization
term. One way to compute the training error is to use your existing
cost function and set λ to 0 only when using it to compute the training error
and cross validation error. When you are computing the training set error,
make sure you compute it on the training subset (i.e., X(1:n,:) and y(1:n))
(instead of the entire training set). However, for the cross validation error,
you should compute it over the entire cross validation set.## Logistic Regression
*coming soon*
## Multi-class Classification
*coming soon*
## Neural Networks
*coming soon*
## Neural Network Learning
*coming soon*
## Regularized Linear Regression
*coming soon*
## Support Vector Machines
*coming soon*