copyObjectPredictions

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

Separate array

public double[] copyObjectPredictions(int objectIndex)

Purpose

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

Parameters

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

objectIndex

The index of the object.

predictions

The array to copy predictions to.