Skip to content

Commit 5c217a9

Browse files
authored
Merge branch 'dev' into docs
2 parents 77a6ae5 + 08d74a4 commit 5c217a9

File tree

5 files changed

+1
-6
lines changed

5 files changed

+1
-6
lines changed

autointent/modules/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def create_modules_dict(modules: list[type[T]]) -> dict[str, type[T]]:
4747
"RETRIEVAL_MODULES_MULTILABEL",
4848
"SCORING_MODULES_MULTICLASS",
4949
"SCORING_MODULES_MULTILABEL",
50+
"Module",
5051
"AdaptivePredictor",
5152
"ArgmaxPredictor",
5253
"DNNCScorer",

autointent/modules/prediction/adaptive.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class AdaptivePredictorDumpMetadata(TypedDict):
2828
:ivar tags: List of Tag objects for mutually exclusive classes.
2929
:ivar n_classes: Number of classes used during training.
3030
"""
31-
3231
r: float
3332
tags: list[Tag] | None
3433
n_classes: int
@@ -47,7 +46,6 @@ class AdaptivePredictor(PredictionModule):
4746
:ivar tags: List of Tag objects for mutually exclusive classes.
4847
:ivar name: Name of the predictor, defaults to "adaptive".
4948
"""
50-
5149
metadata_dict_name = "metadata.json"
5250
n_classes: int
5351
_r: float

autointent/modules/prediction/argmax.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@
1818

1919
class ArgmaxPredictorDumpMetadata(BaseMetadataDict):
2020
"""Argmax predictor metadata."""
21-
2221
n_classes: int
2322

2423

2524
class ArgmaxPredictor(PredictionModule):
2625
"""Argmax prediction module."""
27-
2826
name = "argmax"
2927
n_classes: int
3028

autointent/modules/prediction/jinoos.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ def fit(
7070
:param tags: Tags to fit
7171
"""
7272
# TODO: use dev split instead of test split.
73-
7473
multilabel = isinstance(labels[0], list)
7574
if multilabel:
7675
msg = "JinoosPredictor is compatible with single-label classification only"

autointent/modules/prediction/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Utility functions and custom exceptions for handling multilabel predictions and errors."""
2-
32
from typing import Any
43

54
import numpy as np

0 commit comments

Comments
 (0)