You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to follow the dataset generation instructions to generate a train and validation set but I'm running into many name '<operator>' is not defined messages and a TypeError: 'Pool' object is not iterable at the end of the filtering.
Could you please tell me how to generate a validation set of size N_val and a filtered train set of size (N_train - N_val) and possibly provide an end-to-end one-click script to do so?
Logs:
create_datasets.sh
# Validation set
python3 scripts/data_creation/dataset_creation.py --number_of_equations 200 --no-debug
# Train set
python3 scripts/data_creation/dataset_creation.py --number_of_equations 10000 --no-debug
# Remove validation expressions from train set
python3 scripts/data_creation/filter_from_already_existing.py --data_path data/raw_datasets/200 --csv_path "None"
Output
$ ./create_datasets.sh
There are 6 equations per block. The progress bar will have this resolution
17%|████████████████████████████████▏ | 34/200 [00:00<00:00, 231.14it/s]
Expression generation took 0.262542724609375 seconds
There are 312 equations per block. The progress bar will have this resolution
0%|▌ | 33/10000 [00:03<17:02, 9.74it/s]
Expression generation took 3.5042946338653564 seconds
Loading metadata
Creating image for validation set
Starting finding out index of equations present in the validation set or wih numerical problems
0%| | 0/200 [00:00<?, ?it/s]name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'asin' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'asin' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'asin' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'asin' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'asin' is not defined
name 'ln' is not defined
name 'asin' is not defined
name 'asin' is not defined
name 'asin' is not defined
name 'asin' is not defined
name 'ln' is not defined
name 'asin' is not defined
name 'asin' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'Abs' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'asin' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
name 'ln' is not defined
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 200/200 [00:00<00:00, 494.10it/s]
Traceback (most recent call last):
File "scripts/data_creation/filter_from_already_existing.py", line 130, in <module>
main()
File "/home/psaegert/miniconda3/envs/nsrts/lib/python3.7/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/home/psaegert/miniconda3/envs/nsrts/lib/python3.7/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/psaegert/miniconda3/envs/nsrts/lib/python3.7/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/psaegert/miniconda3/envs/nsrts/lib/python3.7/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "scripts/data_creation/filter_from_already_existing.py", line 126, in main
print(f"Total number of good equations {len([x for x in p if x[1]])}")
TypeError: 'Pool' object is not iterable
Hi there,
I'm trying to follow the dataset generation instructions to generate a train and validation set but I'm running into many
name '<operator>' is not defined
messages and aTypeError: 'Pool' object is not iterable
at the end of the filtering.Could you please tell me how to generate a validation set of size N_val and a filtered train set of size (N_train - N_val) and possibly provide an end-to-end one-click script to do so?
Logs:
create_datasets.sh
Output
Environment
The text was updated successfully, but these errors were encountered: