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

Document weight splitting in symbolic.optimal_weights() #6

Open
ketch opened this issue May 13, 2015 · 0 comments
Open

Document weight splitting in symbolic.optimal_weights() #6

ketch opened this issue May 13, 2015 · 0 comments

Comments

@ketch
Copy link

ketch commented May 13, 2015

Calling

f=symbolic.optimal_weights(k,(0.2,))
f[0]

gives

{'k': 3,
 'n': 1,
 (0, 0): (0.144615384615376, 0.0723076923076879),
 (0, 1): (0.152307692307692, 0.304615384615384),
 (0, 2): (2.16000000000000, 1.08000000000000)}

which was confusing to me, since each of the dictionary values should be a number, not a tuple. I only realized what was going on after inspecting the code; it automatically gives splittings when weights become negative. It would be nice to document this and show how the return values should be used.

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