yggdrasil decision forests
Python API 0.9.0

YDF (Yggdrasil Decision Forests)는 임의의 산림을 훈련, 평가, 해석 및 서비스하는 도서관입니다.
YDF에 대한 자세한 내용은 문서를 참조하십시오.
PYPI에서 YDF를 설치하려면 실행하십시오.
pip install ydf -U import ydf
import pandas as pd
# Load dataset with Pandas
ds_path = "https://raw.githubusercontent.com/google/yggdrasil-decision-forests/main/yggdrasil_decision_forests/test_data/dataset/"
train_ds = pd . read_csv ( ds_path + "adult_train.csv" )
test_ds = pd . read_csv ( ds_path + "adult_test.csv" )
# Train a Gradient Boosted Trees model
model = ydf . GradientBoostedTreesLearner ( label = "income" ). train ( train_ds )
# Look at a model (input features, training logs, structure, etc.)
model . describe ()
# Evaluate a model (e.g. roc, accuracy, confusion matrix, confidence intervals)
model . evaluate ( test_ds )
# Generate predictions
model . predict ( test_ds )
# Analyse a model (e.g. partial dependence plot, variable importance)
model . analyze ( test_ds )
# Benchmark the inference speed of a model
model . benchmark ( test_ds )
# Save the model
model . save ( "/tmp/my_model" )C ++ API의 예.
auto dataset_path = " csv:train.csv " ;
// List columns in training dataset
DataSpecification spec;
CreateDataSpec (dataset_path, false , {}, &spec);
// Create a training configuration
TrainingConfig train_config;
train_config.set_learner( " RANDOM_FOREST " );
train_config.set_task(Task::CLASSIFICATION);
train_config.set_label( " my_label " );
// Train model
std::unique_ptr<AbstractLearner> learner;
GetLearner (train_config, &learner);
auto model = learner-> Train (dataset_path, spec);
// Export model
SaveModel ( " my_model " , model.get());(예/초보자 기반)
시작 튜토리얼을 확인하십시오.
과학적 간행물에서 yggdrasil 결정 숲이라면 다음 논문을 인용하십시오. yggdrasil 결정 숲 : 빠르고 확장 가능한 결정 숲 도서관.
Bibtex
@inproceedings{GBBSP23,
author = {Mathieu Guillame{-}Bert and
Sebastian Bruch and
Richard Stotz and
Jan Pfeifer},
title = {Yggdrasil Decision Forests: {A} Fast and Extensible Decision Forests
Library},
booktitle = {Proceedings of the 29th {ACM} {SIGKDD} Conference on Knowledge Discovery
and Data Mining, {KDD} 2023, Long Beach, CA, USA, August 6-10, 2023},
pages = {4068--4077},
year = {2023},
url = {https://doi.org/10.1145/3580305.3599933},
doi = {10.1145/3580305.3599933},
}
날것의
Yggdrasil 결정 숲 : 빠르고 확장 가능한 결정 숲 도서관, Guillame-Bert et al., KDD 2023 : 4068-4077. doi : 10.1145/3580305.3599933
[email protected]의 핵심 개발 팀에 문의하십시오.
Yggdrasil 결정 숲 및 텐서 플로우 결정 숲은 다음과 같이 개발됩니다.
텐서 플로우 결정 숲과 이그 드라 실 결정 숲에 대한 기여를 환영합니다. 기여하려면 기여 가이드 라인을 확인하십시오.
아파치 라이센스 2.0