Skip to content

sang-he0n/catsnip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f5d68f1 ยท Feb 6, 2025

History

8 Commits
Feb 14, 2023
Aug 6, 2024
Aug 6, 2024
Feb 14, 2023
Feb 14, 2023
Aug 6, 2024
Feb 14, 2023
Feb 14, 2023
Feb 14, 2023
Feb 6, 2025

Repository files navigation

catsnip ๐Ÿˆ

Lifecycle: experimental CRAN status R-CMD-check

Overview

catsnip is a package that wraps catboost models in parsnip format.

This package is based on treesnip package and provides following functions.

  • Attach catboost model to boost_tree() function

  • Install catboost package through install_catboost() function

  • Avoid conflict between bonsai package and catsnip package during stacking model

Documents

For a detailed explanation of catboost and treesnip, see links below.

Installation

Since catsnip is not listed on CRAN, so use install_github() function.

devtools::install_github(repo="sang-he0n/catsnip")

You can also install catboost released version with,

catsnip::install_catboost() 

To install another version(ex: 0.16.5), Use version parameter.

Hyperparameters Map

parsnip catboost
mtry rsm
trees iterations
min_n min_data_in_leaf
tree_depth depth
learn_rate learning_rate
loss_reduction ???
sample_size subsample
stop_iter early_stopping_rounds

Package Roadmaps

  • Support GPU processing

  • Optimization of parameters for catboost model and boost_tree() function

  • Extract SHAP value by interworking with fastshap (or shapviz?) package

Code of Conduct

Please note that the catsnip project is released with a Contributor Code of Conduct.

By contributing to this project, you agree to abide by its terms.

Releases

No releases published

Languages