Skip to content

Commit

Permalink
Update argmax.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRaskind authored Nov 11, 2024
1 parent b16cbdf commit 840cc77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autointent/modules/prediction/argmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@

class ArgmaxPredictor(PredictionModule):
metadata = {} # noqa: RUF012
name = "argmax"

def __init__(self) -> None:
pass


@classmethod
def from_context(cls) -> Self:
def from_context(cls, context: Context) -> Self:
return cls()

def fit(
Expand Down

0 comments on commit 840cc77

Please sign in to comment.