From 07e627327904b2e923e155d1ca08f5372c704150 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Sun, 31 Jul 2016 08:20:51 -0400 Subject: [PATCH 1/5] Reorder sections in README --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index dadb05f..a2c1285 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ ## Index -* [scikit-learn](#scikit-learn) * [kaggle-and-business-analyses](#kaggle-and-business-analyses) +* [scikit-learn](#scikit-learn) * [deep-learning](#deep-learning) * [statistical-inference-scipy](#statistical-inference-scipy) * [pandas](#pandas) @@ -31,6 +31,20 @@ * [contact-info](#contact-info) * [license](#license) +
+

+ +

+ +## kaggle-and-business-analyses + +IPython Notebook(s) used in [kaggle](https://www.kaggle.com/) competitions and business analyses. + +| Notebook | Description | +|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| +| [titanic](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/kaggle/titanic.ipynb) | Predict survival on the Titanic. Learn data cleaning, exploratory data analysis, and machine learning. | +| [churn-analysis](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/analyses/churn.ipynb) | Predict customer churn. Exercise logistic regression, gradient boosting classifers, support vector machines, random forests, and k-nearest-neighbors. Includes discussions of confusion matrices, ROC plots, feature importances, prediction probabilities, and calibration/descrimination.| +

@@ -52,20 +66,6 @@ IPython Notebook(s) demonstrating scikit-learn functionality. | [gmm](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/scikit-learn/scikit-learn-gmm.ipynb) | Implement Gaussian mixture models in scikit-learn. | | [validation](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/scikit-learn/scikit-learn-validation.ipynb) | Implement validation and model selection in scikit-learn. | -
-

- -

- -## kaggle-and-business-analyses - -IPython Notebook(s) used in [kaggle](https://www.kaggle.com/) competitions and business analyses. - -| Notebook | Description | -|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| -| [titanic](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/kaggle/titanic.ipynb) | Predict survival on the Titanic. Learn data cleaning, exploratory data analysis, and machine learning. | -| [churn-analysis](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/analyses/churn.ipynb) | Predict customer churn. Exercise logistic regression, gradient boosting classifers, support vector machines, random forests, and k-nearest-neighbors. Includes discussions of confusion matrices, ROC plots, feature importances, prediction probabilities, and calibration/descrimination.| -

From 79c035c4c17369d4ae90548c48445e53857696f4 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Thu, 8 Sep 2016 06:28:46 -0400 Subject: [PATCH 2/5] Update run instructions for Jupyter Notebook 4+ (#37) --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a2c1285..400638d 100644 --- a/README.md +++ b/README.md @@ -313,11 +313,13 @@ For detailed instructions, scripts, and tools to set up your development environ To view interactive content or to modify elements within the IPython notebooks, you must first clone or download the repository then run the ipython notebook. More information on IPython Notebooks can be found [here.](http://ipython.org/notebook.html) -``` -$ git clone https://github.com/donnemartin/data-science-ipython-notebooks.git -$ cd data-science-ipython-notebooks -$ ipython notebook -``` + $ git clone https://github.com/donnemartin/data-science-ipython-notebooks.git + $ cd data-science-ipython-notebooks + $ ipython notebook + +If you have Jupyter Notebook 4+, run the following instead of `ipython notebook`: + + $ jupyter notebook Notebooks tested with Python 2.7.x. From f7eaf02d14b1440d67c7d76094f22c86c93e8178 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Fri, 30 Sep 2016 05:52:49 -0400 Subject: [PATCH 3/5] Add link to alrojo/tensorflow-tutorial (#38) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 400638d..8292ae1 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ Additional TensorFlow tutorials: * [pkmital/tensorflow_tutorials](https://github.com/pkmital/tensorflow_tutorials) * [nlintz/TensorFlow-Tutorials](https://github.com/nlintz/TensorFlow-Tutorials) +* [alrojo/tensorflow-tutorial](https://github.com/alrojo/tensorflow-tutorial) | Notebook | Description | |--------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------| @@ -332,6 +333,7 @@ Notebooks tested with Python 2.7.x. * [TensorFlow Examples](https://github.com/aymericdamien/TensorFlow-Examples) by Aymeric Damien * [TensorFlow Tutorials](https://github.com/pkmital/tensorflow_tutorials) by Parag K Mital * [TensorFlow Tutorials](https://github.com/nlintz/TensorFlow-Tutorials) by Nathan Lintz +* [TensorFlow Tutorials](https://github.com/alrojo/tensorflow-tutorial) by Alexander R Johansen * [Summer School 2015](https://github.com/mila-udem/summerschool2015) by mila-udem * [Kaggle](https://www.kaggle.com/) * [Yhat Blog](http://blog.yhat.com/) From 62f06d25d7f6db0f17623a55c49aad956d55f181 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Sun, 18 Dec 2016 07:18:14 -0500 Subject: [PATCH 4/5] Add link to BinRoot/TensorFlow-Book (#40) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8292ae1..d9986bc 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,7 @@ Additional TensorFlow tutorials: * [pkmital/tensorflow_tutorials](https://github.com/pkmital/tensorflow_tutorials) * [nlintz/TensorFlow-Tutorials](https://github.com/nlintz/TensorFlow-Tutorials) * [alrojo/tensorflow-tutorial](https://github.com/alrojo/tensorflow-tutorial) +* [BinRoot/TensorFlow-Book](https://github.com/BinRoot/TensorFlow-Book) | Notebook | Description | |--------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------| @@ -334,6 +335,7 @@ Notebooks tested with Python 2.7.x. * [TensorFlow Tutorials](https://github.com/pkmital/tensorflow_tutorials) by Parag K Mital * [TensorFlow Tutorials](https://github.com/nlintz/TensorFlow-Tutorials) by Nathan Lintz * [TensorFlow Tutorials](https://github.com/alrojo/tensorflow-tutorial) by Alexander R Johansen +* [TensorFlow Book](https://github.com/BinRoot/TensorFlow-Book) by Nishant Shukla * [Summer School 2015](https://github.com/mila-udem/summerschool2015) by mila-udem * [Kaggle](https://www.kaggle.com/) * [Yhat Blog](http://blog.yhat.com/) From a238b141f30e60b573669c74c19d817159f623ed Mon Sep 17 00:00:00 2001 From: Shadab Shaikh Date: Sun, 5 Feb 2017 22:43:24 +0530 Subject: [PATCH 5/5] Replacing deprecated initialiser function with the new one (#41) --- .../notebooks/3_neural_networks/alexnet.ipynb | 4 ++-- .../3_neural_networks/convolutional_network.ipynb | 4 ++-- .../3_neural_networks/multilayer_perceptron.ipynb | 12 ++++++------ .../3_neural_networks/recurrent_network.ipynb | 4 ++-- .../tensor-flow-exercises/2_fullyconnected.ipynb | 14 +++++++------- .../tensor-flow-exercises/4_convolutions.ipynb | 12 ++++++------ .../tensor-flow-exercises/5_word2vec.ipynb | 12 ++++++------ deep-learning/tensor-flow-exercises/6_lstm.ipynb | 12 ++++++------ 8 files changed, 37 insertions(+), 37 deletions(-) diff --git a/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/alexnet.ipynb b/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/alexnet.ipynb index 2e28a0c..8d70ee2 100644 --- a/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/alexnet.ipynb +++ b/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/alexnet.ipynb @@ -230,7 +230,7 @@ "outputs": [], "source": [ "# Initializing the variables\n", - "init = tf.initialize_all_variables()" + "init = tf.global_variables_initializer()" ] }, { @@ -337,7 +337,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", - "version": "2.7.5+" + "version": "2.7.12" } }, "nbformat": 4, diff --git a/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/convolutional_network.ipynb b/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/convolutional_network.ipynb index 967550a..38b4cda 100644 --- a/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/convolutional_network.ipynb +++ b/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/convolutional_network.ipynb @@ -213,7 +213,7 @@ "outputs": [], "source": [ "# Initializing the variables\n", - "init = tf.initialize_all_variables()" + "init = tf.global_variables_initializer()" ] }, { @@ -313,7 +313,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", - "version": "2.7.5+" + "version": "2.7.12" } }, "nbformat": 4, diff --git a/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/multilayer_perceptron.ipynb b/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/multilayer_perceptron.ipynb index f925827..692c694 100644 --- a/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/multilayer_perceptron.ipynb +++ b/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/multilayer_perceptron.ipynb @@ -165,7 +165,7 @@ "outputs": [], "source": [ "# Initializing the variables\n", - "init = tf.initialize_all_variables()" + "init = tf.global_variables_initializer()" ] }, { @@ -231,21 +231,21 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 2", "language": "python", - "name": "python3" + "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 3 + "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" + "pygments_lexer": "ipython2", + "version": "2.7.12" } }, "nbformat": 4, diff --git a/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/recurrent_network.ipynb b/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/recurrent_network.ipynb index 41e3e1f..dfe9e74 100644 --- a/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/recurrent_network.ipynb +++ b/deep-learning/tensor-flow-examples/notebooks/3_neural_networks/recurrent_network.ipynb @@ -236,7 +236,7 @@ ], "source": [ "# Initializing the variables\n", - "init = tf.initialize_all_variables()\n", + "init = tf.global_variables_initializer()\n", "\n", "# Launch the graph\n", "with tf.Session() as sess:\n", @@ -286,7 +286,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", - "version": "2.7.5+" + "version": "2.7.12" } }, "nbformat": 4, diff --git a/deep-learning/tensor-flow-exercises/2_fullyconnected.ipynb b/deep-learning/tensor-flow-exercises/2_fullyconnected.ipynb index df2e803..e3d7dc7 100644 --- a/deep-learning/tensor-flow-exercises/2_fullyconnected.ipynb +++ b/deep-learning/tensor-flow-exercises/2_fullyconnected.ipynb @@ -381,7 +381,7 @@ " # This is a one-time operation which ensures the parameters get initialized as\n", " # we described in the graph: random weights for the matrix, zeros for the\n", " # biases. \n", - " tf.initialize_all_variables().run()\n", + " tf.global_variables_initializer().run()\n", " print 'Initialized'\n", " for step in xrange(num_steps):\n", " # Run the computations. We tell .run() that we want to run the optimizer,\n", @@ -544,7 +544,7 @@ "num_steps = 3001\n", "\n", "with tf.Session(graph=graph) as session:\n", - " tf.initialize_all_variables().run()\n", + " tf.global_variables_initializer().run()\n", " print \"Initialized\"\n", " for step in xrange(num_steps):\n", " # Pick an offset within the training data, which has been randomized.\n", @@ -589,21 +589,21 @@ "colab_default_view": {}, "colab_views": {}, "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 2", "language": "python", - "name": "python3" + "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 3 + "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" + "pygments_lexer": "ipython2", + "version": "2.7.12" } }, "nbformat": 4, diff --git a/deep-learning/tensor-flow-exercises/4_convolutions.ipynb b/deep-learning/tensor-flow-exercises/4_convolutions.ipynb index 5062c0b..be60f3a 100644 --- a/deep-learning/tensor-flow-exercises/4_convolutions.ipynb +++ b/deep-learning/tensor-flow-exercises/4_convolutions.ipynb @@ -412,7 +412,7 @@ "num_steps = 1001\n", "\n", "with tf.Session(graph=graph) as session:\n", - " tf.initialize_all_variables().run()\n", + " tf.global_variables_initializer().run()\n", " print \"Initialized\"\n", " for step in xrange(num_steps):\n", " offset = (step * batch_size) % (train_labels.shape[0] - batch_size)\n", @@ -467,21 +467,21 @@ "colab_default_view": {}, "colab_views": {}, "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 2", "language": "python", - "name": "python3" + "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 3 + "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" + "pygments_lexer": "ipython2", + "version": "2.7.12" } }, "nbformat": 4, diff --git a/deep-learning/tensor-flow-exercises/5_word2vec.ipynb b/deep-learning/tensor-flow-exercises/5_word2vec.ipynb index 31257ac..5407fdf 100644 --- a/deep-learning/tensor-flow-exercises/5_word2vec.ipynb +++ b/deep-learning/tensor-flow-exercises/5_word2vec.ipynb @@ -744,7 +744,7 @@ "num_steps = 100001\n", "\n", "with tf.Session(graph=graph) as session:\n", - " tf.initialize_all_variables().run()\n", + " tf.global_variables_initializer().run()\n", " print \"Initialized\"\n", " average_loss = 0\n", " for step in xrange(num_steps):\n", @@ -867,21 +867,21 @@ "colab_default_view": {}, "colab_views": {}, "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 2", "language": "python", - "name": "python3" + "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 3 + "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" + "pygments_lexer": "ipython2", + "version": "2.7.12" } }, "nbformat": 4, diff --git a/deep-learning/tensor-flow-exercises/6_lstm.ipynb b/deep-learning/tensor-flow-exercises/6_lstm.ipynb index 4417bd2..565bee5 100644 --- a/deep-learning/tensor-flow-exercises/6_lstm.ipynb +++ b/deep-learning/tensor-flow-exercises/6_lstm.ipynb @@ -928,7 +928,7 @@ "summary_frequency = 100\n", "\n", "with tf.Session(graph=graph) as session:\n", - " tf.initialize_all_variables().run()\n", + " tf.global_variables_initializer().run()\n", " print 'Initialized'\n", " mean_loss = 0\n", " for step in xrange(num_steps):\n", @@ -1042,21 +1042,21 @@ "colab_default_view": {}, "colab_views": {}, "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 2", "language": "python", - "name": "python3" + "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 3 + "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" + "pygments_lexer": "ipython2", + "version": "2.7.12" } }, "nbformat": 4,