{"id":13418343,"url":"https://github.com/rasbt/mlxtend","last_synced_at":"2025-05-13T15:06:55.319Z","repository":{"id":19683589,"uuid":"22937749","full_name":"rasbt/mlxtend","owner":"rasbt","description":"A library of extension and helper modules for Python's data analysis and machine learning libraries.","archived":false,"fork":false,"pushed_at":"2025-01-26T16:02:11.000Z","size":98531,"stargazers_count":4996,"open_issues_count":151,"forks_count":878,"subscribers_count":116,"default_branch":"master","last_synced_at":"2025-05-05T22:42:46.104Z","etag":null,"topics":["association-rules","data-mining","data-science","machine-learning","python","supervised-learning","unsupervised-learning"],"latest_commit_sha":null,"homepage":"https://rasbt.github.io/mlxtend/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rasbt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-BSD3.txt","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-08-14T01:56:16.000Z","updated_at":"2025-05-04T20:12:24.000Z","dependencies_parsed_at":"2023-09-22T02:57:05.896Z","dependency_job_id":"a1a72741-08b6-473e-9b9f-56c9719649a6","html_url":"https://github.com/rasbt/mlxtend","commit_stats":{"total_commits":1346,"total_committers":111,"mean_commits":"12.126126126126126","dds":0.4413075780089153,"last_synced_commit":"11a295e350c9bd57172228ad61bd5bc35d86691a"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasbt%2Fmlxtend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasbt%2Fmlxtend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasbt%2Fmlxtend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasbt%2Fmlxtend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rasbt","download_url":"https://codeload.github.com/rasbt/mlxtend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253969226,"owners_count":21992262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["association-rules","data-mining","data-science","machine-learning","python","supervised-learning","unsupervised-learning"],"created_at":"2024-07-30T22:01:01.217Z","updated_at":"2025-05-13T15:06:55.301Z","avatar_url":"https://github.com/rasbt.png","language":"Python","readme":"[![DOI](https://joss.theoj.org/papers/10.21105/joss.00638/status.svg)](https://doi.org/10.21105/joss.00638)\n[![PyPI version](https://badge.fury.io/py/mlxtend.svg)](https://badge.fury.io/py/mlxtend)\n[![Anaconda-Server Badge](https://anaconda.org/conda-forge/mlxtend/badges/version.svg)](https://anaconda.org/conda-forge/mlxtend)\n[![Build status](https://ci.appveyor.com/api/projects/status/7vx20e0h5dxcyla2/branch/master?svg=true)](https://ci.appveyor.com/project/rasbt/mlxtend/branch/master)\n[![codecov](https://codecov.io/gh/rasbt/mlxtend/branch/master/graph/badge.svg)](https://codecov.io/gh/rasbt/mlxtend)\n![Python 3](https://img.shields.io/badge/python-3-blue.svg)\n![License](https://img.shields.io/badge/license-BSD-blue.svg)\n[![Discuss](https://img.shields.io/badge/discuss-github-blue.svg)](https://github.com/rasbt/mlxtend/discussions)\n\n\u003cimg src=\"./docs/sources/img/logo.png\" alt=\"mlxtend logo\" width=\"300px\"\u003e\n\n**Mlxtend (machine learning extensions) is a Python library of useful tools for the day-to-day data science tasks.**\n\n\u003cbr\u003e\n\nSebastian Raschka 2014-2024\n\n\u003cbr\u003e\n\n## Links\n\n- **Documentation:** [https://rasbt.github.io/mlxtend](https://rasbt.github.io/mlxtend)\n- PyPI: [https://pypi.python.org/pypi/mlxtend](https://pypi.python.org/pypi/mlxtend)\n- Changelog: [https://rasbt.github.io/mlxtend/CHANGELOG](https://rasbt.github.io/mlxtend/CHANGELOG)\n- Contributing: [https://rasbt.github.io/mlxtend/CONTRIBUTING](https://rasbt.github.io/mlxtend/CONTRIBUTING)\n- Questions? Check out the [GitHub Discussions board](https://github.com/rasbt/mlxtend/discussions)\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Installing mlxtend\n\n#### PyPI\n\nTo install mlxtend, just execute  \n\n```bash\npip install mlxtend  \n```\n\nAlternatively, you could download the package manually from the Python Package Index [https://pypi.python.org/pypi/mlxtend](https://pypi.python.org/pypi/mlxtend), unzip it, navigate into the package, and use the command:\n\n```bash\npython setup.py install\n```\n\n#### Conda\nIf you use conda, to install mlxtend just execute\n\n```bash\nconda install -c conda-forge mlxtend \n```\n\n#### Dev Version\n\nThe mlxtend version on PyPI may always be one step behind; you can install the latest development version from the GitHub repository by executing\n\n```bash\npip install git+git://github.com/rasbt/mlxtend.git#egg=mlxtend\n```\n\nOr, you can fork the GitHub repository from https://github.com/rasbt/mlxtend and install mlxtend from your local drive via\n\n```bash\npython setup.py install\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Examples\n\n```python\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport matplotlib.gridspec as gridspec\nimport itertools\nfrom sklearn.linear_model import LogisticRegression\nfrom sklearn.svm import SVC\nfrom sklearn.ensemble import RandomForestClassifier\nfrom mlxtend.classifier import EnsembleVoteClassifier\nfrom mlxtend.data import iris_data\nfrom mlxtend.plotting import plot_decision_regions\n\n# Initializing Classifiers\nclf1 = LogisticRegression(random_state=0)\nclf2 = RandomForestClassifier(random_state=0)\nclf3 = SVC(random_state=0, probability=True)\neclf = EnsembleVoteClassifier(clfs=[clf1, clf2, clf3], weights=[2, 1, 1], voting='soft')\n\n# Loading some example data\nX, y = iris_data()\nX = X[:,[0, 2]]\n\n# Plotting Decision Regions\ngs = gridspec.GridSpec(2, 2)\nfig = plt.figure(figsize=(10, 8))\n\nfor clf, lab, grd in zip([clf1, clf2, clf3, eclf],\n                         ['Logistic Regression', 'Random Forest', 'RBF kernel SVM', 'Ensemble'],\n                         itertools.product([0, 1], repeat=2)):\n    clf.fit(X, y)\n    ax = plt.subplot(gs[grd[0], grd[1]])\n    fig = plot_decision_regions(X=X, y=y, clf=clf, legend=2)\n    plt.title(lab)\nplt.show()\n```\n\n![](./docs/sources/img/ensemble_decision_regions_2d.png)\n\n---\n\nIf you use mlxtend as part of your workflow in a scientific publication, please consider citing the mlxtend repository with the following DOI:\n\n\n```\n@article{raschkas_2018_mlxtend,\n  author       = {Sebastian Raschka},\n  title        = {MLxtend: Providing machine learning and data science \n                  utilities and extensions to Python’s  \n                  scientific computing stack},\n  journal      = {The Journal of Open Source Software},\n  volume       = {3},\n  number       = {24},\n  month        = apr,\n  year         = 2018,\n  publisher    = {The Open Journal},\n  doi          = {10.21105/joss.00638},\n  url          = {https://joss.theoj.org/papers/10.21105/joss.00638}\n}\n```\n\n- Raschka, Sebastian (2018) MLxtend: Providing machine learning and data science utilities and extensions to Python's scientific computing stack.\nJ Open Source Softw 3(24).\n\n---\n\n## License\n\n- This project is released under a permissive new BSD open source license ([LICENSE-BSD3.txt](https://github.com/rasbt/mlxtend/blob/master/LICENSE-BSD3.txt)) and commercially usable. There is no warranty; not even for merchantability or fitness for a particular purpose.\n- In addition, you may use, copy, modify and redistribute all artistic creative works (figures and images) included in this distribution under the directory\naccording to the terms and conditions of the Creative Commons Attribution 4.0 International License.  See the file [LICENSE-CC-BY.txt](https://github.com/rasbt/mlxtend/blob/master/LICENSE-CC-BY.txt) for details. (Computer-generated graphics such as the plots produced by matplotlib fall under the BSD license mentioned above).\n\n## Contact\n\nThe best way to ask questions is via the [GitHub Discussions channel](https://github.com/rasbt/mlxtend/discussions). In case you encounter usage bugs, please don't hesitate to use the [GitHub's issue tracker](https://github.com/rasbt/mlxtend/issues) directly. \n","funding_links":[],"categories":["Multipurpose","Python","The Data Science Toolbox","Machine Learning","Machine Learning Framework","Sklearn实用程序","其他_机器学习与深度学习","Uncategorized","Exploration"],"sub_categories":["General Machine Learning Packages","General Purpose Machine Learning","General Purpose Framework","General-Purpose Machine Learning","Automatic Plotting","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasbt%2Fmlxtend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frasbt%2Fmlxtend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasbt%2Fmlxtend/lists"}