Skip to content

Not using all instances? #1204

Open
Open
@ketildanielsen

Description

@ketildanielsen

After 5000 of n_trials=20000, it has used only 3 of the 18 instances provided. My "scenario.json" confirms all 18 are in the "instances" part, each having 3 features in the "instance_features" part.

Everything else seems to run very well, but I want SMAC to expose the target algorithm to all 18 instances!

Any parameter I should use? Appreciate any advice. The code is a modification of one of the examples:

if __name__ == "__main__":
    model = MySearch ()
    scenario = Scenario(model.configspace,
        deterministic=False,  
        instances=instance_filenames,   # list of 18 file names 
        instance_features=instance_features,   # dict 18 items, each a list of 3 integer features
        seed=-1, 
        n_workers=20, 
        n_trials=20000)

    intensifier = HyperparameterOptimizationFacade.get_intensifier(
        scenario,
        max_config_calls=1,  # We basically use one seed per config only
    )

    smac = HyperparameterOptimizationFacade(
        scenario,
        model.train,
        intensifier=None, 
        overwrite=True,
        logging_level=20,
    )

    incumbent = smac.optimize()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions