Skip to content

Commit

Permalink
adding projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Brewer committed Sep 29, 2016
1 parent a0109d5 commit e1fa68b
Show file tree
Hide file tree
Showing 75 changed files with 10,223 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .ipynb_checkpoints/TensorBoard-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
6 changes: 6 additions & 0 deletions .ipynb_checkpoints/Untitled-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 0
}
106 changes: 106 additions & 0 deletions .ipynb_checkpoints/[3]GradientDescent-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"import math\n",
"\n",
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [
{
"ename": "IOError",
"evalue": "[Errno 2] No such file or directory: '/../../[2]Perceptron/cifar-10-batches-py/data_batch_1'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mIOError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-5-bed4e3b2ef54>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 11\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mdict\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 13\u001b[0;31m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0munpickle\u001b[0m\u001b[0;34m(\u001b[0m \u001b[0;34m'/../../[2]Perceptron/cifar-10-batches-py/data_batch_1'\u001b[0m \u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 14\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 15\u001b[0m \u001b[0mfeatures\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdata\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'data'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m<ipython-input-5-bed4e3b2ef54>\u001b[0m in \u001b[0;36munpickle\u001b[0;34m(file)\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0munpickle\u001b[0m\u001b[0;34m(\u001b[0m \u001b[0mfile\u001b[0m \u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 7\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mcPickle\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 8\u001b[0;31m \u001b[0mfo\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mopen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfile\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'rb'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 9\u001b[0m \u001b[0mdict\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcPickle\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfo\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 10\u001b[0m \u001b[0mfo\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mclose\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mIOError\u001b[0m: [Errno 2] No such file or directory: '/../../[2]Perceptron/cifar-10-batches-py/data_batch_1'"
]
}
],
"source": [
"# =============================================\n",
"#\n",
"# load cifar-10-small and project down\n",
"#\n",
" \n",
"def unpickle( file ):\n",
" import cPickle\n",
" fo = open(file, 'rb')\n",
" dict = cPickle.load(fo)\n",
" fo.close()\n",
" return dict\n",
" \n",
"data = unpickle( '../../[2]Perceptron/cifar-10-batches-py/data_batch_1' )\n",
" \n",
"features = data['data']\n",
"labels = data['labels']\n",
"labels = np.atleast_2d( labels ).T\n",
" \n",
"N = 1000\n",
"D = 10\n",
" \n",
"# only keep N items\n",
"features = features[ 0:N, : ] \n",
"labels = labels[ 0:N, : ]\n",
" \n",
"# project down into a D-dimensional space\n",
"features = np.dot( features, np.random.randn( 3072, D) )\n",
" \n",
"# whiten our data - zero mean and unit standard deviation\n",
"features = (features - np.mean(features, axis=0)) / np.std(features, axis=0)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from IPython.display import Image\n",
"Image(filename= 'perceptron1.png')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
248 changes: 248 additions & 0 deletions BACKUP/.ipynb_checkpoints/AutomaticDescent-checkpoint.ipynb

Large diffs are not rendered by default.

734 changes: 734 additions & 0 deletions BACKUP/DropoutRegularization.ipynb

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Untitled.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 0
}
Binary file removed [1]TensorFlowSandbox.zip
Binary file not shown.
694 changes: 694 additions & 0 deletions [2]Perceptron/.ipynb_checkpoints/Perceptron-checkpoint.ipynb

Large diffs are not rendered by default.

151 changes: 151 additions & 0 deletions [2]Perceptron/Fisher.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
Type,PW,PL,SW,SL
0,2,14,33,50
1,24,56,31,67
1,23,51,31,69
0,2,10,36,46
1,20,52,30,65
1,19,51,27,58
2,13,45,28,57
2,16,47,33,63
1,17,45,25,49
2,14,47,32,70
0,2,16,31,48
1,19,50,25,63
0,1,14,36,49
0,2,13,32,44
2,12,40,26,58
1,18,49,27,63
2,10,33,23,50
0,2,16,38,51
0,2,16,30,50
1,21,56,28,64
0,4,19,38,51
0,2,14,30,49
2,10,41,27,58
2,15,45,29,60
0,2,14,36,50
1,19,51,27,58
0,4,15,34,54
1,18,55,31,64
2,10,33,24,49
0,2,14,42,55
1,15,50,22,60
2,14,39,27,52
0,2,14,29,44
2,12,39,27,58
1,23,57,32,69
2,15,42,30,59
1,20,49,28,56
1,18,58,25,67
2,13,44,23,63
2,15,49,25,63
2,11,30,25,51
1,21,54,31,69
1,25,61,36,72
2,13,36,29,56
1,21,55,30,68
0,1,14,30,48
0,3,17,38,57
2,14,44,30,66
0,4,15,37,51
2,17,50,30,67
1,22,56,28,64
1,15,51,28,63
2,15,45,22,62
2,14,46,30,61
2,11,39,25,56
1,23,59,32,68
1,23,54,34,62
1,25,57,33,67
0,2,13,35,55
2,15,45,32,64
1,18,51,30,59
1,23,53,32,64
2,15,45,30,54
1,21,57,33,67
0,2,13,30,44
0,2,16,32,47
1,18,60,32,72
1,18,49,30,61
0,2,12,32,50
0,1,11,30,43
2,14,44,31,67
0,2,14,35,51
0,4,16,34,50
2,10,35,26,57
1,23,61,30,77
2,13,42,26,57
0,1,15,41,52
1,18,48,30,60
2,13,42,27,56
0,2,15,31,49
0,4,17,39,54
2,16,45,34,60
2,10,35,20,50
0,2,13,32,47
2,13,54,29,62
0,2,15,34,51
2,10,50,22,60
0,1,15,31,49
0,2,15,37,54
2,12,47,28,61
2,13,41,28,57
0,4,13,39,54
1,20,51,32,65
2,15,49,31,69
2,13,40,25,55
0,3,13,23,45
0,3,15,38,51
2,14,48,28,68
0,2,15,35,52
1,25,60,33,63
2,15,46,28,65
0,3,14,34,46
2,18,48,32,59
2,16,51,27,60
1,18,55,30,65
0,5,17,33,51
1,22,67,38,77
1,21,66,30,76
1,13,52,30,67
2,13,40,28,61
2,11,38,24,55
0,2,14,34,52
1,20,64,38,79
0,6,16,35,50
1,20,67,28,77
2,12,44,26,55
0,3,14,30,48
0,2,19,34,48
1,14,56,26,61
0,2,12,40,58
1,18,48,28,62
2,15,45,30,56
0,2,14,32,46
0,4,15,44,57
1,24,56,34,63
1,16,58,30,72
1,21,59,30,71
1,18,56,29,63
2,12,42,30,57
1,23,69,26,77
2,13,56,29,66
0,2,15,34,52
2,10,37,24,55
0,2,15,31,46
1,19,61,28,74
0,3,13,35,50
1,18,63,29,73
2,15,47,31,67
2,13,41,30,56
2,13,43,29,64
1,22,58,30,65
0,3,14,35,51
2,14,47,29,61
1,19,53,27,64
0,2,16,34,48
1,20,50,25,57
2,13,40,23,55
0,2,17,34,54
1,24,51,28,58
0,2,15,37,53
694 changes: 694 additions & 0 deletions [2]Perceptron/Perceptron.ipynb

Large diffs are not rendered by default.

Binary file added [2]Perceptron/SimplePerceptron.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 [2]Perceptron/perceptron1.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 [2]Perceptron/perceptron2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
392 changes: 392 additions & 0 deletions [3]GradientDescent/.ipynb_checkpoints/GradientDescent-checkpoint.ipynb

Large diffs are not rendered by default.

392 changes: 392 additions & 0 deletions [3]GradientDescent/GradientDescent.ipynb

Large diffs are not rendered by default.

Binary file added [3]GradientDescent/alg.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 [3]GradientDescent/derivative.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 [3]GradientDescent/differentiation.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 [3]GradientDescent/score.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 [3]GradientDescent/softmax.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 [3]GradientDescent/softmax2.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 [3]GradientDescent/softmax3.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 [3]GradientDescent/vanilla.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 [3]GradientDescent/wiki.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 [3]GradientDescent/wiki2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e1fa68b

Please sign in to comment.