scott-yj-yang / LatePenalty

Apply Late Penalty to Gradescope Submission to Canvas
https://scott-yj-yang.github.io/LatePenalty/
Apache License 2.0
0 stars 1 forks source link

Clean Up in the datahub account #10

Open scott-yj-yang opened 4 days ago

scott-yj-yang commented 4 days ago

Some modification has been made in the source code in the datahub of FA24 COGS108. Need to update that correspondingly to the package to make the changes persistent.

scott-yj-yang commented 4 days ago

Make changes in the followings:

# calculate late days, use ReLU
        slip_day_used = adjusted_late_time.apply(lambda x: np.max([np.ceil(x.total_seconds()/60/60/24), 0])).apply(lambda x: x if x <= 5 else 0) # cap the maximum at 5