(param, meta)
return rs
we only keep parameters offered by SBT
we only keep parameters offered by SBT
we only keep parameters offered by SBT
def parse_parameter(param, meta):
    """
    we only keep parameters offered by SBT
    """
    tree_meta = meta.tree_meta
    num_classes = 1 if meta.task_type == consts.CLASSIFICATION and param.num_classes < 3 else param.num_classes
    objective = get_lgb_objective(meta.task_type, num_classes, PARA_OBJECTIVE, need_multi_format=False)
    rs = PARA_TEMPLATE.format(objective, meta.num_trees, meta.learning_rate, tree_meta.max_depth,
                              meta.quantile_meta.bin_num, meta.tree_meta.use_missing + 0,
                              meta.tree_meta.zero_as_missing + 0,
                              num_classes, tree_meta.criterion_meta.criterion_param[0],
                              tree_meta.criterion_meta.criterion_param[1],
                              tree_meta.min_leaf_node,
                              tree_meta.min_impurity_split
                              )
    return rs
def parse_parameter ( param , meta ) : tree_meta = meta . tree_meta num_classes = 1 if meta . task_type == consts . CLASSIFICATION and param . num_classes < 3 else param . num_classes objective = get_lgb_objective ( meta . task_type , num_classes , PARA_OBJECTIVE , need_multi_format = False ) rs = PARA_TEMPLATE . format ( objective , meta . num_trees , meta . learning_rate , tree_meta . max_depth , meta . quantile_meta . bin_num , meta . tree_meta . use_missing + 0 , meta . tree_meta . zero_as_missing + 0 , num_classes , tree_meta . criterion_meta . criterion_param [ 0 ] , tree_meta . criterion_meta . criterion_param [ 1 ] , tree_meta . min_leaf_node , tree_meta . min_impurity_split ) return rs