ccsf-math-108 / materials-fa23

Fall 2023 student course materials for MATH 108 Foundations of Data Science at CCSF
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Lab 07 Task 07 #38

Closed shawnwiggins closed 10 months ago

shawnwiggins commented 11 months ago

Issue

Some people are getting the value 1.9047619047619035 for one_statistic. When the auto-grader runs, the last test fails and shows:

task_07 - 6 result:
    ❌ Test case failed
    Trying:
        round(one_statistic, 2)
    Expecting:
        1.9
    **********************************************************************
    Line 2, in task_07 5
    Failed example:
        round(one_statistic, 2)
    Expected:
        1.9
    Got:
        1.8999999999999999

round(1.9047619047619035, 2) produces 1.9, so there shouldn't be a problem with the auto-grader.

Temporary Solution

As a student, ignore this issue with the task07 - 6 auto-grader.

shawnwiggins commented 11 months ago

The issue seems to be with how students define the statistic function in Task 05. In Task 05, using np.abs causes this error, but using abs does not cause the error.

shawnwiggins commented 11 months ago

Steps

shawnwiggins commented 11 months ago

Update

The issue should be fixed. If you re-open the lab from the link in Canvas, the updated auto-grader should be available that accepts both solutions from Task 05.

I'll leave this issue open for reference until the lab deadline.