---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://catboost.ai/docs/en/concepts/java-reference_catboostpredictions__copyrowmajorpredictions.md
  - href: en/concepts/java-reference_catboostpredictions__copyrowmajorpredictions.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# copyRowMajorPredictions

```java
public double[] copyRowMajorPredictions()
```

#### Purpose

<!-- source: en/_includes/work_src/reusage-java/java-reference_catboostpredictions__copyrowmajorpredictions__desc.md -->
Return a row-major copy of the prediction matrix.
<!-- endsource: en/_includes/work_src/reusage-java/java-reference_catboostpredictions__copyrowmajorpredictions__desc.md -->


The prediction for the _i_-th object in the _j_-th dimension is in the $i * getPredictionDimension() + j$ position.

