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

ValueError: negative dimensions are not allowed #1

Open
njuptlht opened this issue Mar 30, 2022 · 1 comment
Open

ValueError: negative dimensions are not allowed #1

njuptlht opened this issue Mar 30, 2022 · 1 comment

Comments

@njuptlht
Copy link

When I directly follow the instructions to run the ‘experiment.py’, I will report an error as follows:ValueError: negative dimensions are not allowed.Should I download the dataset first?

@arindambhattacharya
Copy link
Collaborator

If you're running experiment.py with the same parameters given in the example, you should not require to download any dataset. Make sure you're running it as:

python experiment.py --dataset himoon --epsilon 0.01 --dimension 100 --n_samples 100000 --n_dim 100000 --method pardfrocc --repetitions 1 --outfile himoon_results.csv

From the error you're getting, it seems like either --dimension or --n_dim is receiving negative value. Please check for typos. If the error persists, please post the traceback and environment information.

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

2 participants