Skip to content

Getting unreasonably large values for the Khalil feature rows_neg_coefs_mean #356

@SelinBayramoglu

Description

@SelinBayramoglu

Hello,

When extracting Khalil2016 features for the attached instance, I get very large positive values for the rows_neg_coefs_mean feature (feature id: 14) such as 1.15292150e+18. As a result, rows_neg_coefs_stddev (feature id: 15) has values on the same order.

Describe the bug

instance_1.lp.txt

Setting

  • OS: Linux
  • Python version: 3.9.12
  • Ecole version: 0.8.1

To Reproduce

After renaming the instance file to "instance_1.lp", place it in your working directory and run the following script:
`import ecole
env = ecole.environment.Branching(observation_function=ecole.observation.Khalil2016())
env.seed(0)

filename = "instance_1.lp"

observation, action_set, _, done, _ = env.reset(filename)
while not done:
var_feats = observation.features
print(var_feats[:,14])
break`

Expected behavior

I expect negative values for rows_neg_coefs_mean of much smaller magnitude

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions