mirror of
				https://github.com/gsi-upm/sitc
				synced 2025-10-31 07:28:17 +00:00 
			
		
		
		
	Updated reference to module six modified in scikit-learn 0.23
This commit is contained in:
		| @@ -130,12 +130,7 @@ | |||||||
|     { |     { | ||||||
|      "data": { |      "data": { | ||||||
|       "text/plain": [ |       "text/plain": [ | ||||||
|        "DecisionTreeClassifier(class_weight=None, criterion='gini', max_depth=3,\n", |        "DecisionTreeClassifier(max_depth=3, random_state=1)" | ||||||
|        "            max_features=None, max_leaf_nodes=None,\n", |  | ||||||
|        "            min_impurity_decrease=0.0, min_impurity_split=None,\n", |  | ||||||
|        "            min_samples_leaf=1, min_samples_split=2,\n", |  | ||||||
|        "            min_weight_fraction_leaf=0.0, presort=False, random_state=1,\n", |  | ||||||
|        "            splitter='best')" |  | ||||||
|       ] |       ] | ||||||
|      }, |      }, | ||||||
|      "execution_count": 2, |      "execution_count": 2, | ||||||
| @@ -273,7 +268,7 @@ | |||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|    "cell_type": "code", |    "cell_type": "code", | ||||||
|    "execution_count": 7, |    "execution_count": 10, | ||||||
|    "metadata": {}, |    "metadata": {}, | ||||||
|    "outputs": [ |    "outputs": [ | ||||||
|     { |     { | ||||||
| @@ -283,14 +278,14 @@ | |||||||
|      "traceback": [ |      "traceback": [ | ||||||
|       "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |       "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | ||||||
|       "\u001b[0;31mModuleNotFoundError\u001b[0m                       Traceback (most recent call last)", |       "\u001b[0;31mModuleNotFoundError\u001b[0m                       Traceback (most recent call last)", | ||||||
|       "\u001b[0;32m<ipython-input-7-1bf5ec7fb043>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m      1\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mIPython\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdisplay\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mImage\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m      2\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0msklearn\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mexternals\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msix\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mStringIO\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0mpydotplus\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mpydot\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m      4\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m      5\u001b[0m \u001b[0mdot_data\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mStringIO\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |       "\u001b[0;32m<ipython-input-10-7c2cf6067fce>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m      1\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mIPython\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdisplay\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mImage\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m      2\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0msix\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mStringIO\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0mpydotplus\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mpydot\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m      4\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m      5\u001b[0m \u001b[0mdot_data\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mStringIO\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | ||||||
|       "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'pydotplus'" |       "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'pydotplus'" | ||||||
|      ] |      ] | ||||||
|     } |     } | ||||||
|    ], |    ], | ||||||
|    "source": [ |    "source": [ | ||||||
|     "from IPython.display import Image \n", |     "from IPython.display import Image \n", | ||||||
|     "from sklearn.externals.six import StringIO\n", |     "from six import StringIO\n", | ||||||
|     "import pydotplus as pydot\n", |     "import pydotplus as pydot\n", | ||||||
|     "\n", |     "\n", | ||||||
|     "dot_data = StringIO()  \n", |     "dot_data = StringIO()  \n", | ||||||
| @@ -529,6 +524,15 @@ | |||||||
|   } |   } | ||||||
|  ], |  ], | ||||||
|  "metadata": { |  "metadata": { | ||||||
|  |   "datacleaner": { | ||||||
|  |    "position": { | ||||||
|  |     "top": "50px" | ||||||
|  |    }, | ||||||
|  |    "python": { | ||||||
|  |     "varRefreshCmd": "try:\n    print(_datacleaner.dataframe_metadata())\nexcept:\n    print([])" | ||||||
|  |    }, | ||||||
|  |    "window_display": false | ||||||
|  |   }, | ||||||
|   "kernelspec": { |   "kernelspec": { | ||||||
|    "display_name": "Python 3", |    "display_name": "Python 3", | ||||||
|    "language": "python", |    "language": "python", | ||||||
| @@ -544,7 +548,7 @@ | |||||||
|    "name": "python", |    "name": "python", | ||||||
|    "nbconvert_exporter": "python", |    "nbconvert_exporter": "python", | ||||||
|    "pygments_lexer": "ipython3", |    "pygments_lexer": "ipython3", | ||||||
|    "version": "3.7.1" |    "version": "3.7.9" | ||||||
|   }, |   }, | ||||||
|   "latex_envs": { |   "latex_envs": { | ||||||
|    "LaTeX_envs_menu_present": true, |    "LaTeX_envs_menu_present": true, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user