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

Resampling python-docs.jsonl but finally get nothing #6

Open
AylerH opened this issue Nov 5, 2021 · 0 comments
Open

Resampling python-docs.jsonl but finally get nothing #6

AylerH opened this issue Nov 5, 2021 · 0 comments

Comments

@AylerH
Copy link

AylerH commented Nov 5, 2021

Hi

I am trying to Resampling python-docs.jsonl from conala-mined and python-docs.jsonl,but finally get nothing.

Below is some experimental details that occur
(1)python retrieve.py --method topk --inp ../data/conala/conala-mined.jsonl:python-docs.jsonl --topk 6 --field snippet --temp 6 --out temp6.json

load 593891 from ../data/conala/conala-mined.jsonl
load 12958 from python-docs.jsonl
100% 606849/606849 [04:43<00:00, 2137.19it/s]
most commonly retrieved ids []
(2)python retrieve.py --method dist --inp ../data/conala/conala-mined.jsonl --topk 6 --field snippet --temp 6 --out temp6.json

load 593891 from ../data/conala/conala-mined.jsonl
return _wrapreduction(a, np.maximum, 'max', axis, None, out,
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation maximum which has no identity

I think the reason might be laid in elasticsearch that return nothing ,but I'm not sure about that.
I install elasticsearch by "pip install elasticsearch".
Looking forward to your answer!

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