(
    op: "Ops.PlannedOperator",
    lale_num_grids: Optional[float] = None,
    lale_pgo: Optional[PGO] = None,
    data_schema: Dict[str, Any] = {},
)
return cs
Top level function: given a lale operator, returns a ConfigurationSpace for use with SMAC.

    Parameters
    ----------
    op : The lale PlannedOperator
    lale_num_grids: integer or float, optional
        if set to an integer => 1, it will determine how many parameter grids will be returned (at most)
        if set to an float between 0 and 1, it will determine what fraction should be returned
        note that setting it to 1 is treated as in integer.  To return all results, use None
Top level function: given a lale operator, returns a ConfigurationSpace for use with SMAC.
Top level function : given a lale operator returns a ConfigurationSpace for use with SMAC .
def get_smac_space(
    op: "Ops.PlannedOperator",
    lale_num_grids: Optional[float] = None,
    lale_pgo: Optional[PGO] = None,
    data_schema: Dict[str, Any] = {},
) -> ConfigurationSpace:
    """Top level function: given a lale operator, returns a ConfigurationSpace for use with SMAC.

    Parameters
    ----------
    op : The lale PlannedOperator
    lale_num_grids: integer or float, optional
        if set to an integer => 1, it will determine how many parameter grids will be returned (at most)
        if set to an float between 0 and 1, it will determine what fraction should be returned
        note that setting it to 1 is treated as in integer.  To return all results, use None
    """

    hp_grids = get_search_space_grids(
        op, num_grids=lale_num_grids, pgo=lale_pgo, data_schema=data_schema
    )
    cs = hp_grids_to_smac_cs(hp_grids)
    if should_print_search_space("true", "all", "backend", "smac"):
        name = op.name()
        if not name:
            name = "an operator"
        print(f"SMAC configuration for {name}:\n{str(cs)}")

    return cs
def get_smac_space ( op : "Ops.PlannedOperator" , lale_num_grids : Optional [ float ] = None , lale_pgo : Optional [ PGO ] = None , data_schema : Dict [ str , Any ] = { } , ) -> ConfigurationSpace : hp_grids = get_search_space_grids ( op , num_grids = lale_num_grids , pgo = lale_pgo , data_schema = data_schema ) cs = hp_grids_to_smac_cs ( hp_grids ) if should_print_search_space ( "true" , "all" , "backend" , "smac" ) : name = op . name ( ) if not name : name = "an operator" print ( f"SMAC configuration for {name}:\n{str(cs)}" ) return cs