From 3c27bee91ac1a329a53cce9a33f92992fb1ef849 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Lachance Date: Sat, 30 May 2020 12:14:56 -0400 Subject: [PATCH 1/2] Step3 fixes --- docs/BOFdat_step3.ipynb | 248 ++++++++-------------------------------- 1 file changed, 50 insertions(+), 198 deletions(-) diff --git a/docs/BOFdat_step3.ipynb b/docs/BOFdat_step3.ipynb index f03715a..4a6355a 100644 --- a/docs/BOFdat_step3.ipynb +++ b/docs/BOFdat_step3.ipynb @@ -12,9 +12,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": true - }, + "metadata": {}, "outputs": [], "source": [ "from BOFdat import step3\n", @@ -89,9 +87,7 @@ { "cell_type": "code", "execution_count": 2, - "metadata": { - "collapsed": true - }, + "metadata": {}, "outputs": [], "source": [ "#Inputs to generate the initial population\n", @@ -298,13 +294,7 @@ "(, True)\n", "(, True)\n", "(, True)\n", - "(, True)\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "(, True)\n", "(, True)\n", "(, False)\n", "(, True)\n", @@ -476,13 +466,7 @@ "(, True)\n", "(, True)\n", "(, False)\n", - "(, True)\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "(, True)\n", "(, False)\n", "(, False)\n", "(, False)\n", @@ -654,13 +638,7 @@ "(, False)\n", "(, False)\n", "(, True)\n", - "(, False)\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "(, False)\n", "(, True)\n", "(, True)\n", "(, True)\n", @@ -831,13 +809,7 @@ "(, False)\n", "(, False)\n", "(, False)\n", - "(, False)\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "(, False)\n", "(, False)\n", "(, False)\n", "(, True)\n", @@ -1010,13 +982,7 @@ "(, True)\n", "(, True)\n", "(, True)\n", - "(, True)\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "(, True)\n", "(, True)\n", "(, False)\n", "(, False)\n", @@ -1187,13 +1153,7 @@ "(, False)\n", "(, False)\n", "(, False)\n", - "(, False)\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "(, False)\n", "(, False)\n", "(, True)\n", "(, True)\n", @@ -1364,13 +1324,7 @@ "(, True)\n", "(, True)\n", "(, True)\n", - "(, True)\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "(, True)\n", "(, False)\n", "(, True)\n", "(, True)\n", @@ -1542,13 +1496,7 @@ "(, True)\n", "(, True)\n", "(, False)\n", - "(, False)\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "(, False)\n", "(, True)\n", "(, True)\n", "(, True)\n", @@ -1718,13 +1666,7 @@ "(, False)\n", "(, False)\n", "(, True)\n", - "(, False)\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "(, False)\n", "(, False)\n", "(, False)\n", "(, False)\n", @@ -1895,13 +1837,7 @@ "(, True)\n", "(, True)\n", "(, False)\n", - "(, False)\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "(, False)\n", "(, False)\n", "(, False)\n", "(, False)\n", @@ -2076,13 +2012,6 @@ "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", - "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", @@ -2138,13 +2067,8 @@ "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", - "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ + "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", + "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/classification.py:516 \u001b[1;31mRuntimeWarning\u001b[0m: invalid value encountered in double_scalars\n", @@ -2260,13 +2184,7 @@ "\n", "\n", "\n", - "\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "\n", "\n", "\n", "\n", @@ -2385,13 +2303,7 @@ "\n", "\n", "\n", - "\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "\n", "\n", "\n", "\n", @@ -2856,13 +2768,7 @@ "\n", "[186 rows x 117 columns]\n", "Im in loop 1 and I have 0 valid individuals\n", - "4\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "4\n", "\n", "\n", "\n", @@ -2979,13 +2885,7 @@ "\n", "\n", "\n", - "\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "\n", "\n", "\n", "\n", @@ -3102,13 +3002,7 @@ "\n", "\n", "\n", - "\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "\n", "\n", "\n", "\n", @@ -3538,13 +3432,7 @@ "\n", "[186 rows x 115 columns]\n", "Im in loop 1 and I have 0 valid individuals\n", - "4\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "4\n", "\n", "\n", "\n", @@ -3661,13 +3549,7 @@ "\n", "\n", "\n", - "\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "\n", "\n", "\n", "\n", @@ -3784,13 +3666,7 @@ "\n", "\n", "\n", - "\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "\n", "\n", "\n", "\n", @@ -4220,13 +4096,7 @@ "\n", "[186 rows x 116 columns]\n", "Im in loop 1 and I have 0 valid individuals\n", - "4\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "4\n", "\n", "\n", "\n", @@ -4343,13 +4213,7 @@ "\n", "\n", "\n", - "\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "\n", "\n", "\n", "\n", @@ -4466,13 +4330,7 @@ "\n", "\n", "\n", - "\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "\n", "\n", "\n", "\n", @@ -4902,13 +4760,7 @@ "\n", "[186 rows x 119 columns]\n", "Im in loop 1 and I have 0 valid individuals\n", - "4\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "4\n", "\n", "\n", "\n", @@ -5025,13 +4877,7 @@ "\n", "\n", "\n", - "\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "\n", "\n", "\n", "\n", @@ -5148,13 +4994,7 @@ "\n", "\n", "\n", - "\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "\n", "\n", "\n", "\n", @@ -5609,7 +5449,10 @@ "cell_type": "code", "execution_count": 3, "metadata": { - "collapsed": true + "collapsed": true, + "jupyter": { + "outputs_hidden": true + } }, "outputs": [], "source": [ @@ -5824,7 +5667,10 @@ "cell_type": "code", "execution_count": 2, "metadata": { - "collapsed": true + "collapsed": true, + "jupyter": { + "outputs_hidden": true + } }, "outputs": [], "source": [ @@ -5980,7 +5826,10 @@ "cell_type": "code", "execution_count": 5, "metadata": { - "collapsed": true + "collapsed": true, + "jupyter": { + "outputs_hidden": true + } }, "outputs": [], "source": [ @@ -6041,7 +5890,10 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "collapsed": true, + "jupyter": { + "outputs_hidden": true + } }, "outputs": [], "source": [] @@ -6049,23 +5901,23 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.7.0" } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 } From f7d3268b8b9f50ddc0a147432e7111e370afb799 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Lachance Date: Sat, 30 May 2020 12:45:01 -0400 Subject: [PATCH 2/2] Removed multiprocessing from dependencies --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 06d9730..f842d15 100644 --- a/setup.py +++ b/setup.py @@ -14,4 +14,4 @@ install_requires=['cobra>=0.11.0','numpy>=1.13', 'BioPython','seaborn', 'scikit-learn>=0.18','scipy', - 'deap','pebble','multiprocessing','matplotlib']) + 'deap','pebble','matplotlib'])