Python学习笔记:LGB/XGB/CatBoost之安装
2022/4/4 1:19:58
本文主要是介绍Python学习笔记:LGB/XGB/CatBoost之安装,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
一、安装
1.lightgbm
pip install lightgbm
2.xgboost
pip install xgboost pip install xgboost -i https://pypi.tuna.tsinghua.edu.cn/simple # 指定清华镜像
第一次直接安装,因为网络问题,没安装上。
换成国内清华镜像解决。
3.catboost
pip install catboost -i https://pypi.tuna.tsinghua.edu.cn/simple
安装 CatBoost
时所安装的依赖。
Installing collected packages: tenacity, python-da graphviz, catboost Attempting uninstall: python-dateutil Found existing installation: python-dateutil 2 Uninstalling python-dateutil-2.6.1: Successfully uninstalled python-dateutil-2.6 Attempting uninstall: numpy Found existing installation: numpy 1.14.0 Uninstalling numpy-1.14.0: Successfully uninstalled numpy-1.14.0 Attempting uninstall: pandas Found existing installation: pandas 0.22.0 Uninstalling pandas-0.22.0: Successfully uninstalled pandas-0.22.0 Successfully installed catboost-1.0.4 graphviz-0.1 plotly-5.6.0 python-dateutil-2.8.2 tenacity-8.0.1
二、加载
import pandas as pd import lightgbm as lgb import xgboost as xgb import catboost as ctb
参考链接:机器学习笔记之Anaconda中命令形式安装XGBoost(pip install)
这篇关于Python学习笔记:LGB/XGB/CatBoost之安装的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-24Python编程基础详解
- 2024-11-21Python编程基础教程
- 2024-11-20Python编程基础与实践
- 2024-11-20Python编程基础与高级应用
- 2024-11-19Python 基础编程教程
- 2024-11-19Python基础入门教程
- 2024-11-17在FastAPI项目中添加一个生产级别的数据库——本地环境搭建指南
- 2024-11-16`PyMuPDF4LLM`:提取PDF数据的神器
- 2024-11-16四种数据科学Web界面框架快速对比:Rio、Reflex、Streamlit和Plotly Dash
- 2024-11-14获取参数学习:Python编程入门教程