lazypredict

Python AutoML 工具包,用於基準測試分類、回歸和時間序列預測模型,支援 GPU 加速、MLflow 追蹤及自動化預處理。

lazypredict 是什麼?

Python AutoML 工具包,用於基準測試分類、回歸和時間序列預測模型,支援 GPU 加速、MLflow 追蹤及自動化預處理。

lazypredict 概覽

這是什麼

Lazy Predict 是一個 Python AutoML 工具包,用於對分類、回歸和時間序列預測模型進行基準測試。它幫助使用者無需大量程式碼即可建立多種基本模型,並了解哪些模型在無需參數調整的情況下表現更好。它支援 GPU 加速、MLflow 追蹤和自動化預處理。

主要功能

  • 超過 40 個內建機器學習模型 - 自動模型選擇,適用於分類、回歸和時間序列預測 - 20 多個預測模型,包括統計模型(ETS、ARIMA、Theta)、機器學習模型(隨機森林、XGBoost)、深度學習模型(LSTM、GRU)以及預訓練基礎模型(TimesFM) - 透過 ACF 自動檢測季節週期 - 多種類別編碼策略:OneHot、Ordinal、Target、Binary - 內建 MLflow 整合,用於實驗追蹤 - GPU 加速支援 XGBoost、LightGBM、CatBoost、cuML(RAPIDS)、LSTM/GRU 和 TimesFM - 支援 Python 3.10 至 3.14 - 支援自訂評估指標 - 可設定的超時時間和交叉驗證 - 支援 Intel Extension for Scikit-learn 加速(選擇性啟用)

使用情境

快速原型設計與基準測試分類、回歸和時間序列預測模型。無需參數調整即可進行初始模型選擇。自動比較給定資料集上的多種演算法。

快速開始

透過 pip 或 conda 安裝: bash pip install lazypredict bash conda install -c conda-forge lazypredict 可選的額外套件,用於提升、編碼器、時間序列、深度學習和基礎模型: bash pip install lazypredict[boost] pip install lazypredict[encoders] pip install lazypredict[timeseries] pip install lazypredict[timeseries,deeplearning] pip install lazypredict[timeseries,foundation] pip install lazypredict[all] 基本分類範例: python from lazypredict.Supervised import LazyClassifier from sklearn.datasets import load_breast_cancer from sklearn.model_selection import train_test_split data = load_breast_cancer() X = data.data y = data.target X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=123) clf = LazyClassifier(verbose=0, ignore_warnings=True, custom_metric=None) models, predictions = clf.fit(X_train, X_test, y_train, y_test) print(models)

授權與價格

本專案採用 MIT 授權條款。它是開源且免費使用的。

內容整理自該專案公開的 README 與儲存庫資訊。

將此徽章加入你的 README

Featured on YunoDB 徽章樣式與說明

你是這個專案的維護者嗎?展示它已收錄於 YunoDB。

Markdown[![Featured on YunoDB](https://yunodb.com/badge/shankarpandalalazypredict.svg)](https://yunodb.com/tools/shankarpandalalazypredict?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/shankarpandalalazypredict?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/shankarpandalalazypredict.svg" alt="Featured on YunoDB" height="20"></a>