Supervised Learning - Classification Problems (Logistic Regression Model)
- ex2.m - Run non-regularized logistic regression model.
- ex2_reg.m - Run regularized logistic regression model.
- submit.m - Submit code to Coursera grader.
- ex2data1.txt - Used in ex2.m
- ex2data2.txt - Used in ex2_reg.m
- plotData.m - Plot 2D classification data.
- plotDecisionBoundary.m - Plot classifier's decision boundary.
- sigmoid.m - Logistic Regression Hypothesis Function
- predict.m - Logistic Regression Prediction Function
- costFunction.m - Logistic Regression Cost Function (Unregularized)
- mapFeature.m - Function to generate polynomial features, thereby necessitating regularization.
- costFunctionReg.m - Logistic Regression Cost Function (Regularized)
- m = number of training examples
- n = number of features
= hypothesis function weights; parameters
- x = input
- y = actual output
= prediction; output of hypothesis function
= input for training example i, feature j
= output for training example i
For j = [0, n]:
For j = 0:
For j = [1,n]:
- Coursera Machine Learning Exercise #2 Instructions
- GNU Octave Documentation
- Matlab Documentation