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

ImportError: cannot import name 'LogUniformSampler' #5

Closed
songyuzhou324 opened this issue Apr 16, 2018 · 4 comments
Closed

ImportError: cannot import name 'LogUniformSampler' #5

songyuzhou324 opened this issue Apr 16, 2018 · 4 comments

Comments

@songyuzhou324
Copy link

After running: 'python3 setup.py build_ext --inplace', I still got ImportError: cannot import name 'LogUniformSampler'. It seems that log_uniform module is not built correctly.

Any suggestion?

Thanks!

@rdspring1
Copy link
Owner

Did you add the log_uniform folder to your PYTHONPATH?

@songyuzhou324
Copy link
Author

Thanks for your reply! I have added log_uniform folder to my PYTHONPATH.

Another question is, if I have a folder named 'data' contains my own data, instead of downloading GBW data. What's the easiest way to run the code on my own data?

@rdspring1
Copy link
Owner

You would need to build a custom Dataset / Dataloader class for your dataset, that outputs inputs and labels for the language model task.

@miumiuUncle
Copy link

How did you solve this problem?thanks

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

3 participants