{ "info": { "author": "Valentin Rosca", "author_email": "rosca.valentin2012@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Decision Tree Constraints \n\nThis is a sample code of the `PruneToSizeK` method for sklearn [Decision Tree Classifier](https://scikit-learn.org/stable/modules/tree.html).\n\nUsage:\n```\nfrom sklearn.datasets import load_iris\nfrom sklearn import tree\nfrom DecisionTreeConstraints import SizeConstraintPruning\n\niris = load_iris()\nclf = tree.DecisionTreeClassifier()\nclf = clf.fit(iris.data, iris.target)\n\nMAX_SIZE=6\nSizeConstraintPruning(MAX_SIZE).pruneToSizeK(clf)\n\naccuracy = clf.score(iris.data, iris.target)\nprint('Training accuracy for max size %s: %.3f' % (MAX_SIZE, accuracy))\n```\n\nGarofalakis, M., Hyun, D., Rastogi, R. et al. Data Mining and Knowledge Discovery (2003) 7: 187. [doi:10.1023](https://doi.org/10.1023/A:1022445500761).\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/valiro21/DecisionTreeConstraints", "keywords": "decision trees classifier pruning constraints", "license": "", "maintainer": "", "maintainer_email": "", "name": "DecisionTreeConstraints", "package_url": "https://pypi.org/project/DecisionTreeConstraints/", "platform": "", "project_url": "https://pypi.org/project/DecisionTreeConstraints/", "project_urls": { "Homepage": "https://github.com/valiro21/DecisionTreeConstraints" }, "release_url": "https://pypi.org/project/DecisionTreeConstraints/0.1/", "requires_dist": null, "requires_python": "", "summary": "Building Decision Trees with Constraints", "version": "0.1" }, "last_serial": 4739954, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3a6489ebb25a516f38df225eaaed771b", "sha256": "b1bfc51dce9fbee47b7e9434253ae178a286f8e2d281779fbf23e76352a2a429" }, "downloads": -1, "filename": "DecisionTreeConstraints-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3a6489ebb25a516f38df225eaaed771b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4803, "upload_time": "2019-01-25T12:55:21", "url": "https://files.pythonhosted.org/packages/d0/54/d7715d79bb3777a06aaedb3c0c786932f8771ca735d23b0a209b05573dea/DecisionTreeConstraints-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "38d9b326757642caf21d8d2e91d57cbc", "sha256": "12311edf17a177b7017cf04768fc53f394f50daca5a247f360519fe00d772445" }, "downloads": -1, "filename": "DecisionTreeConstraints-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "38d9b326757642caf21d8d2e91d57cbc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4802, "upload_time": "2019-01-25T12:55:23", "url": "https://files.pythonhosted.org/packages/ec/e4/7ea7722f69509ba925f8430f1cf113dceaf2e2ae64ea17794616369a8a04/DecisionTreeConstraints-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "082d5dca834e4007b9d46c52f762603c", "sha256": "64edff1c62f6aef2cb860c2ccaea4127bd43ee5f1f091b437c589e6153d40ccf" }, "downloads": -1, "filename": "DecisionTreeConstraints-0.1.tar.gz", "has_sig": false, "md5_digest": "082d5dca834e4007b9d46c52f762603c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2605, "upload_time": "2019-01-25T12:55:25", "url": "https://files.pythonhosted.org/packages/fe/23/9804d5a629dfd84cb668d15db1b8ab2a42de39c9f2f8eef894c05cfd5328/DecisionTreeConstraints-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3a6489ebb25a516f38df225eaaed771b", "sha256": "b1bfc51dce9fbee47b7e9434253ae178a286f8e2d281779fbf23e76352a2a429" }, "downloads": -1, "filename": "DecisionTreeConstraints-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3a6489ebb25a516f38df225eaaed771b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4803, "upload_time": "2019-01-25T12:55:21", "url": "https://files.pythonhosted.org/packages/d0/54/d7715d79bb3777a06aaedb3c0c786932f8771ca735d23b0a209b05573dea/DecisionTreeConstraints-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "38d9b326757642caf21d8d2e91d57cbc", "sha256": "12311edf17a177b7017cf04768fc53f394f50daca5a247f360519fe00d772445" }, "downloads": -1, "filename": "DecisionTreeConstraints-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "38d9b326757642caf21d8d2e91d57cbc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4802, "upload_time": "2019-01-25T12:55:23", "url": "https://files.pythonhosted.org/packages/ec/e4/7ea7722f69509ba925f8430f1cf113dceaf2e2ae64ea17794616369a8a04/DecisionTreeConstraints-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "082d5dca834e4007b9d46c52f762603c", "sha256": "64edff1c62f6aef2cb860c2ccaea4127bd43ee5f1f091b437c589e6153d40ccf" }, "downloads": -1, "filename": "DecisionTreeConstraints-0.1.tar.gz", "has_sig": false, "md5_digest": "082d5dca834e4007b9d46c52f762603c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2605, "upload_time": "2019-01-25T12:55:25", "url": "https://files.pythonhosted.org/packages/fe/23/9804d5a629dfd84cb668d15db1b8ab2a42de39c9f2f8eef894c05cfd5328/DecisionTreeConstraints-0.1.tar.gz" } ] }