Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
TEXT = 'Text'
ARRAY = 'Array' # Do we even want to support arrays / structs / nested ... etc ?
class DATA_TYPES:
NUMERIC = 'Numeric'
DATE = 'Date'
CATEGORICAL = 'Categorical'
FILE_PATH = 'File Path'
URL = 'Url'
SEQUENTIAL = 'Sequential'
class DATA_TYPES_SUBTYPES:
subtypes = {
DATA_TYPES.NUMERIC: (DATA_SUBTYPES.INT, DATA_SUBTYPES.FLOAT, DATA_SUBTYPES.BINARY)
,DATA_TYPES.DATE:(DATA_SUBTYPES.DATE, DATA_SUBTYPES.TIMESTAMP)
,DATA_TYPES.CATEGORICAL:(DATA_SUBTYPES.SINGLE, DATA_SUBTYPES.MULTIPLE)
,DATA_TYPES.FILE_PATH:(DATA_SUBTYPES.IMAGE, DATA_SUBTYPES.VIDEO, DATA_SUBTYPES.AUDIO)
,DATA_TYPES.URL:()
,DATA_TYPES.SEQUENTIAL:(DATA_SUBTYPES.TEXT, DATA_SUBTYPES.ARRAY)
}
class KEYS:
X ='x'
Y ='y'
class ORDER_BY_KEYS:
COLUMN = 0
ASCENDING_VALUE = 1
PHASE_START = 0
ARRAY = 'Array' # Do we even want to support arrays / structs / nested ... etc ?
class DATA_TYPES:
NUMERIC = 'Numeric'
DATE = 'Date'
CATEGORICAL = 'Categorical'
FILE_PATH = 'File Path'
URL = 'Url'
SEQUENTIAL = 'Sequential'
class DATA_TYPES_SUBTYPES:
subtypes = {
DATA_TYPES.NUMERIC: (DATA_SUBTYPES.INT, DATA_SUBTYPES.FLOAT, DATA_SUBTYPES.BINARY)
,DATA_TYPES.DATE:(DATA_SUBTYPES.DATE, DATA_SUBTYPES.TIMESTAMP)
,DATA_TYPES.CATEGORICAL:(DATA_SUBTYPES.SINGLE, DATA_SUBTYPES.MULTIPLE)
,DATA_TYPES.FILE_PATH:(DATA_SUBTYPES.IMAGE, DATA_SUBTYPES.VIDEO, DATA_SUBTYPES.AUDIO)
,DATA_TYPES.URL:()
,DATA_TYPES.SEQUENTIAL:(DATA_SUBTYPES.TEXT, DATA_SUBTYPES.ARRAY)
}
class KEYS:
X ='x'
Y ='y'
class ORDER_BY_KEYS:
COLUMN = 0
ASCENDING_VALUE = 1
PHASE_START = 0
PHASE_END = 1000
class DATA_TYPES:
NUMERIC = 'Numeric'
DATE = 'Date'
CATEGORICAL = 'Categorical'
FILE_PATH = 'File Path'
URL = 'Url'
SEQUENTIAL = 'Sequential'
class DATA_TYPES_SUBTYPES:
subtypes = {
DATA_TYPES.NUMERIC: (DATA_SUBTYPES.INT, DATA_SUBTYPES.FLOAT, DATA_SUBTYPES.BINARY)
,DATA_TYPES.DATE:(DATA_SUBTYPES.DATE, DATA_SUBTYPES.TIMESTAMP)
,DATA_TYPES.CATEGORICAL:(DATA_SUBTYPES.SINGLE, DATA_SUBTYPES.MULTIPLE)
,DATA_TYPES.FILE_PATH:(DATA_SUBTYPES.IMAGE, DATA_SUBTYPES.VIDEO, DATA_SUBTYPES.AUDIO)
,DATA_TYPES.URL:()
,DATA_TYPES.SEQUENTIAL:(DATA_SUBTYPES.TEXT, DATA_SUBTYPES.ARRAY)
}
class KEYS:
X ='x'
Y ='y'
class ORDER_BY_KEYS:
COLUMN = 0
ASCENDING_VALUE = 1
PHASE_START = 0
PHASE_END = 1000
PHASE_DATA_EXTRACTOR = 1
PHASE_STATS_GENERATOR = 2
# SEQUENTIAL
TEXT = 'Text'
ARRAY = 'Array' # Do we even want to support arrays / structs / nested ... etc ?
class DATA_TYPES:
NUMERIC = 'Numeric'
DATE = 'Date'
CATEGORICAL = 'Categorical'
FILE_PATH = 'File Path'
URL = 'Url'
SEQUENTIAL = 'Sequential'
class DATA_TYPES_SUBTYPES:
subtypes = {
DATA_TYPES.NUMERIC: (DATA_SUBTYPES.INT, DATA_SUBTYPES.FLOAT, DATA_SUBTYPES.BINARY)
,DATA_TYPES.DATE:(DATA_SUBTYPES.DATE, DATA_SUBTYPES.TIMESTAMP)
,DATA_TYPES.CATEGORICAL:(DATA_SUBTYPES.SINGLE, DATA_SUBTYPES.MULTIPLE)
,DATA_TYPES.FILE_PATH:(DATA_SUBTYPES.IMAGE, DATA_SUBTYPES.VIDEO, DATA_SUBTYPES.AUDIO)
,DATA_TYPES.URL:()
,DATA_TYPES.SEQUENTIAL:(DATA_SUBTYPES.TEXT, DATA_SUBTYPES.ARRAY)
}
class ORDER_BY_KEYS:
COLUMN = 0
ASCENDING_VALUE = 1
MODEL_STATUS_TRAINED = "Trained"
MODEL_STATUS_PREPARING = "Preparing"
MODEL_STATUS_DATA_ANALYSIS = "Data Analysis"
MODEL_STATUS_TRAINING= "Training"
# SEQUENTIAL
TEXT = 'Text'
ARRAY = 'Array' # Do we even want to support arrays / structs / nested ... etc ?
class DATA_TYPES:
NUMERIC = 'Numeric'
DATE = 'Date'
CATEGORICAL = 'Categorical'
FILE_PATH = 'File Path'
URL = 'Url'
SEQUENTIAL = 'Sequential'
class DATA_TYPES_SUBTYPES:
subtypes = {
DATA_TYPES.NUMERIC: (DATA_SUBTYPES.INT, DATA_SUBTYPES.FLOAT, DATA_SUBTYPES.BINARY)
,DATA_TYPES.DATE:(DATA_SUBTYPES.DATE, DATA_SUBTYPES.TIMESTAMP)
,DATA_TYPES.CATEGORICAL:(DATA_SUBTYPES.SINGLE, DATA_SUBTYPES.MULTIPLE)
,DATA_TYPES.FILE_PATH:(DATA_SUBTYPES.IMAGE, DATA_SUBTYPES.VIDEO, DATA_SUBTYPES.AUDIO)
,DATA_TYPES.URL:()
,DATA_TYPES.SEQUENTIAL:(DATA_SUBTYPES.TEXT, DATA_SUBTYPES.ARRAY)
}
class ORDER_BY_KEYS:
COLUMN = 0
ASCENDING_VALUE = 1
MODEL_STATUS_TRAINED = "Trained"
MODEL_STATUS_PREPARING = "Preparing"
MODEL_STATUS_DATA_ANALYSIS = "Data Analysis"
MODEL_STATUS_TRAINING= "Training"
MODEL_STATUS_ANALYZING = "Analyzing"
TEXT = 'Text'
ARRAY = 'Array' # Do we even want to support arrays / structs / nested ... etc ?
class DATA_TYPES:
NUMERIC = 'Numeric'
DATE = 'Date'
CATEGORICAL = 'Categorical'
FILE_PATH = 'File Path'
URL = 'Url'
SEQUENTIAL = 'Sequential'
class DATA_TYPES_SUBTYPES:
subtypes = {
DATA_TYPES.NUMERIC: (DATA_SUBTYPES.INT, DATA_SUBTYPES.FLOAT, DATA_SUBTYPES.BINARY)
,DATA_TYPES.DATE:(DATA_SUBTYPES.DATE, DATA_SUBTYPES.TIMESTAMP)
,DATA_TYPES.CATEGORICAL:(DATA_SUBTYPES.SINGLE, DATA_SUBTYPES.MULTIPLE)
,DATA_TYPES.FILE_PATH:(DATA_SUBTYPES.IMAGE, DATA_SUBTYPES.VIDEO, DATA_SUBTYPES.AUDIO)
,DATA_TYPES.URL:()
,DATA_TYPES.SEQUENTIAL:(DATA_SUBTYPES.TEXT, DATA_SUBTYPES.ARRAY)
}
class ORDER_BY_KEYS:
COLUMN = 0
ASCENDING_VALUE = 1
MODEL_STATUS_TRAINED = "Trained"
MODEL_STATUS_PREPARING = "Preparing"
MODEL_STATUS_DATA_ANALYSIS = "Data Analysis"
MODEL_STATUS_TRAINING= "Training"
MODEL_STATUS_ANALYZING = "Analyzing"
MODEL_STATUS_ERROR = "Error"
# SEQUENTIAL
TEXT = 'Text'
ARRAY = 'Array' # Do we even want to support arrays / structs / nested ... etc ?
class DATA_TYPES:
NUMERIC = 'Numeric'
DATE = 'Date'
CATEGORICAL = 'Categorical'
FILE_PATH = 'File Path'
URL = 'Url'
SEQUENTIAL = 'Sequential'
class DATA_TYPES_SUBTYPES:
subtypes = {
DATA_TYPES.NUMERIC: (DATA_SUBTYPES.INT, DATA_SUBTYPES.FLOAT, DATA_SUBTYPES.BINARY)
,DATA_TYPES.DATE:(DATA_SUBTYPES.DATE, DATA_SUBTYPES.TIMESTAMP)
,DATA_TYPES.CATEGORICAL:(DATA_SUBTYPES.SINGLE, DATA_SUBTYPES.MULTIPLE)
,DATA_TYPES.FILE_PATH:(DATA_SUBTYPES.IMAGE, DATA_SUBTYPES.VIDEO, DATA_SUBTYPES.AUDIO)
,DATA_TYPES.URL:()
,DATA_TYPES.SEQUENTIAL:(DATA_SUBTYPES.TEXT, DATA_SUBTYPES.ARRAY)
}
class KEYS:
X ='x'
Y ='y'
class ORDER_BY_KEYS:
COLUMN = 0
ASCENDING_VALUE = 1
class DATA_TYPES:
NUMERIC = 'Numeric'
DATE = 'Date'
CATEGORICAL = 'Categorical'
FILE_PATH = 'File Path'
URL = 'Url'
SEQUENTIAL = 'Sequential'
class DATA_TYPES_SUBTYPES:
subtypes = {
DATA_TYPES.NUMERIC: (DATA_SUBTYPES.INT, DATA_SUBTYPES.FLOAT, DATA_SUBTYPES.BINARY)
,DATA_TYPES.DATE:(DATA_SUBTYPES.DATE, DATA_SUBTYPES.TIMESTAMP)
,DATA_TYPES.CATEGORICAL:(DATA_SUBTYPES.SINGLE, DATA_SUBTYPES.MULTIPLE)
,DATA_TYPES.FILE_PATH:(DATA_SUBTYPES.IMAGE, DATA_SUBTYPES.VIDEO, DATA_SUBTYPES.AUDIO)
,DATA_TYPES.URL:()
,DATA_TYPES.SEQUENTIAL:(DATA_SUBTYPES.TEXT, DATA_SUBTYPES.ARRAY)
}
class KEYS:
X ='x'
Y ='y'
class ORDER_BY_KEYS:
COLUMN = 0
ASCENDING_VALUE = 1
PHASE_START = 0
PHASE_END = 1000
PHASE_DATA_EXTRACTOR = 1
class DATA_TYPES:
NUMERIC = 'Numeric'
DATE = 'Date'
CATEGORICAL = 'Categorical'
FILE_PATH = 'File Path'
URL = 'Url'
SEQUENTIAL = 'Sequential'
class DATA_TYPES_SUBTYPES:
subtypes = {
DATA_TYPES.NUMERIC: (DATA_SUBTYPES.INT, DATA_SUBTYPES.FLOAT, DATA_SUBTYPES.BINARY)
,DATA_TYPES.DATE:(DATA_SUBTYPES.DATE, DATA_SUBTYPES.TIMESTAMP)
,DATA_TYPES.CATEGORICAL:(DATA_SUBTYPES.SINGLE, DATA_SUBTYPES.MULTIPLE)
,DATA_TYPES.FILE_PATH:(DATA_SUBTYPES.IMAGE, DATA_SUBTYPES.VIDEO, DATA_SUBTYPES.AUDIO)
,DATA_TYPES.URL:()
,DATA_TYPES.SEQUENTIAL:(DATA_SUBTYPES.TEXT, DATA_SUBTYPES.ARRAY)
}
class ORDER_BY_KEYS:
COLUMN = 0
ASCENDING_VALUE = 1
MODEL_STATUS_TRAINED = "Trained"
MODEL_STATUS_PREPARING = "Preparing"
MODEL_STATUS_DATA_ANALYSIS = "Data Analysis"
MODEL_STATUS_TRAINING= "Training"
MODEL_STATUS_ANALYZING = "Analyzing"
MODEL_STATUS_ERROR = "Error"
MODEL_STATUS_DONE = "Done"
WORD_SEPARATORS = [',', "\t", ' ']
class DATA_TYPES:
NUMERIC = 'Numeric'
DATE = 'Date'
CATEGORICAL = 'Categorical'
FILE_PATH = 'File Path'
URL = 'Url'
SEQUENTIAL = 'Sequential'
class DATA_TYPES_SUBTYPES:
subtypes = {
DATA_TYPES.NUMERIC: (DATA_SUBTYPES.INT, DATA_SUBTYPES.FLOAT, DATA_SUBTYPES.BINARY)
,DATA_TYPES.DATE:(DATA_SUBTYPES.DATE, DATA_SUBTYPES.TIMESTAMP)
,DATA_TYPES.CATEGORICAL:(DATA_SUBTYPES.SINGLE, DATA_SUBTYPES.MULTIPLE)
,DATA_TYPES.FILE_PATH:(DATA_SUBTYPES.IMAGE, DATA_SUBTYPES.VIDEO, DATA_SUBTYPES.AUDIO)
,DATA_TYPES.URL:()
,DATA_TYPES.SEQUENTIAL:(DATA_SUBTYPES.TEXT, DATA_SUBTYPES.ARRAY)
}
class ORDER_BY_KEYS:
COLUMN = 0
ASCENDING_VALUE = 1
MODEL_STATUS_TRAINED = "Trained"
MODEL_STATUS_PREPARING = "Preparing"
MODEL_STATUS_DATA_ANALYSIS = "Data Analysis"
MODEL_STATUS_TRAINING= "Training"
MODEL_STATUS_ANALYZING = "Analyzing"
MODEL_STATUS_ERROR = "Error"
MODEL_STATUS_DONE = "Done"