Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Integer division results in no adaptation #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cdcapano
Copy link

When decay and kappa are calculated in _get_ladder_adjustment in (lines 180 and 181 in ensemble.py), a division with integers is performed. Since decay is always less than 1, this results in decay and kappa always being zero if you're not using python 3. The result is the betas are never changed.

This fixes that by importing division from future in ensemble.py.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant