(self, id_train, id_validate, id_test, all_metas)
return all_metas
Tool to callback returned data count & ratio information
        Parameters
        ----------
        id_train: list, id of data set
        id_validate: list, id of data set
        id_test: list, id of data set
        all_metas: dict, all meta info

        Returns
        -------
        None
Tool to callback returned data count & ratio information
        Parameters
        ----------
        id_train: list, id of data set
        id_validate: list, id of data set
        id_test: list, id of data set
        all_metas: dict, all meta info
Tool to callback returned data count & ratio information Parameters ---------- id_train : list id of data set id_validate : list id of data set id_test : list id of data set all_metas : dict all meta info
def callback_count_info(self, id_train, id_validate, id_test, all_metas):
        """
        Tool to callback returned data count & ratio information
        Parameters
        ----------
        id_train: list, id of data set
        id_validate: list, id of data set
        id_test: list, id of data set
        all_metas: dict, all meta info

        Returns
        -------
        None
        """
        metas = {}

        train_count = len(id_train)
        metas["train"] = train_count

        validate_count = len(id_validate)
        metas["validate"] = validate_count

        test_count = len(id_test)
        metas["test"] = test_count

        original_count = train_count + validate_count + test_count
        metas["original"] = original_count

        metric_name = f"{self.metric_name}_count_info"
        all_metas[metric_name] = metas

        metas = {}

        train_ratio = train_count / original_count
        validate_ratio = validate_count / original_count
        test_ratio = test_count / original_count

        metas["train"] = round(train_ratio, ROUND_NUM)
        metas["validate"] = round(validate_ratio, ROUND_NUM)
        metas["test"] = round(test_ratio, ROUND_NUM)

        metric_name = f"{self.metric_name}_ratio_info"
        all_metas[metric_name] = metas

        # stratified
        all_metas["stratified"] = self.stratified

        return all_metas
def callback_count_info ( self , id_train , id_validate , id_test , all_metas ) : metas = { } train_count = len ( id_train ) metas [ "train" ] = train_count validate_count = len ( id_validate ) metas [ "validate" ] = validate_count test_count = len ( id_test ) metas [ "test" ] = test_count original_count = train_count + validate_count + test_count metas [ "original" ] = original_count metric_name = f"{self.metric_name}_count_info" all_metas [ metric_name ] = metas metas = { } train_ratio = train_count / original_count validate_ratio = validate_count / original_count test_ratio = test_count / original_count metas [ "train" ] = round ( train_ratio , ROUND_NUM ) metas [ "validate" ] = round ( validate_ratio , ROUND_NUM ) metas [ "test" ] = round ( test_ratio , ROUND_NUM ) metric_name = f"{self.metric_name}_ratio_info" all_metas [ metric_name ] = metas # stratified all_metas [ "stratified" ] = self . stratified return all_metas