コード例 #1
0
test_case_4 = A2.variance(x)
student_answers.append(test_case_4)

test_case_5 = A2.skewness(x)
student_answers.append(test_case_5)

test_case_6 = A2.kurtosis(x)
student_answers.append(test_case_6)

test_case_7 = A2.rmse(x, y)
student_answers.append(test_case_7)

test_case_8 = A2.mse(x, y)
student_answers.append(test_case_8)

test_case_9 = A2.mae(x, y)
student_answers.append(test_case_9)

test_case_10 = A2.nse(x, y)
student_answers.append(test_case_10)

test_case_11 = A2.pcc(x, y)
student_answers.append(test_case_11)

p = [1, 4, 5, 7, 7, 5, 4]
q = [5, 7, 2, 4, 8, 9, 1, 9]

test_case_10 = A2.mae(
    p, q)  # Invalid since length of p & q is not same. #Return 0
student_answers.append(test_case_10)
コード例 #2
0
test_case_4 = A2.variance(x)
student_answers.append(test_case_4)

test_case_5 = A2.skewness(x)
student_answers.append(test_case_5)

test_case_6 = A2.kurtosis(x)
student_answers.append(test_case_6)

test_case_7 = A2.rmse(x, y)
student_answers.append(test_case_7)

test_case_8 = A2.mse(x, y)
student_answers.append(test_case_8)

test_case_9 = A2.mae(x, y)
student_answers.append(test_case_9)

test_case_10 = A2.nse(x, y)
student_answers.append(test_case_10)

test_case_11 = A2.pcc(x, y)
student_answers.append(test_case_11)

p = [1, 4, 5, 7, 7, 5, 4]
q = [5, 7, 2, 4, 8, 9, 1, 9]

# Invalid since length of p & q is not same. #Return 0
test_case_12 = A2.mae(p, q)
student_answers.append(test_case_12)