scikit-learn/scikit-learn

GitHub: scikit-learn/scikit-learn

scikit-learn 是一个基于 Python 的通用机器学习库,为分类、回归、聚类、降维等任务提供简洁一致的算法接口与工具集。

Stars: 66367 | Forks: 27076

.. -*- mode: rst -*- |GitHubActions| |Codecov| |CircleCI| |Nightly wheels| |Ruff| |PythonVersion| |PyPI| |DOI| |Benchmark| .. |GitHubActions| image:: https://github.com/scikit-learn/scikit-learn/actions/workflows/unit-tests.yml/badge.svg? :target: https://github.com/scikit-learn/scikit-learn/actions/workflows/unit-tests.yml?query=branch%3Amain .. |CircleCI| image:: https://circleci.com/gh/scikit-learn/scikit-learn/tree/main.svg?style=shield :target: https://circleci.com/gh/scikit-learn/scikit-learn .. |Codecov| image:: https://codecov.io/gh/scikit-learn/scikit-learn/branch/main/graph/badge.svg?token=Pk8G9gg3y9 :target: https://codecov.io/gh/scikit-learn/scikit-learn .. |Nightly wheels| image:: https://github.com/scikit-learn/scikit-learn/actions/workflows/wheels.yml/badge.svg?event=schedule :target: https://github.com/scikit-learn/scikit-learn/actions?query=workflow%3A%22Wheel+builder%22+event%3Aschedule .. |Ruff| image:: https://img.shields.io/badge/code%20style-ruff-000000.svg? :target: https://github.com/astral-sh/ruff .. |PythonVersion| image:: https://img.shields.io/pypi/pyversions/scikit-learn.svg? :target: https://pypi.org/project/scikit-learn/ .. |PyPI| image:: https://img.shields.io/pypi/v/scikit-learn :target: https://pypi.org/project/scikit-learn .. |DOI| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.17880109.svg? :target: https://zenodo.org/badge/latestdoi/21369/scikit-learn/scikit-learn .. |Benchmark| image:: https://img.shields.io/badge/Benchmarked%20by-asv-blue :target: https://scikit-learn.org/scikit-learn-benchmarks .. |PythonMinVersion| replace:: 3.11 .. |NumPyMinVersion| replace:: 1.24.1 .. |SciPyMinVersion| replace:: 1.10.0 .. |JoblibMinVersion| replace:: 1.4.0 .. |NarwhalsMinVersion| replace:: 2.0.1 .. |ThreadpoolctlMinVersion| replace:: 3.5.0 .. |MatplotlibMinVersion| replace:: 3.6.1 .. |Scikit-ImageMinVersion| replace:: 0.22.0 .. |PandasMinVersion| replace:: 1.5.0 .. |SeabornMinVersion| replace:: 0.13.0 .. |PytestMinVersion| replace:: 7.1.2 .. |PlotlyMinVersion| replace:: 5.22.0 .. image:: https://raw.githubusercontent.com/scikit-learn/scikit-learn/main/doc/logos/scikit-learn-logo.png :target: https://scikit-learn.org/ **scikit-learn** 是一个基于 SciPy 构建的机器学习 Python 模块, 并在 3-Clause BSD 许可证下分发。 该项目由 David Cournapeau 于 2007 年作为 Google Summer of Code 项目发起, 此后已有许多志愿者做出了贡献。请查看 `关于我们 `__ 页面 获取核心贡献者列表。 目前它由一个志愿者团队维护。 网站:https://scikit-learn.org ## 安装 ### 依赖项 scikit-learn 需要: - Python (>= |PythonMinVersion|) - NumPy (>= |NumPyMinVersion|) - SciPy (>= |SciPyMinVersion|) - Narwhals (>= |NarwhalsMinVersion|) - joblib (>= |JoblibMinVersion|) # - threadpoolctl (>= |ThreadpoolctlMinVersion|) scikit-learn 的绘图功能(即以 ``plot_`` 开头的函数和以 ``Display`` 结尾的类)需要 Matplotlib (>= |MatplotlibMinVersion|)。 要运行示例,需要 Matplotlib >= |MatplotlibMinVersion|。 一些示例需要 scikit-image >= |Scikit-ImageMinVersion|,一些示例需要 pandas >= |PandasMinVersion|,部分示例需要 seaborn >= |SeabornMinVersion| 以及 Plotly >= |PlotlyMinVersion|。 ### 用户安装 如果你已经安装了可正常使用的 NumPy 和 SciPy, 安装 scikit-learn 最简单的方法是使用 ``pip``:: ``` pip install -U scikit-learn ``` 或者 ``conda``:: ``` conda install -c conda-forge scikit-learn ``` 文档包含了更详细的 `安装说明 `_。 ## 更新日志 请查看 `更新日志 `__ 以了解 scikit-learn 的重大变更历史。 ## 开发 我们欢迎各种经验水平的新贡献者。scikit-learn 社区的目标是 乐于助人、热情欢迎和高效。`开发指南 `_ 包含了关于贡献代码、文档、测试等的详细信息。我们在本 README 中提供了一些基本信息。 ### 重要链接 - 官方源代码仓库:https://github.com/scikit-learn/scikit-learn - 下载发布版:https://pypi.org/project/scikit-learn/ - 问题追踪:https://github.com/scikit-learn/scikit-learn/issues ### 源代码 你可以使用以下命令检出最新的源代码:: ``` git clone https://github.com/scikit-learn/scikit-learn.git ``` ### 测试 安装完成后,你可以在源代码目录之外启动测试套件(你需要安装 ``pytest`` >= |PytestMinVersion|):: ``` pytest sklearn ``` 请查看网页 https://scikit-learn.org/dev/developers/contributing.html#testing-and-improving-test-coverage 获取更多信息。 ``` Random number generation can be controlled during testing by setting the ``SKLEARN_SEED`` environment variable. ``` ### 提交 Pull Request 在发起 Pull Request 之前,请查看 完整的贡献页面,以确保你的代码符合 我们的指南:https://scikit-learn.org/stable/developers/index.html ## 项目历史 该项目由 David Cournapeau 于 2007 年作为 Google Summer of Code 项目发起, 此后已有许多志愿者做出了贡献。请查看 `关于我们 `__ 页面 获取核心贡献者列表。 该项目目前由一个志愿者团队维护。 **注意**:`scikit-learn` 以前被称为 `scikits.learn`。 ## 帮助与支持 ### 文档 - HTML 文档(稳定发布版):https://scikit-learn.org - HTML 文档(开发版本):https://scikit-learn.org/dev/ - 常见问题解答:https://scikit-learn.org/stable/faq.html ### 交流 ## 主要渠道 - **网站**:https://scikit-learn.org - **博客**:https://blog.scikit-learn.org - **邮件列表**:https://mail.python.org/mailman/listinfo/scikit-learn ## 开发者与支持 - **GitHub Discussions**:https://github.com/scikit-learn/scikit-learn/discussions - **Stack Overflow**:https://stackoverflow.com/questions/tagged/scikit-learn - **Discord**:https://discord.gg/h9qyrK8Jc8 ## 社交媒体平台 - **LinkedIn**:https://www.linkedin.com/company/scikit-learn - **YouTube**:https://www.youtube.com/channel/UCjosFjYm0ZYVUARxuOZqnnw/playlists - **Facebook**:https://www.facebook.com/scikitlearnofficial/ - **Instagram**:https://www.instagram.com/scikitlearnofficial/ - **TikTok**:https://www.tiktok.com/@scikit.learn - **Bluesky**:https://bsky.app/profile/scikit-learn.org - **Mastodon**:https://mastodon.social/@sklearn@fosstodon.org ## 资源 - **日历**:https://blog.scikit-learn.org/calendar/ - **标志与品牌**:https://github.com/scikit-learn/scikit-learn/tree/main/doc/logos ### 引用 如果你在科学出版物中使用了 scikit-learn,我们将感谢你的引用:https://scikit-learn.org/stable/about.html#citing-scikit-learn
标签:Apex, Python, scikit-learn, 数据科学, 无后门, 机器学习, 算法库, 资源验证, 逆向工具