Skip to content

Changing a Range Parameter To Fixed #383

Description

@kjanoudi

At some point during my experiment, some of my integer parameters that were originally Range params converge to a single value. At that point, instead of trimming the range to two values, I create a new search space, replace those parameters in the search space with a single FixedParameter, then set the search space on the experiment. However, i then begin receiving this error:

I'm curious why this happens. Here is an example:

My parameter, "source" converged to 3 and was replaced by a FixedParameter.

The params in the function are:

obsf.parameters: {'source': 2} 
self.fixed_parameters: { 'source': FixedParameter(name='source', parameter_type=INT, value=3)}

The error is:

Fixed parameter source with out of design value: 2 passed to RemoveFixed.

My only guess is that it is still generating values for the Fixed parameters because they used to be RangeParams, and the old experiment is being loaded from the database as a RangeParam.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfixreadyFix has landed on master.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions