Skip to content

Commit acb6f73

Browse files
committed
remove unused file and move Reputation class declaration
1 parent 3764b2b commit acb6f73

File tree

2 files changed

+7
-110
lines changed

2 files changed

+7
-110
lines changed

scoring/reputation.py

Lines changed: 0 additions & 103 deletions
This file was deleted.

utils/the_math/aggregations.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@ def compute_weighted_semi_standard_deviations(
119119
return np.sqrt(lower_semivariances), np.sqrt(upper_semivariances)
120120

121121

122-
@dataclass
123-
class Reputation:
124-
user_id: int
125-
value: float
126-
time: datetime
127-
128-
129122
class Weighting:
130123
def get_weights(self, forecast_set: ForecastSet) -> np.ndarray | None:
131124
"""Combine all weights multiplicatively"""
@@ -312,6 +305,13 @@ def get_range_values(
312305
return lowers, centers, uppers
313306

314307

308+
@dataclass
309+
class Reputation:
310+
user_id: int
311+
value: float
312+
time: datetime
313+
314+
315315
class ReputationWeighted(Weighting):
316316
reputations: dict[int, list[Reputation]]
317317
question: Question

0 commit comments

Comments
 (0)