---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.3
alternate:
  - https://catboost.ai/docs/en/concepts/java-reference_catboostmodel__getpredictiondimension.md
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# getPredictionDimension

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

#### Purpose

<!-- source: en/_includes/work_src/reusage-java/java__getpredictiondimension__desc.md -->
Return the dimension of the model's 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__getpredictiondimension__desc.md -->

