Skip to content

Commit

Permalink
adding extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Sep 7, 2024
1 parent 8f614cb commit 1ca6d1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ async def train(secret: str):
hiscore_data = await req.get_hiscore_data(label_id=label["id"])
hiscores.extend(hiscore_data)

logger.info(f"{label=}, {len(players)=}, {len(hiscores)=}")

# parse hiscoreData
hiscoredata = data.hiscoreData(hiscores)
del hiscores
Expand Down Expand Up @@ -186,8 +188,8 @@ async def train(secret: str):

# merge features with target
features_labeled = features.merge(player_data, left_index=True, right_index=True)

print(pd.DataFrame(features_labeled.iloc[:, -1].value_counts()))

# Count occurrences of each category in the target column
target_counts = features_labeled["target"].value_counts()

Expand Down

0 comments on commit 1ca6d1a

Please sign in to comment.