remove requirement file, added conda environment file
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -108,3 +108,4 @@ venv.bak/
|
|||||||
*.pkl
|
*.pkl
|
||||||
*-solved.ipynb
|
*-solved.ipynb
|
||||||
|
|
||||||
|
.idea/
|
||||||
@@ -1299,7 +1299,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.6.4"
|
"version": "3.6.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|||||||
@@ -915,7 +915,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.6.4"
|
"version": "3.6.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|||||||
@@ -710,15 +710,27 @@
|
|||||||
"</div>\n",
|
"</div>\n",
|
||||||
"\n",
|
"\n",
|
||||||
"<div class=\"alert alert-box alert-success\">\n",
|
"<div class=\"alert alert-box alert-success\">\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",
|
" <b>Practical Tip:</b> 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",
|
||||||
"</div>"
|
"</div>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 1,
|
||||||
"metadata": {},
|
"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<ipython-input-1-d4995b4088e4>\u001b[0m in \u001b[0;36m<module>\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": [
|
"source": [
|
||||||
"utils.checkNNGradients(nnCostFunction)"
|
"utils.checkNNGradients(nnCostFunction)"
|
||||||
]
|
]
|
||||||
@@ -916,7 +928,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.6.4"
|
"version": "3.6.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|||||||
@@ -19,9 +19,7 @@
|
|||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {},
|
||||||
"collapsed": true
|
|
||||||
},
|
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"# used for manipulating directory paths\n",
|
"# used for manipulating directory paths\n",
|
||||||
@@ -141,9 +139,7 @@
|
|||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {},
|
||||||
"collapsed": true
|
|
||||||
},
|
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"def linearRegCostFunction(X, y, theta, lambda_=0.0):\n",
|
"def linearRegCostFunction(X, y, theta, lambda_=0.0):\n",
|
||||||
@@ -359,9 +355,7 @@
|
|||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {},
|
||||||
"collapsed": true
|
|
||||||
},
|
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"def learningCurve(X, y, Xval, yval, lambda_=0):\n",
|
"def learningCurve(X, y, Xval, yval, lambda_=0):\n",
|
||||||
@@ -528,9 +522,7 @@
|
|||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {},
|
||||||
"collapsed": true
|
|
||||||
},
|
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"def polyFeatures(X, p):\n",
|
"def polyFeatures(X, p):\n",
|
||||||
@@ -732,9 +724,7 @@
|
|||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {},
|
||||||
"collapsed": true
|
|
||||||
},
|
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"def validationCurve(X, y, Xval, yval):\n",
|
"def validationCurve(X, y, Xval, yval):\n",
|
||||||
@@ -896,9 +886,7 @@
|
|||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {},
|
||||||
"collapsed": true
|
|
||||||
},
|
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": []
|
"source": []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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:
|
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)
|
After the new environment is setup, activate it using (windows)
|
||||||
|
|
||||||
|
|||||||
9
environment.yml
Normal file
9
environment.yml
Normal file
@@ -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
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user