You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using MixedIntegerContext. In the design space I have categorical variables, float variables, and integer variables. I found that the sampled values for the categorical variables are actually the indicies to the categorical values instead of directly the categorical values. This is inconvenient and sometimes confusing (e.g., in my case I'm using integers as categorical values, so it took me some time to realize the sampled values are actually indicies). I think that this should be fixed to behave in the same way as for float variables and integer variables. Thank you.
The text was updated successfully, but these errors were encountered:
At the moment the values returned by sampling from MixedIntegerContext can be fed directly in surrogate set_training_values() method which was actually the original purpose of MixedIntegerContext.
I agree its documentation has fallen a bit behind since we introduce DesignSpace in SMT 2.0 which covers the handling of mixed integer variable now.
At the moment, you can retrieve actual values with: design_space.decode_values(sampling)
At the moment the values returned by sampling from MixedIntegerContext can be fed directly in surrogate set_training_values() method which was actually the original purpose of MixedIntegerContext.
I agree its documentation has fallen a bit behind since we introduce DesignSpace in SMT 2.0 which covers the handling of mixed integer variable now.
At the moment, you can retrieve actual values with: design_space.decode_values(sampling)
Sorry for the late reply, and thank you for your kind clarification. I now understand the issue.
In my case, I'm not doing surrogate modeling, and I only use the MixedIntegerContext to help handle mixed variables. I.e., what I need is just the samples. But it's great to hear that I can retrieve actual values with design_space.decode_values(sampling), which I wasn't aware of.
Thank you again, and please feel free to resolve this open issue if you see fit.
I'm using MixedIntegerContext. In the design space I have categorical variables, float variables, and integer variables. I found that the sampled values for the categorical variables are actually the indicies to the categorical values instead of directly the categorical values. This is inconvenient and sometimes confusing (e.g., in my case I'm using integers as categorical values, so it took me some time to realize the sampled values are actually indicies). I think that this should be fixed to behave in the same way as for float variables and integer variables. Thank you.
The text was updated successfully, but these errors were encountered: