Skip to content

@lancedb/lancedbDocs


@lancedb/lancedb / permutationBuilder

Function: permutationBuilder()

function permutationBuilder(table): PermutationBuilder

Create a permutation builder for the given table.

Parameters

  • table: Table The source table to create a permutation from

Returns

PermutationBuilder

A PermutationBuilder instance

Example

const builder = permutationBuilder(sourceTable, "training_data")
  .splitRandom({ ratios: [0.8, 0.2], seed: 42 })
  .shuffle({ seed: 123 });

const trainingTable = await builder.execute();