3 changed files with 17 additions and 3 deletions
@ -0,0 +1,14 @@ |
|||
from random import random |
|||
|
|||
import pandas as pd |
|||
|
|||
|
|||
from ..interfaces import Predictor |
|||
|
|||
|
|||
class NormalizedPredictor(Predictor): |
|||
def predict(self, data: pd.DataFrame) -> dict: |
|||
"""It's just random""" |
|||
df = data.iloc[-1] |
|||
df = df/df.sum() |
|||
return df.to_dict() |
Loading…
Reference in new issue