---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://catboost.ai/docs/en/concepts/java-reference_catboostpredictions__getpredictiondimension.md
  - href: https://catboost.ai/docs/en/concepts/java-reference_catboostpredictions__getpredictiondimension.md
    type: text/markdown
    title: Markdown version
  - href: https://catboost.ai/docs/en/llms.txt?revision=r21892739
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt?revision=r21892739

# getPredictionDimension

```java
public int getPredictionDimension()
```

#### Returns

<!-- source: en/_includes/work_src/reusage-java/java-reference_catboostpredictions__getpredictiondimension.md -->
Return the dimension of the prediction. The value corresponds to the dimension of the vector of predictions. For example, it is equal to N for multiclassification tasks in case of N classes.
<!-- endsource: en/_includes/work_src/reusage-java/java-reference_catboostpredictions__getpredictiondimension.md -->

