---
metadata:
  - name: generator
    content: Diplodoc Platform v5.55.2
alternate:
  - https://catboost.ai/docs/en/references/training-parameters/multiclassification.md
  - href: en/references/training-parameters/multiclassification.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

# Multiclassification settings

## classes_count {#classes_count}

Command-line: `--classes-count`

#### Description

<!-- source: en/_includes/work_src/reusage/classes-count__main-desc.md -->
The upper limit for the numeric class label. Defines the number of classes for multiclassification.
<!-- endsource: en/_includes/work_src/reusage/classes-count__main-desc.md -->

<!-- source: en/_includes/work_src/reusage/classes-count__possible-values.md -->
Only non-negative integers can be specified. The given integer should be greater than any of the label values.
<!-- endsource: en/_includes/work_src/reusage/classes-count__possible-values.md -->


If this parameter is specified the labels for all classes in the input dataset should be smaller than the given value

**Type**

 int

**Default value**

{% cut "Python package" %}

None.

maximum class label + 1

{% endcut %}

{% cut "R package" %}

maximum class label + 1

{% endcut %}

{% cut "Command line" %}

- `maximum class label + 1` if the `--class-names` parameter is not specified
- the quantity of classes names if the `--class-names` parameter is specified

{% endcut %}

**Supported processing units**

CPU and GPU


## --class-names {#--class-names}

This parameter is only for Command-line.

#### Description

Classes names. Allows to redefine the default values when using the MultiClass and Logloss metrics.

If the upper limit for the numeric class label is specified, the number of classes names should match this value.

{% note warning %}

The quantity of classes names must match the quantity of classes weights specified in the `--class-weights` parameter and the number of classes specified in the `--classes-count` parameter.

{% endnote %}

Format:

```
<name for class 1>,..,<name for class N>
```

For example:

```
smartphone,touchphone,tablet
```

**Default value**

The classes names are integers from 0 to classes_count – 1

**Supported processing units**

CPU and GPU

