Sha256: 5f9eed185be0b17730bef788750e3e0332213dd80ccd57cc16482fc51e3d3e99

Contents?: true

Size: 1.65 KB

Versions: 27

Compression:

Stored size: 1.65 KB

Contents

export const SPLITTER_OPTIONS = [
  { 
    value: 'date', 
    label: 'Date Split',
    description: 'Split data based on a date/time column'
  },
  { 
    value: 'random', 
    label: 'Random Split',
    description: 'Randomly split data into train/test/validation sets (70/20/10)'
  },
  { 
    value: 'predefined', 
    label: 'Predefined Splits',
    description: 'Use separate files for train/test/validation sets'
  },
//   { 
//     value: 'stratified', 
//     label: 'Stratified Shuffle Split',
//     description: 'Maintain the percentage of samples for each class'
//   },
//   { 
//     value: 'stratified_kfold', 
//     label: 'Stratified K-Fold',
//     description: 'K-fold with preserved class distribution'
//   },
//   { 
//     value: 'group_kfold', 
//     label: 'Group K-Fold',
//     description: 'K-fold ensuring group integrity'
//   },
//   { 
//     value: 'group_shuffle', 
//     label: 'Group Shuffle Split',
//     description: 'Random split respecting group boundaries'
//   },
//   { 
//     value: 'leave_p_out', 
//     label: 'Leave P Out',
//     description: 'Use P samples for testing in each fold'
//   }
] as const;

export const DEFAULT_CONFIGS = {
  date: {
    date_column: '',
    months_test: 2,
    months_valid: 1
  },
  random: {},
  predefined: {
    train_files: [],
    test_files: [],
    valid_files: []
  },
  stratified: {
    targetColumn: '',
    testSize: 20,
    validSize: 10
  },
  stratified_kfold: {
    targetColumn: '',
    nSplits: 5
  },
  group_kfold: {
    groupColumn: '',
    nSplits: 5
  },
  group_shuffle: {
    groupColumn: '',
    testSize: 20,
    validSize: 10
  },
  leave_p_out: {
    p: 1
  }
} as const;

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc27 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc26 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc25 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc24 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc23 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc22 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc21 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc20 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc19 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc18 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc17 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc16 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc15 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc14 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc13 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc12 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc11 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc10 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc9 app/frontend/components/dataset/splitters/constants.ts
easy_ml-0.2.0.pre.rc8 app/frontend/components/dataset/splitters/constants.ts