For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Python class
FrequencyData
FrequencyData
class max.pipelines.sampling.FrequencyData(data, offsets)
Bases: object
Container for token frequency data in CSR format.
data
data: Buffer
- 1D array of the column indices of the
- non-zero elements in the matrix.
- data[:, 1]: 1D array of the non-zero elements in the
- matrix.
-
Type:
-
data[
-
Type:
-
, 0]
offsets
offsets: Buffer
shape [batch_size + 1] indicating start of each sequence’s data.
-
Type:
-
Row offsets
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!