Skip to content
Quantoros

Why is passing a separate label array alongside a file path to CatBoost Pool a bad ingestion contract?

Classic MLLevel: IntermediateCatBoost · Pool data contract

Why is passing a separate label array alongside a file path to CatBoost Pool a bad ingestion contract?

Hints
  • The source of labels must be unambiguous.
  • File-backed and matrix-backed input have different API contracts.

Answer

For file-backed data the documented Pool API reads labels from the file and requires label=None. Put labels in the correctly described file or load a matrix with a separately aligned label array instead.

Source and licence: CatBoost · Pool data contract · Apache-2.0 · answer: Quantoros editorial

Related questions