Skip to content

Commit

Permalink
Update transformers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Seanman519 authored Apr 1, 2024
1 parent 06863aa commit 4f933ed
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions rlbot/data/transformers.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
"""Transformers.
Transforms features by:
- scaling
- clipping
- normalization
"""
from __future__ import annotations

import _pickle as cPickle
Expand All @@ -21,9 +13,9 @@
from sklearn.preprocessing import PowerTransformer
from tqdm import tqdm

from rlbot.data.utils import get_feature_dir
from rlbot.data.utils import split_timeframe
from rlbot.utils.logging import get_logger
from releat.data.utils import get_feature_dir
from releat.data.utils import split_timeframe
from releat.utils.logging import get_logger

logger = get_logger(__name__)

Expand Down Expand Up @@ -452,7 +444,7 @@ def get_transform_params_for_one_feature_group(config, feat_group_ind):
lambda x: x.take_every(take_every_num).head(obs_len),
),
)
.filter(pl.col("group_ind" >= 0))
.filter(pl.col("group_ind") >= 0)
.with_columns(pl.lit(df_raw["time_msc"]).alias("time_msc"))
)
df = df.head(len(df) - int(obs_len * num * mult))
Expand Down

0 comments on commit 4f933ed

Please sign in to comment.