copyObjectPredictions

The CatBoost Java package provides several methods for copying predictions to different types of arrays.

  1. Separate array
  2. Specified array

Separate array

public double[] copyObjectPredictions(int objectIndex)
Purpose

Copy the prediction for the specified object to a separate array.

Parameters
Parameter Description
objectIndex

The index of the object.

Specified array

public void copyObjectPredictions(int objectIndex,
                                  double[] predictions)
Purpose

Copy the prediction for the specified object to the specified array.

Parameters
Parameter Description
objectIndex

The index of the object.

predictions

The array to copy predictions to.