Skip to content

On using the ColumnFeatures class in ecole.observation.NodeBipartiteObs #155

Answered by AntoinePrv
Arun0013 asked this question in Questions
Discussion options

You must be logged in to vote

Hello @Arun0013 ,

Yes, the ColumnFeatures is meant to be used the way you describe. It is an enumeration. If you never used enum before, you can think of it as a way to give a name to numbers.
So in this case, the number would be the axis1 index in the observation.column_features array, and the name would be the description of what that feature represent.

Example:
For observation, observation.column_features axis0 are the possible variables to branch on, and the axis1 some features of these variables.
The following gives us the name of all features and their index:

>> observation.column_features.__members__
{'objective': <ColumnFeatures.objective: 0>,
...
 'is_basis_zero': <ColumnFeatures.i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Arun0013
Comment options

Answer selected by Arun0013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants