Hub rules-catboost

rules-catboost

v2 public Verified

Catboost

CatBoost is an open-source gradient boosting on decision trees library. These rules govern model training, hyperparameter tuning, and data preprocessing for AI-assisted CatBoost development.

@sigmashakeinc 3 pulls 6 rules published Apr 8, 2026 synced Oct 11, 2026 sigmashakeinc/rules/rulesets/rules-catboost →
Severity
3 error 3 warn 0 info
demo.cast
CatBoost is an open-source gradient boosting on decision trees library. These rules govern model training, hyperparameter tuning, and data preprocessing for AI-assisted CatBoost development.

Rules index

6 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

catboost

catboost-deprecated-loss-function warning log

Usage of deprecated 'loss_function' parameter: The 'loss_function' parameter is less common or potentially deprecated in favor of 'objective' in modern CatBoost API usage. While it might still work, using 'objective' ensures consistency and compatibility with the latest best practices. Consider replacing 'loss_function=' with 'objective='.

Rule source requires an active Pro or Enterprise subscription.
catboost-excessive-logging warning log

Excessive logging in production: Using 'verbose=True' or 'logging_level='Debug'' in production environments can lead to information leakage, exposing sensitive training data snippets, internal model states, or performance details. This can aid attackers in model inversion or reconstruction attacks. For production, use 'logging_level='Silent'' or 'logging_level='Info'' to minimize exposed information.

Rule source requires an active Pro or Enterprise subscription.
catboost-fixed-random-seed-warning warning log

Fixed 'random_seed' usage: While 'random_seed' is crucial for reproducibility in development and testing, relying on a single fixed seed for hyperparameter tuning or final model training can lead to models that are overfit to that specific seed's data split or initialization. This can reduce model robustness and generalization. For robust models, consider varying the seed during hyperparameter search or using cross-validation without a fixed seed across folds.

Rule source requires an active Pro or Enterprise subscription.
catboost-high-iterations-risk error block

Potential resource exhaustion: Setting an excessively high number of 'iterations' (e.g., 10000 or more) without proper early stopping or resource limits can lead to prolonged training times, high CPU/memory consumption, and potential Denial of Service (DoS) in shared environments. Review the chosen iteration count; ensure it's justified and consider implementing 'early_stopping_rounds' with a robust validation set.

Rule source requires an active Pro or Enterprise subscription.
catboost-insecure-save-path error block

Insecure file path handling: Saving CatBoost models to paths derived from untrusted user input can lead to path traversal vulnerabilities, allowing an attacker to write files to arbitrary locations on the file system. Ensure all file paths for model saving are absolute, canonicalized, and constructed using secure methods like os.path.abspath and os.path.join with strictly validated components, never direct concatenation of user input.

Rule source requires an active Pro or Enterprise subscription.
catboost-untrusted-model-load error block

Potential deserialization vulnerability or integrity risk: Loading CatBoost models from untrusted sources can lead to execution of malicious code, resource exhaustion, or unexpected behavior if the model file is tampered with or malformed. Always load models from trusted, integrity-checked sources. Consider cryptographic hashes (e.g., SHA256) to verify model integrity before loading.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v2
Published
Apr 8, 2026
Source commits
0
Synced
Oct 11, 2026
Hash
8be3d9676baa281d6398481c071521f4c6ca367d2f6b0c188644987e43db2cf9
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-catboost/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-catboost. The published version only bumps when a maintainer resyncs.

No commit history available.