Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mo3ad-S committed Nov 17, 2024
1 parent 6f43ec8 commit 89cd67e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions river/base/adpredictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,8 @@ def __init__(self, beta=0.1, prior_probability=0.5, epsilon=0.1, num_features=10
self.epsilon = epsilon
self.num_features = num_features
# Initialize weights as a defaultdict for each feature, with mean and variance attributes
#self.weights = defaultdict(lambda: {"mean": 0.0, "variance": 1.0})
# Initialize bias weight based on prior probability


self.weights = defaultdict(default_weight)
# Initialize bias weight based on prior probability
self.bias_weight = self.prior_bias_weight()

def prior_bias_weight(self):
Expand Down

0 comments on commit 89cd67e

Please sign in to comment.