diff --git a/.gitignore b/.gitignore
index 848d2a0..f04b506 100644
--- a/.gitignore
+++ b/.gitignore
@@ -108,3 +108,4 @@ venv.bak/
*.pkl
*-solved.ipynb
+.idea/
\ No newline at end of file
diff --git a/Exercise1/exercise1.ipynb b/Exercise1/exercise1.ipynb
index 7ebc6fa..ef8a53e 100755
--- a/Exercise1/exercise1.ipynb
+++ b/Exercise1/exercise1.ipynb
@@ -1299,7 +1299,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.6.4"
+ "version": "3.6.6"
}
},
"nbformat": 4,
diff --git a/Exercise3/exercise3.ipynb b/Exercise3/exercise3.ipynb
index e37be91..33e782a 100755
--- a/Exercise3/exercise3.ipynb
+++ b/Exercise3/exercise3.ipynb
@@ -915,7 +915,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.6.4"
+ "version": "3.6.6"
}
},
"nbformat": 4,
diff --git a/Exercise4/exercise4.ipynb b/Exercise4/exercise4.ipynb
index d8ebee0..a07d63c 100755
--- a/Exercise4/exercise4.ipynb
+++ b/Exercise4/exercise4.ipynb
@@ -710,15 +710,27 @@
"\n",
"\n",
"
\n",
- "**Practical Tip:** Gradient checking works for any function where you are computing the cost and the gradient. Concretely, you can use the same `computeNumericalGradient` function to check if your gradient implementations for the other exercises are correct too (e.g., logistic regression’s cost function).\n",
+ " Practical Tip: Gradient checking works for any function where you are computing the cost and the gradient. Concretely, you can use the same `computeNumericalGradient` function to check if your gradient implementations for the other exercises are correct too (e.g., logistic regression’s cost function).\n",
"
"
]
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 1,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "ename": "NameError",
+ "evalue": "name 'utils' is not defined",
+ "output_type": "error",
+ "traceback": [
+ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
+ "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
+ "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mutils\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcheckNNGradients\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mnnCostFunction\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
+ "\u001b[0;31mNameError\u001b[0m: name 'utils' is not defined"
+ ]
+ }
+ ],
"source": [
"utils.checkNNGradients(nnCostFunction)"
]
@@ -916,7 +928,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.6.4"
+ "version": "3.6.6"
}
},
"nbformat": 4,
diff --git a/Exercise5/exercise5.ipynb b/Exercise5/exercise5.ipynb
index 66c4500..392cded 100755
--- a/Exercise5/exercise5.ipynb
+++ b/Exercise5/exercise5.ipynb
@@ -19,9 +19,7 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {
- "collapsed": true
- },
+ "metadata": {},
"outputs": [],
"source": [
"# used for manipulating directory paths\n",
@@ -141,9 +139,7 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {
- "collapsed": true
- },
+ "metadata": {},
"outputs": [],
"source": [
"def linearRegCostFunction(X, y, theta, lambda_=0.0):\n",
@@ -359,9 +355,7 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {
- "collapsed": true
- },
+ "metadata": {},
"outputs": [],
"source": [
"def learningCurve(X, y, Xval, yval, lambda_=0):\n",
@@ -528,9 +522,7 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {
- "collapsed": true
- },
+ "metadata": {},
"outputs": [],
"source": [
"def polyFeatures(X, p):\n",
@@ -732,9 +724,7 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {
- "collapsed": true
- },
+ "metadata": {},
"outputs": [],
"source": [
"def validationCurve(X, y, Xval, yval):\n",
@@ -896,9 +886,7 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {
- "collapsed": true
- },
+ "metadata": {},
"outputs": [],
"source": []
}
diff --git a/README.md b/README.md
index ca997de..533b7a6 100755
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@ If you are on a windows machine:
Once you have installed python, create a new python environment will all the requirements using the following command:
- conda create -n machine_learning python=3.6 scipy=1 numpy=1.13 matplotlib=2.1 jupyter
+ conda env create -f environment.yml
After the new environment is setup, activate it using (windows)
diff --git a/environment.yml b/environment.yml
new file mode 100644
index 0000000..07a7a45
--- /dev/null
+++ b/environment.yml
@@ -0,0 +1,9 @@
+name: machine_learning
+channels:
+ - defaults
+dependencies:
+ - jupyter=1.0.0
+ - matplotlib=2.1.2
+ - numpy=1.13.3
+ - python=3.6.4
+ - scipy=1.0.0
diff --git a/requirements.txt b/requirements.txt
deleted file mode 100755
index 1a7539c..0000000
--- a/requirements.txt
+++ /dev/null
@@ -1,68 +0,0 @@
-appdirs==1.4.3
-asn1crypto==0.24.0
-attrs==18.1.0
-Automat==0.7.0
-backcall==0.1.0
-bleach==2.1.4
-certifi==2018.8.13
-cffi==1.11.5
-constantly==15.1.0
-cryptography==2.3.1
-cycler==0.10.0
-decorator==4.3.0
-entrypoints==0.2.3
-html5lib==1.0.1
-hyperlink==18.0.0
-idna==2.7
-incremental==17.5.0
-ipykernel==4.8.2
-ipython==6.5.0
-ipython-genutils==0.2.0
-ipywidgets==7.4.0
-jedi==0.12.1
-Jinja2==2.10
-jsonschema==2.6.0
-jupyter==1.0.0
-jupyter-client==5.2.3
-jupyter-console==5.2.0
-jupyter-core==4.4.0
-MarkupSafe==1.0
-matplotlib==2.1.2
-mistune==0.8.3
-mkl-fft==1.0.4
-mkl-random==1.0.1
-nbconvert==5.3.1
-nbformat==4.4.0
-notebook==5.6.0
-numpy==1.13.3
-pandocfilters==1.4.2
-parso==0.3.1
-pexpect==4.6.0
-pickleshare==0.7.4
-prometheus-client==0.3.1
-prompt-toolkit==1.0.15
-ptyprocess==0.6.0
-pyasn1==0.4.4
-pyasn1-modules==0.2.2
-pycparser==2.18
-Pygments==2.2.0
-pyOpenSSL==18.0.0
-pyparsing==2.2.0
-python-dateutil==2.7.3
-pytz==2018.5
-pyzmq==17.1.2
-qtconsole==4.3.1
-scipy==1.1.0
-Send2Trash==1.5.0
-service-identity==17.0.0
-simplegeneric==0.8.1
-six==1.11.0
-terminado==0.8.1
-testpath==0.3.1
-tornado==5.1
-traitlets==4.3.2
-Twisted==18.7.0
-wcwidth==0.1.7
-webencodings==0.5.1
-widgetsnbextension==3.4.0
-zope.interface==4.5.0