Troubleshooting¶
Common issues and their solutions.
Installation Issues¶
"Python version not supported"¶
Solution: Install Python 3.13 or higher.
"Module not found: mi_amore"¶
Solution: The mi-amore library is required. Reinstall Pilz:
Training Issues¶
Training takes too long¶
Symptoms: Training runs for hours without completing
Solutions:
-
Reduce n_dims:
-
Set calcs_per_dim:
-
Reduce max_eval_fit:
-
Reduce n_cat:
Out of memory¶
Symptoms: Process killed during training
Solutions:
- Reduce
max_eval_fit - Reduce
n_dims - Process data in batches
- Use smaller
n_cat
"No good split found"¶
Symptoms: Tree stops early with log messages "Best split yields no branches" or "No feature survived categorization, stop at this node"
Solutions:
- Increase
max_depth - Decrease
min_eval_fit - Try different
n_catvalues - Check data quality (missing values, outliers)
Data Issues¶
"Column not found"¶
Solution: Verify column names in DataCard match CSV headers exactly.
"Target values not found"¶
Solution: Check that target values in DataCard match actual values in CSV.
"Too many missing values"¶
Option 1: Impute nulls with a fixed value by adding missing_value to the feature in DataCard:
Option 2: Leave missing_value unset — nulls then become their own "missing"
category that the model can learn from (spores use IS NULL / IS NOT NULL conditions).
Evaluation Issues¶
"Model not found"¶
Symptoms: Eval.load_pilze logs folder <path> does not exist. and breaks
out of the loop for that target — it does not raise FileNotFoundError.
Solution:
- Ensure training completed successfully
- Check that in_folders points to correct directory
- Check that the target folder is named exactly like the target value
"Label stats not found"¶
Solution: The multi-class youden combination needs the majority class
as the fallback prediction when no threshold margin is positive. Training
writes it to label_stats.json alongside the trees. Retrain the model (or
resume it — existing trees are skipped) so the file is created, and make
sure in_folders points to the model directory.
ROC curve is empty¶
Symptoms: HTML file has no data points
Solution: - Check that test data has target column - Verify target values match training
Performance Issues¶
Slow inference¶
Solutions:
1. Use infer instead of eval (no metrics calculation)
2. Increase max_parallel_where to use fewer, larger SQL batches (legacy cut-models only; lower values create more, smaller batches)
3. Pre-compute predictions and cache
Low accuracy¶
Solutions:
1. Try higher n_dims (feature combinations)
2. Increase n (more trees)
3. Increase max_depth
4. Adjust n_cat (try 3, 5, 8, 10)
5. Check for data quality issues
Getting Help¶
- Check the FAQ
- Review Best Practices
- Open an issue on GitLab