colda.database.default_database package

Submodules

colda.database.default_database.api module

class colda.database.default_database.api.DefaultMetadataDatabase

Bases: BaseDatabase, AbstractMetadataDatabase

Store default setting. Ex. default path, default mode. Default setting is used by assistor.

Attributes

None

Methods

get_instance get_all_records store_record get_record

classmethod delete()
get_all_records_history() list[tuple[str]]

Return all records in this database

Returns

list[tuple[str]]

classmethod get_instance() type[database.default_database.default_metadata_database.DefaultMetadataDatabase]

Singleton pattern. Get instance of current class.

Returns

type[DefaultMetadataDatabase]

get_record(user_id: str) tuple[str]

Store default setting

Parameters

user_idstr

current user’s id

Returns

None

store_record(user_id: str, default_mode: Literal['auto', 'manual'], default_task_mode: Literal['classification', 'regression'], default_model_name: Literal['linear', 'decision_tree', 'svm', 'gradient_boosting', 'mlp'], default_file_path: str | None = None, default_id_column: str | None = None, default_data_column: str | None = None) None

Store default setting

Parameters

user_idstr

unique user id get from the token

default_modeDefault_Mode

Must in Default_Mode

default_task_modestr

Must in Default_Task_Mode

default_model_namestr

model_name. Ex. Decision Tree

default_file_pathstr=None

training data file path

default_id_columnstr=None

training data id column

default_data_columnstr=None

training data data column

Returns

None

colda.database.default_database.default_metadata_database module

class colda.database.default_database.default_metadata_database.DefaultMetadataDatabase

Bases: BaseDatabase, AbstractMetadataDatabase

Store default setting. Ex. default path, default mode. Default setting is used by assistor.

Attributes

None

Methods

get_instance get_all_records store_record get_record

classmethod delete()
get_all_records_history() list[tuple[str]]

Return all records in this database

Returns

list[tuple[str]]

classmethod get_instance() type[colda.database.default_database.default_metadata_database.DefaultMetadataDatabase]

Singleton pattern. Get instance of current class.

Returns

type[DefaultMetadataDatabase]

get_record(user_id: str) tuple[str]

Store default setting

Parameters

user_idstr

current user’s id

Returns

None

store_record(user_id: str, default_mode: Literal['auto', 'manual'], default_task_mode: Literal['classification', 'regression'], default_model_name: Literal['linear', 'decision_tree', 'svm', 'gradient_boosting', 'mlp'], default_file_path: str | None = None, default_id_column: str | None = None, default_data_column: str | None = None) None

Store default setting

Parameters

user_idstr

unique user id get from the token

default_modeDefault_Mode

Must in Default_Mode

default_task_modestr

Must in Default_Task_Mode

default_model_namestr

model_name. Ex. Decision Tree

default_file_pathstr=None

training data file path

default_id_columnstr=None

training data id column

default_data_columnstr=None

training data data column

Returns

None

Module contents