Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread Thread-1: #1

Open
piquepq opened this issue Oct 31, 2021 · 0 comments
Open

Exception in thread Thread-1: #1

piquepq opened this issue Oct 31, 2021 · 0 comments

Comments

@piquepq
Copy link

piquepq commented Oct 31, 2021

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

How to fix the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant