colda package

Subpackages

Submodules

colda.StopRequest module

class colda.StopRequest.StopRequest

Bases: object

stopAllTrainingTasks(task_id: str | None = None)
stopSingleTrainingTask(task_id: str)

colda.api module

Module contents

class colda.Colda

Bases: object

clean_db()
end_cooperation() None

End cooperation

Returns

None

fit(max_round: int, assistors: list, task_mode: Literal['classification', 'regression'], model_name: Literal['linear', 'decision_tree', 'svm', 'gradient_boosting', 'mlp'], metric_name: Literal['MAD', 'RMSE', 'R2', 'Accuracy', 'F1', 'AUCROC'], train_file_path: str, train_id_column: str, train_data_column: str, train_target_column: str, task_name: str | None = None, task_description: str | None = None) None

Sponsor initiate a new training task.

Parameters

max_round : int assistors : list task_mode : Task_Mode model_name : Model_Name metric_name : Metric_Name train_file_path : str train_id_column : str train_data_column : str train_target_column : str task_name : str=None task_description : str=None

Returns

None

get_algo_log()
get_all_algo_logs()
get_all_test_id()
get_all_test_id_as_assistor()
get_all_test_id_as_sponsor()
get_all_train_id()
get_all_train_id_as_assistor()
get_all_train_id_as_sponsor()
load(fileName: str = 'Colda', path: str = './', mode: str = 'pickle') None
login(username: str, password: str) bool

User login.

Parameters

username : str password : str

Returns

None

logout()

User logout.

Returns

None

predict(test_file_path: str, test_id_column: str, test_data_column: str, test_target_column: str, test_name: str | None = None, test_description: str | None = None) None

Sponsor call for test of a train task.

Parameters

train_id : str test_file_path : str test_id_column : str test_data_column : str test_target_column : str test_name : str=None test_description : str=None

Returns

None

register(username: str, email: str, password: str) None

User registers.

Parameters

username : str email : str password : str

Returns

None

save(fileName: str = 'Colda', path: str = 'D:\\GitHub\\ColAI\\colda\\package\\colda', mode: str = 'pickle') None
set_default_info(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

Set default info used for training and testing as assistor.

Parameters

default_mode : Mode default_task_mode : Task_Mode default_model_name : Model_Name default_file_path : str=None default_id_column : str=None default_data_column : str=None

Returns

None

set_test_stage_custom_handler(handler_type: str = 'fixedParameter', OwnFunction: dict[str, Callable] | None = None)
set_train_stage_custom_handler(handler_type: str = 'fixedParameter', OwnFunction: dict[str, Callable] | None = None)
start_cooperation() None

Start cooperation

Returns

None

test_function() str
test_network() str
colda.load(fileName: str = 'Colda', path: str = 'D:\\GitHub\\ColAI\\colda\\package\\colda', mode: str = 'pickle') None