Always compute custom code metric even if not activated
I have the situation that I want to compute a custom metric for my model training but not use it for the hyperparameter optimization. Unfortunately, it seems that the metric is not calcluated if it is not used for the optimization in the design. Example metric:
As you can see, if I choose e.g. the R2 score as metric for optimizing the hyperparameters, the results are not showing the custom score:
Is it possible to always compute the metric? Thank you!