functai for TypeScript - v0.1.0
    Preparing search index...

    Function split

    • Two lists, with every group of rows on one side: const [train, test] = split(rated(tutor).rows). Turns of one conversation depend on each other: a test row whose conversation is also in the training rows measures memory, not the program. A row with no group (conversation null) is a group of its own. test is the share of groups held out (at least one group each side when there are two or more); seed makes it repeatable here (not Python's draw for the same seed).

      Type Parameters

      • R extends Rec

      Parameters

      • rows: readonly R[]
      • opts: { by?: string; seed?: number; test?: number } = {}

      Returns [R[], R[]]