Numpy error #11

Closed
opened 2025-10-14 17:22:11 -06:00 by navan · 0 comments
Owner

Originally created by @agiani99 on 7/27/2020

HI all,
I tried with attached yaml to change target, source and filter.
I had in the meantime re-installed code (not the development branch though).
Got following errorTraceback (most recent call last):
File "illuminate.py", line 74, in
illumination(omegaconf.OmegaConf.load(configuration.configuration_file))(configuration.generations)
File "illuminate.py", line 27, in call
self.initial_population()
File "illuminate.py", line 39, in initial_population
molecules = dataframe['molecule'].sample(n=self.initial_size).tolist()
File "/usr/bin/anaconda3/envs/argenomic-stable/lib/python3.7/site-packages/pandas/core/generic.py", line 5061, in sample
locs = rs.choice(axis_length, size=n, replace=replace, p=weights)
File "mtrand.pyx", line 946, in numpy.random.mtrand.RandomState.choice
ValueError: Cannot take a larger sample than population when 'replace=False'

Apparently the code only works with given tests.
Btw pytest from README.md is missing in the release.
Best
Andrea

config_az.txt

*Originally created by @agiani99 on 7/27/2020* HI all, I tried with attached yaml to change target, source and filter. I had in the meantime re-installed code (not the development branch though). Got following errorTraceback (most recent call last): File "illuminate.py", line 74, in <module> illumination(omegaconf.OmegaConf.load(configuration.configuration_file))(configuration.generations) File "illuminate.py", line 27, in __call__ self.initial_population() File "illuminate.py", line 39, in initial_population molecules = dataframe['molecule'].sample(n=self.initial_size).tolist() File "/usr/bin/anaconda3/envs/argenomic-stable/lib/python3.7/site-packages/pandas/core/generic.py", line 5061, in sample locs = rs.choice(axis_length, size=n, replace=replace, p=weights) File "mtrand.pyx", line 946, in numpy.random.mtrand.RandomState.choice ValueError: Cannot take a larger sample than population when 'replace=False' Apparently the code only works with given tests. Btw pytest from README.md is missing in the release. Best Andrea [config_az.txt](https://github.com/Jonas-Verhellen/Argenomic/files/4980311/config_az.txt)
navan 2025-10-14 17:22:12 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/Argenomic#11
No description provided.