Fixed setence in ex1 and comment in ex3
0
.gitignore
vendored
Executable file → Normal file
0
Exercise1/Data/ex1data1.txt
Executable file → Normal file
0
Exercise1/Data/ex1data2.txt
Executable file → Normal file
0
Exercise1/Figures/cost_function.png
Executable file → Normal file
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 120 KiB |
0
Exercise1/Figures/dataset1.png
Executable file → Normal file
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
0
Exercise1/Figures/learning_rate.png
Executable file → Normal file
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
0
Exercise1/Figures/regression_result.png
Executable file → Normal file
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
2
Exercise1/exercise1.ipynb
Executable file → Normal file
@@ -192,7 +192,7 @@
|
||||
"\n",
|
||||
"Now you will implement linear regression with one variable to predict profits for a food truck. Suppose you are the CEO of a restaurant franchise and are considering different cities for opening a new outlet. The chain already has trucks in various cities and you have data for profits and populations from the cities. You would like to use this data to help you select which city to expand to next. \n",
|
||||
"\n",
|
||||
"The file `Data/ex1data1.txt` contains the dataset for our linear regression problem. The first column is the population of a city and the second column is the profit of a food truck in that city. A negative value for profit indicates a loss. \n",
|
||||
"The file `Data/ex1data1.txt` contains the dataset for our linear regression problem. The first column is the population of a city (in 10,000s) and the second column is the profit of a food truck in that city (in $10,000s). A negative value for profit indicates a loss. \n",
|
||||
"\n",
|
||||
"We provide you with the code needed to load this data. The dataset is loaded from the data file into the variables `x` and `y`:"
|
||||
]
|
||||
|
||||
0
Exercise1/utils.py
Executable file → Normal file
0
Exercise2/Data/ex2data1.txt
Executable file → Normal file
0
Exercise2/Data/ex2data2.txt
Executable file → Normal file
0
Exercise2/Figures/decision_boundary1.png
Executable file → Normal file
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
0
Exercise2/Figures/decision_boundary2.png
Executable file → Normal file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
0
Exercise2/Figures/decision_boundary3.png
Executable file → Normal file
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
0
Exercise2/Figures/decision_boundary4.png
Executable file → Normal file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
0
Exercise2/exercise2.ipynb
Executable file → Normal file
0
Exercise2/utils.py
Executable file → Normal file
0
Exercise3/Data/ex3data1.mat
Executable file → Normal file
0
Exercise3/Data/ex3weights.mat
Executable file → Normal file
0
Exercise3/Figures/neuralnetwork.png
Executable file → Normal file
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
4
Exercise3/exercise3.ipynb
Executable file → Normal file
@@ -505,7 +505,7 @@
|
||||
" initial_theta = np.zeros(n + 1)\n",
|
||||
" \n",
|
||||
" # Set options for minimize\n",
|
||||
" options = {'maxiter', 50}\n",
|
||||
" options = {'maxiter': 50}\n",
|
||||
" \n",
|
||||
" # Run minimize to obtain the optimal theta. This function will \n",
|
||||
" # return a class object where theta is in `res.x` and cost in `res.fun`\n",
|
||||
@@ -513,7 +513,7 @@
|
||||
" initial_theta, \n",
|
||||
" (X, (y == c), lambda_), \n",
|
||||
" jac=True, \n",
|
||||
" method='TNC')\n",
|
||||
" method='TNC',\n",
|
||||
" options=options) \n",
|
||||
" \"\"\"\n",
|
||||
" # Some useful variables\n",
|
||||
|
||||
0
Exercise3/utils.py
Executable file → Normal file
0
Exercise4/Data/ex4data1.mat
Executable file → Normal file
0
Exercise4/Data/ex4weights.mat
Executable file → Normal file
0
Exercise4/Figures/ex4-backpropagation.png
Executable file → Normal file
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
0
Exercise4/Figures/neural_network.png
Executable file → Normal file
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
0
Exercise4/exercise4.ipynb
Executable file → Normal file
0
Exercise4/utils.py
Executable file → Normal file
0
Exercise5/Data/ex4data1.mat
Executable file → Normal file
0
Exercise5/Data/ex4weights.mat
Executable file → Normal file
0
Exercise5/Data/ex5data1.mat
Executable file → Normal file
0
Exercise5/Figures/cross_validation.png
Executable file → Normal file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
0
Exercise5/Figures/learning_curve.png
Executable file → Normal file
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
0
Exercise5/Figures/learning_curve_random.png
Executable file → Normal file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
0
Exercise5/Figures/linear_fit.png
Executable file → Normal file
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
Exercise5/Figures/polynomial_learning_curve.png
Executable file → Normal file
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
0
Exercise5/Figures/polynomial_learning_curve_reg_1.png
Executable file → Normal file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
0
Exercise5/Figures/polynomial_regression.png
Executable file → Normal file
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
0
Exercise5/Figures/polynomial_regression_reg_1.png
Executable file → Normal file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
0
Exercise5/Figures/polynomial_regression_reg_100.png
Executable file → Normal file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
0
Exercise5/exercise5.ipynb
Executable file → Normal file
0
Exercise5/utils.py
Executable file → Normal file
0
Exercise6/Data/emailSample1.txt
Executable file → Normal file
0
Exercise6/Data/emailSample2.txt
Executable file → Normal file
0
Exercise6/Data/ex6data1.mat
Executable file → Normal file
0
Exercise6/Data/ex6data2.mat
Executable file → Normal file
0
Exercise6/Data/ex6data3.mat
Executable file → Normal file
0
Exercise6/Data/spamSample1.txt
Executable file → Normal file
0
Exercise6/Data/spamSample2.txt
Executable file → Normal file
0
Exercise6/Data/spamTest.mat
Executable file → Normal file
0
Exercise6/Data/spamTrain.mat
Executable file → Normal file
0
Exercise6/Data/vocab.txt
Executable file → Normal file
0
Exercise6/Figures/dataset1.png
Executable file → Normal file
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
0
Exercise6/Figures/dataset2.png
Executable file → Normal file
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
0
Exercise6/Figures/dataset3.png
Executable file → Normal file
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
0
Exercise6/Figures/email.png
Executable file → Normal file
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
0
Exercise6/Figures/email_cleaned.png
Executable file → Normal file
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
0
Exercise6/Figures/svm_c1.png
Executable file → Normal file
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
0
Exercise6/Figures/svm_c100.png
Executable file → Normal file
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
0
Exercise6/Figures/svm_dataset2.png
Executable file → Normal file
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 113 KiB |
0
Exercise6/Figures/svm_dataset3_best.png
Executable file → Normal file
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
0
Exercise6/Figures/svm_predictors.png
Executable file → Normal file
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
0
Exercise6/Figures/vocab.png
Executable file → Normal file
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
0
Exercise6/Figures/word_indices.png
Executable file → Normal file
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
0
Exercise6/exercise6.ipynb
Executable file → Normal file
0
Exercise6/utils.py
Executable file → Normal file
0
Exercise7/Data/bird_small.mat
Executable file → Normal file
0
Exercise7/Data/bird_small.png
Executable file → Normal file
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
0
Exercise7/Data/ex7data1.mat
Executable file → Normal file
0
Exercise7/Data/ex7data2.mat
Executable file → Normal file
0
Exercise7/Data/ex7faces.mat
Executable file → Normal file
0
Exercise7/Figures/bird_compression.png
Executable file → Normal file
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
0
Exercise7/Figures/faces.png
Executable file → Normal file
|
Before Width: | Height: | Size: 174 KiB After Width: | Height: | Size: 174 KiB |
0
Exercise7/Figures/faces_original.png
Executable file → Normal file
|
Before Width: | Height: | Size: 154 KiB After Width: | Height: | Size: 154 KiB |
0
Exercise7/Figures/faces_reconstructed.png
Executable file → Normal file
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 125 KiB |
0
Exercise7/Figures/kmeans_result.png
Executable file → Normal file
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
0
Exercise7/Figures/pca_components.png
Executable file → Normal file
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
0
Exercise7/Figures/pca_reconstruction.png
Executable file → Normal file
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
0
Exercise7/exercise7.ipynb
Executable file → Normal file
0
Exercise7/utils.py
Executable file → Normal file
0
Exercise8/Data/ex8_movieParams.mat
Executable file → Normal file
0
Exercise8/Data/ex8_movies.mat
Executable file → Normal file
0
Exercise8/Data/ex8data1.mat
Executable file → Normal file
0
Exercise8/Data/ex8data2.mat
Executable file → Normal file
0
Exercise8/Data/movie_ids.txt
Executable file → Normal file
0
Exercise8/Figures/gaussian_fit.png
Executable file → Normal file
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
0
Exercise8/exercise8.ipynb
Executable file → Normal file
0
Exercise8/utils.py
Executable file → Normal file
0
machinelearning.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |