Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
rohinarora committed Nov 3, 2019
1 parent 43dc5a5 commit c300b03
Show file tree
Hide file tree
Showing 17 changed files with 3,507 additions and 0 deletions.
Binary file added Hw3/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hw3/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,109 changes: 1,109 additions & 0 deletions Hw3/HW3 Solution.ipynb

Large diffs are not rendered by default.

532 changes: 532 additions & 0 deletions Hw3/HW3 Solution_bkp.ipynb

Large diffs are not rendered by default.

785 changes: 785 additions & 0 deletions Hw3/Q1.ipynb

Large diffs are not rendered by default.

693 changes: 693 additions & 0 deletions Hw3/Q2.ipynb

Large diffs are not rendered by default.

125 changes: 125 additions & 0 deletions Hw3/Untitled.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"from sklearn import datasets\n",
"sklearn.datasets.load_iris()\n",
"iris = sklearn.datasets.load_iris()\n",
"X = iris.data[:, :2]\n",
"y = (iris.target != 0) * 1"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(150,)"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"y.shape"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(150, 2)"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"X.shape"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"numpy.ndarray"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"type(X)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"numpy.ndarray"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"type(y)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
189 changes: 189 additions & 0 deletions Hw3/test.ipynb

Large diffs are not rendered by default.

62 changes: 62 additions & 0 deletions Hw3/tmp.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"from scipy import linalg\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib as mpl\n",
"from matplotlib import colors\n",
"from sklearn.discriminant_analysis import LinearDiscriminantAnalysis"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"# #############################################################################\n",
"# Colormap\n",
"cmap = colors.LinearSegmentedColormap(\n",
" 'red_blue_classes',\n",
" {'red': [(0, 1, 1), (1, 0.7, 0.7)],\n",
" 'green': [(0, 0.7, 0.7), (1, 0.7, 0.7)],\n",
" 'blue': [(0, 0.7, 0.7), (1, 1, 1)]})\n",
"plt.cm.register_cmap(cmap=cmap)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Binary file modified L10/cs229-notes7b_GMM_EM.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions L2/todo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
https://peterroelants.github.io/posts/multivariate-normal-primer/
https://www.youtube.com/watch?v=eho8xH3E6mE
https://www.youtube.com/watch?v=ppd4c96hHH8
https://www.youtube.com/watch?v=TC0ZAX3DA88
https://www.youtube.com/watch?v=a2t2EQd5SC4
http://aishack.in/tutorials/generating-multivariate-gaussian-random/
http://fourier.eng.hmc.edu/e161/lectures/gaussianprocess/node7.html
Binary file added Oct_30_SVM2/SmoSch04_tutorial2.pdf
Binary file not shown.
File renamed without changes.
4 changes: 4 additions & 0 deletions Oct_30_SVM2/notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1. Ng video+notes
2. Deniz video
3. tutorial2. related to cs231n SVM
4. cs231n SVM
Binary file added Oct_30_SVM2/svmtutorial.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions Tips/notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Always shuffle dataset for kfold (HW3 Q1)
Binary file added ToDo/error-analysis.pdf
Binary file not shown.

0 comments on commit c300b03

Please sign in to comment.