score

Calculate the Accuracy metric for the objects in the given dataset.

Method call format

score(X, y)

Parameters

ParameterPossible typesDescriptionDefault value
Xcatboost.PoolThe input training dataset in the form of a pool object.Required parameter

The input training dataset in the form of a two-dimensional feature matrix.

y
  • list
  • numpy.array
  • pandas.DataFrame
  • pandas.Series

The target variables (in other words, the objects' label values) for the training dataset.

Must be in the form of a one-dimensional array of floating point numbers.

None

Type of return value

float