---
title: "resolve(count:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mlsplitstrategy/resolve(count:)"
---

# resolve(count:)

Resolves this split strategy for a specific element count.

## Declaration

```swift
func resolve(count: Int) -> (ratio: Double, seed: Int)
```

## Parameters

- `count`: The number of elements in the collection being split.

## Return Value

Return Value The split fraction and the random seed to use.

## See Also

### Partitioning data

- [MLSplitStrategy.automatic](createml/mlsplitstrategy/automatic.md)
- [MLSplitStrategy.fixed(ratio:seed:)](createml/mlsplitstrategy/fixed(ratio:seed:).md)
