Skip to content
Quantoros

With several LightGBM validation metrics, why should firstmetriconly and metric ordering be explicit?

Classic MLLevel: IntermediateLightGBM · Parameters

With several LightGBM validation metrics, why should first_metric_only and metric ordering be explicit?

Hints
  • Displayed metrics and stopping criteria may differ.
  • Check the first metric and callback configuration.

Answer

They determine which metric participates in early stopping under the configured callback/parameters. Choose the primary objective deliberately and report the others separately; otherwise a run may stop for a different criterion than the one used to select it.

Source and licence: LightGBM · Parameters · MIT · answer: Quantoros editorial

Related questions