{ "info": { "author": "Mason Gallo", "author_email": "masongallo@gatech.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Topic :: Scientific/Engineering", "Topic :: Software Development" ], "description": "sk-modelcurves\n==============\n\nA Python wrapper built for software engineers and researchers to facilitate\neasy creation of learning and validation curve plots from scikit-learn. \n\nThe module is meant to complement your workflow in scikit-learn and ease the\nprocess of evaluating your models. \n\nThe module includes many quality of life features that should save you precious\ntime whenever you want to plot a learning curve to check for bias/variance or \nplot a validation curve to see the effect of tuning a hyperparameter.\n\n\nBackground\n==========\n\nFor those not familiar with learning curves, check out Andrew Ng's excellent \ndiscussion of their use at http://cs229.stanford.edu/materials/ML-advice.pdf\n\nOver the process of writing many research papers and building many models, I\nfound myself using boilerplate code that I would copy paste for almost every\nproject whenever I wanted to plot a learning curve or validation curve to\nevaluate models.\n\nHopefully, this module will save you a few minutes each time you need to plot\na learning or validation curve so you can focus on other things.\n\n\nInstall\n=======\n\nPython's pip is the recommended method of installation. From the terminal::\n\n $ pip install sk_modelcurves\n\n\n\nExample Usage\n=============\n\nGenerate a learning curve using accuracy as a metric and 5-fold cross validation.\n\nAssumes a sklearn estimator called knn, training data matrix called X and\ntraining labels called y::\n\n $ from sk_modelcurves.learning_curve import draw_learning_curve\n $ draw_learning_curve(knn, X, y, scoring='accuracy', cv=5)\n $ plt.show()\n\nGenerate multiple learning curves for several estimators using F1 score as a \nmetric, 5-fold cross validation, and names for each of the estimators.\n\nAssumes 3 sklearn estimators called knn2, knn20, knn40, training data matrix\ncalled X and training labels called y::\n\n $ from sk_modelcurves.learning_curve import draw_learning_curve\n $ draw_learning_curve([knn2, knn20, knn40], X, y, scoring='f1', cv=5,\n estimator_titles=['2 Neighbors', '20 Neighbors', '40 Neighbors'])\n $ plt.show()\n\nMany other options are available. Check out the source code docstrings or the\nupcoming documentation.\n\n\nImportant Links\n===============\n\n- Official source code repo: https://github.com/MasonGallo/sk-modelcurve\n- HTML documentation: coming soon!\n- Issue tracker: https://github.com/MasonGallo/sk-modelcurve/issues\n\n\nDependencies\n============\n\nsk-modelcurves is tested to work for Python 2.6 and Python 2.7. Python 3.3+ has\nnot been tested and is assumed to not work until tested.\n\nThe required dependencies include scikit-learn (of course!), numpy >= 1.6.1,\nand matplotlib >= 1.1.1.\n\nTo run tests, you will need nose >= 1.1.2.\n\n\nContributing\n============\n\nAnyone is welcome!\n\nIf you find a bug or would like to discuss a potential feature, please file an\nissue first.\n\n\nTesting\n=======\n\nAfter installation, you can launch the test suite from outside the source \ndirectory (you will need to have the ``nose`` package installed)::\n\n $ nosetests -v sk_modelcurves\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/masongallo/sk-modelcurve", "keywords": "sk_modelcurves learning curves validation curves", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sk_modelcurves", "package_url": "https://pypi.org/project/sk_modelcurves/", "platform": "", "project_url": "https://pypi.org/project/sk_modelcurves/", "project_urls": { "Homepage": "http://github.com/masongallo/sk-modelcurve" }, "release_url": "https://pypi.org/project/sk_modelcurves/0.4/", "requires_dist": null, "requires_python": "", "summary": "A wrapper for easy plots of learning and validation curves", "version": "0.4" }, "last_serial": 2515153, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "64495ffeb4995ba23ce997921f0c7f9d", "sha256": "8cd53ebccd1fcc605e55e7a68eafc5c918a1de2ceb71ead489a5aab8dd42581d" }, "downloads": -1, "filename": "sk_modelcurves-0.1.tar.gz", "has_sig": false, "md5_digest": "64495ffeb4995ba23ce997921f0c7f9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3809, "upload_time": "2016-02-02T20:59:05", "url": "https://files.pythonhosted.org/packages/12/b5/a67d005018e598eafb5ec6ae07d10f8ddb23f3ad7de5103c5a2e945ad3a0/sk_modelcurves-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "a255e4d1e45132b1e6efc77a7d711fdf", "sha256": "4db2d18fd273af06930798b61bd5388a728fbc3835d2a39d87f50cd832e5cebe" }, "downloads": -1, "filename": "sk_modelcurves-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "a255e4d1e45132b1e6efc77a7d711fdf", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7732, "upload_time": "2016-02-09T20:48:29", "url": "https://files.pythonhosted.org/packages/6d/71/6d46f74e68bc7726b63d3b200064a23ee51864d5994919b6de25375f1c1b/sk_modelcurves-0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cc141d160e05d9a5bb2122bc929a6e07", "sha256": "879237e2edcc2ba172ab8e3383bc4ae3ac6e034042dce9d7669cc80091de175d" }, "downloads": -1, "filename": "sk_modelcurves-0.2.tar.gz", "has_sig": false, "md5_digest": "cc141d160e05d9a5bb2122bc929a6e07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5436, "upload_time": "2016-02-09T20:47:57", "url": "https://files.pythonhosted.org/packages/b1/8d/47bb3cd97e2a64461ff474e4cdf29eb8ff58e441a6e8980b8f08f3605d9c/sk_modelcurves-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "7f93033e552305866cce479cc5bdd16b", "sha256": "9acb90e19f25937cff985078ce0c53dc8ee4844f86851ae68dfdf51f23774cf0" }, "downloads": -1, "filename": "sk_modelcurves-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "7f93033e552305866cce479cc5bdd16b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7998, "upload_time": "2016-12-12T21:32:39", "url": "https://files.pythonhosted.org/packages/69/4f/855fb41a3b535e6ce137830ac4e08a42ff488d1c353537fa404348a21bc7/sk_modelcurves-0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "257cc65250354bffe87357ba2398a3ec", "sha256": "6c557b8c315da93234b845e887171ea340b808f06ea4b2746f22f4dfa68c9275" }, "downloads": -1, "filename": "sk_modelcurves-0.3.tar.gz", "has_sig": false, "md5_digest": "257cc65250354bffe87357ba2398a3ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5697, "upload_time": "2016-12-12T21:32:41", "url": "https://files.pythonhosted.org/packages/c0/f1/dae0e6e5231e1a8794c5521f86b40d0b819113943eaf3ae362312da536f3/sk_modelcurves-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "23a4c5a6e8daf91b3d24e80675b7e574", "sha256": "72826de4b6b9ef969cc5040f4e54270dc9b5db43ddb14ee628b2dcc087d66c23" }, "downloads": -1, "filename": "sk_modelcurves-0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "23a4c5a6e8daf91b3d24e80675b7e574", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7948, "upload_time": "2016-12-12T21:48:25", "url": "https://files.pythonhosted.org/packages/5e/93/2853444dcc4cb7bb52c08c45ff743e3dab8ae9b5f01d02bcf65b8c9d552e/sk_modelcurves-0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c9788efa2168e75c1162e7ddeb825fc8", "sha256": "13d1bb6322e6b626fd22ca1ec96701ee786ae9bdcd0bd4b2a426fc57bad4ab1e" }, "downloads": -1, "filename": "sk_modelcurves-0.4.tar.gz", "has_sig": false, "md5_digest": "c9788efa2168e75c1162e7ddeb825fc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5630, "upload_time": "2016-12-12T21:48:28", "url": "https://files.pythonhosted.org/packages/b7/bc/9b1b2ce082ee62263f057599bba6a368b1c2379040c3bf7cf4cc1934a043/sk_modelcurves-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "23a4c5a6e8daf91b3d24e80675b7e574", "sha256": "72826de4b6b9ef969cc5040f4e54270dc9b5db43ddb14ee628b2dcc087d66c23" }, "downloads": -1, "filename": "sk_modelcurves-0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "23a4c5a6e8daf91b3d24e80675b7e574", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7948, "upload_time": "2016-12-12T21:48:25", "url": "https://files.pythonhosted.org/packages/5e/93/2853444dcc4cb7bb52c08c45ff743e3dab8ae9b5f01d02bcf65b8c9d552e/sk_modelcurves-0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c9788efa2168e75c1162e7ddeb825fc8", "sha256": "13d1bb6322e6b626fd22ca1ec96701ee786ae9bdcd0bd4b2a426fc57bad4ab1e" }, "downloads": -1, "filename": "sk_modelcurves-0.4.tar.gz", "has_sig": false, "md5_digest": "c9788efa2168e75c1162e7ddeb825fc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5630, "upload_time": "2016-12-12T21:48:28", "url": "https://files.pythonhosted.org/packages/b7/bc/9b1b2ce082ee62263f057599bba6a368b1c2379040c3bf7cf4cc1934a043/sk_modelcurves-0.4.tar.gz" } ] }