Catboost Feature Importance Calculation
I fitted a simple binary classification model with only 3 trees and wanted to check if feature importance results are simmillar to the formula in Catboost documentation (PredictionValuesChange).
Cannot add self arguments to custom metrics in catboost. Can’t optimze method “evaluate” because self argument is used
I am using the example from here.
The example works fine, but, the moment I try to get more flexible with the custom metric class by using self in it, I get hit by a UserWarning: Can't optimze method "evaluate" because self argument is used