Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed bugs
Browse files Browse the repository at this point in the history
Mo3ad-S committed Nov 17, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
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
@@ -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):

0 comments on commit 89cd67e

Please sign in to comment.