Skip to content

Commit

Permalink
Fix invalid variable reference in OASIS
Browse files Browse the repository at this point in the history
Don't refer to class member variable before it's initialized.
  • Loading branch information
ngmarchant committed Jun 4, 2021
1 parent c46c458 commit 7171711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oasis/oasis.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def __init__(self, alpha, predictions, scores, oracle, proba=False,
if prior_strength is None:
self.prior_strength = 2*self.strata.n_strata_
else:
self.prior_strength = verify_positive(float(self.prior_strength))
self.prior_strength = verify_positive(float(prior_strength))

# Instantiate Beta-Bernoulli model using probabilities averaged over
# opt_class
Expand Down

0 comments on commit 7171711

Please sign in to comment.