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

statistics.py wrong parameter name #562

Closed
uduse opened this issue Feb 5, 2022 · 0 comments · Fixed by #563
Closed

statistics.py wrong parameter name #562

uduse opened this issue Feb 5, 2022 · 0 comments · Fixed by #563
Assignees
Labels
Bug Something isn't working

Comments

@uduse
Copy link
Contributor

uduse commented Feb 5, 2022

🐛 Bug

The functions here says they take iterable as inputs. However, np.asarray actually take array_like.

Quote:

Input data, in any form that can be converted to an array. This includes lists, lists of tuples, tuples, tuples of tuples, tuples of lists and ndarrays.

e.g.

geometric_mean(i for i in range(10))

This will fail because though it's an iterable, it's not an array_like.

@uduse uduse added the Bug Something isn't working label Feb 5, 2022
uduse added a commit to uduse/CompilerGym that referenced this issue Feb 5, 2022
ChrisCummins pushed a commit to ChrisCummins/CompilerGym that referenced this issue Feb 17, 2022
@ChrisCummins ChrisCummins self-assigned this Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants