<!-- # hard line break macro for HTML -->

# fiftyone.core.map.batcher.batch

Abstract mapping backend

Copyright 2017-2026, Voxel51, Inc.
<br/>
[voxel51.com](https://voxel51.com/)
<br/>
<br/>

**Classes:**

| [`SampleBatch`](#fiftyone.core.map.batcher.batch.SampleBatch)()   | A sample batch   |
|-------------------------------------------------------------------|------------------|

### *class* fiftyone.core.map.batcher.batch.SampleBatch

Bases: `ABC`

A sample batch

**Methods:**

| [`split`](#fiftyone.core.map.batcher.batch.SampleBatch.split)(sample_collection, num_workers[, ...])   | Create a list of sample batches           |
|--------------------------------------------------------------------------------------------------------|-------------------------------------------|
| [`create_subset`](#fiftyone.core.map.batcher.batch.SampleBatch.create_subset)(sample_collection)       | Create a sample collection from the batch |

**Attributes:**

| [`total`](#fiftyone.core.map.batcher.batch.SampleBatch.total)   | Get the total number of samples in the batch   |
|-----------------------------------------------------------------|------------------------------------------------|

#### *abstractmethod classmethod* split(sample_collection: [SampleCollection](fiftyone.core.map.typing.md#fiftyone.core.map.typing.SampleCollection)[T], num_workers: int, batch_size: int | None = None) → List[[SampleBatch](#fiftyone.core.map.batcher.batch.SampleBatch)]

Create a list of sample batches

#### *abstract property* total *: int*

Get the total number of samples in the batch

#### *abstractmethod* create_subset(sample_collection: [SampleCollection](fiftyone.core.map.typing.md#fiftyone.core.map.typing.SampleCollection)[T]) → [SampleCollection](fiftyone.core.map.typing.md#fiftyone.core.map.typing.SampleCollection)[T]

Create a sample collection from the batch
