Skip to content

Commit fbaa65c

Browse files
committed
chore: fixing mismatched datapoints and stricter min-max scaling compared to previous-attempt
1 parent 12d54d7 commit fbaa65c

8 files changed

Lines changed: 671 additions & 61 deletions

File tree

‎helper_notebook.ipynb‎

Lines changed: 279 additions & 55 deletions
Large diffs are not rendered by default.

‎main.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,11 @@ async def src(ctx):
309309
"please consider starring this project if you liked it: https://github.com/PranavU-Coder/bitsatards_bot"
310310
)
311311

312+
312313
@bot.command()
313314
async def web(ctx):
314-
await ctx.send(
315-
"the website: https://bitsat-predictor.com/"
316-
)
315+
await ctx.send("the website: https://bitsat-predictor.com/")
316+
317317

318318
@bot.command()
319319
async def time(ctx, flag: str = None, *, date_str: str = None):

‎models/model.pkl‎

-171 Bytes
Binary file not shown.

‎models/scaler.pkl‎

-20 Bytes
Binary file not shown.

‎plots/model_results.png‎

-870 Bytes
Loading

‎predictions.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ def predict_cutoffs(year, difficulty, reference_df, output_file="predictions.csv
2828
# I'm taking 0.2 -> best case, 0.5 -> most-likely and 0.8 -> worst case
2929

3030
# to manipulate
31-
coefficient_of_difficulty = 0.5
31+
coefficient_of_difficulty = 0.8
3232

3333
df = pd.read_csv("data/model_data/cutoff_2025.csv")
3434
predictions_2026 = predict_cutoffs(
3535
year=2026,
3636
difficulty=coefficient_of_difficulty,
3737
reference_df=df,
38-
output_file="predict/most_likely_case.csv",
38+
output_file="predict/worst_case.csv",
3939
)
4040
print(predictions_2026)
4141

42-
predictions_2026.to_csv("predict/most_likely_case.csv", index=False)
42+
predictions_2026.to_csv("predict/worst_case.csv", index=False)

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ requires-python = ">=3.14"
77
dependencies = [
88
"beautifulsoup4>=4.14.3",
99
"discord-py>=2.6.4",
10+
"ipykernel>=7.2.0",
1011
"lxml>=6.0.2",
1112
"matplotlib>=3.10.8",
1213
"numpy>=2.4.2",

‎uv.lock‎

Lines changed: 385 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)