Skip to content

Commit

Permalink
Fix test pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
s23lachg committed Nov 17, 2024
1 parent 54a94e3 commit 4a7bc49
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion river/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from __future__ import annotations

from . import tags, typing
from .adpredictor import AdPredictor
from .base import Base
from .classifier import Classifier, MiniBatchClassifier
from .clusterer import Clusterer
Expand All @@ -35,7 +36,6 @@
Transformer,
)
from .wrapper import Wrapper
from .adpredictor import AdPredictor

__all__ = [
"AdPredictor",
Expand Down
2 changes: 1 addition & 1 deletion river/base/adpredictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
def default_weight():
return {"mean": 0.0, "variance": 1.0}


class AdPredictor(Classifier):
"""AdPredictor, developed by Microsoft, is a machine learning algorithm designed to predict the probability of user
clicks on online advertisements. This algorithm plays a crucial role in computational advertising, where predicting
Expand Down Expand Up @@ -66,7 +67,6 @@ def train_and_test(model, data):

config = namedtuple("config", ["beta", "prior_probability", "epsilon", "num_features"])


def __init__(self, beta=0.1, prior_probability=0.5, epsilon=0.1, num_features=10):
# Initialization of model parameters
self.beta = beta
Expand Down
4 changes: 0 additions & 4 deletions river/linear_model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from .perceptron import Perceptron
from .softmax import SoftmaxRegression



__all__ = [
"base",
"ALMAClassifier",
Expand All @@ -23,6 +21,4 @@
"PARegressor",
"Perceptron",
"SoftmaxRegression",


]

0 comments on commit 4a7bc49

Please sign in to comment.