Options
All
  • Public
  • Public/Protected
  • All
Menu

ml-dataset-iris

Index

Functions

getClasses

  • getClasses(): string[]

getClassesAsNumber

  • getClassesAsNumber(): number[]

getCrossValidationSets

  • getCrossValidationSets(k: 5 | 7, options?: cvOptions): number[][] | { testIndex: number[]; trainIndex: number[] }[]
  • Parameters

    • k: 5 | 7
    • options: cvOptions = {}

    Returns number[][] | { testIndex: number[]; trainIndex: number[] }[]

getDataset

  • getDataset(): (number | string)[][]
  • Returns (number | string)[][]

getDistinctClasses

  • getDistinctClasses(): [string, string, string]
  • Returns [string, string, string]

getNumbers

  • getNumbers(): number[][]