When I run the 02_generate_dataset.py setcover code,it didn't work,and the interpreter tells that:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/home/user/anaconda3/envs/myenv/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/home/user/anaconda3/envs/myenv/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/home/user/PycharmProjects/learn2branch/02_generate_dataset.py", line 59, in send_orders
instance = rng.choice(instances)
File "mtrand.pyx", line 915, in numpy.random.mtrand.RandomState.choice
ValueError: 'a' cannot be empty unless no samples are taken
I am trying to replicate the Learning to Branch study. I chose the problem domain as setcover. In 02_generate_dataset.py, when debugging the program, I realized that scores[action_set] has nan values and scores[action_set].argmax() returns the index of an element in scores[action_set] with a nan value. My understanding is that action_set is the set of pseudocandidates (nonfixed variables) and scores[action_set] should not have any nan values. I'd appreciate any help with this. Thank you.