-
Notifications
You must be signed in to change notification settings - Fork 1
/
opts.js
83 lines (81 loc) · 1.3 KB
/
opts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* eslint-disable sort-keys,array-element-newline */
const {
resolve,
} = require('path');
const opts = {
INDEX_BASE: 10,
UNDERLINE: '-',
PRINT_TYPES: true,
EMPTY_STR: 'Empty DataFrame',
MEM_INFO: true,
MEM_INFO_STR: '',
MEM_INFO_INDEX: '',
SPACE_BETWEEN: 1,
PAD_STR: ' ',
SHOW_INDEX: true,
IDX_MARKER: '#',
SHOW_MORE: true,
EMPTY: 'empty',
DOTS: '..',
HEAD_LEN: 5,
PARSE_NUM_RATIO: 0.7,
SAMPLE_SIZE: 0.1,
NBEST: 5,
UNDERLINE_BOT: true,
DATASETS: [resolve(__dirname, 'datasets')],
AGG: {
all: ['mode', 'argMax', 'argMin'],
num: [
'mean',
'median',
'Q1',
'Q3',
'var',
'stdev',
'mad',
'min',
'max',
'range',
'IQR',
'memory',
'skewness',
'kurtosis',
],
str: [],
},
FUNCTS: {
all: [
'convert',
'cum',
'map',
'reverse',
'zipWith',
'zipWith3',
],
num: [
'abs',
'cast',
'cbrt',
'ceil',
'clip',
'cube',
'cum',
'disDiff',
'downcast',
'floor',
'kBins',
'normalize',
'pow',
'round',
'smooth',
'sqrt',
'square',
'trunc',
],
str: ['labelEncode'],
},
FLOAT_PREC: 32,
PRINT_PREC: 2,
MIN_COL_WIDTH: 12,
};
module.exports = opts;