Skip to content

Commit

Permalink
metrics.py comments bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyubobobo committed Mar 12, 2018
1 parent cc098f4 commit 8ce0662
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""

return np.sum(np.absolute(y_true - y_predict)) / len(y_true)
2 changes: 1 addition & 1 deletion 05-Linear-Regression/06-R-Squared/playML/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""
assert len(y_true) == len(y_predict), \
"the size of y_true must be equal to the size of y_predict"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""
assert len(y_true) == len(y_predict), \
"the size of y_true must be equal to the size of y_predict"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""
assert len(y_true) == len(y_predict), \
"the size of y_true must be equal to the size of y_predict"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""
assert len(y_true) == len(y_predict), \
"the size of y_true must be equal to the size of y_predict"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""
assert len(y_true) == len(y_predict), \
"the size of y_true must be equal to the size of y_predict"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""
assert len(y_true) == len(y_predict), \
"the size of y_true must be equal to the size of y_predict"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""
assert len(y_true) == len(y_predict), \
"the size of y_true must be equal to the size of y_predict"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""
assert len(y_true) == len(y_predict), \
"the size of y_true must be equal to the size of y_predict"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""
assert len(y_true) == len(y_predict), \
"the size of y_true must be equal to the size of y_predict"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""
assert len(y_true) == len(y_predict), \
"the size of y_true must be equal to the size of y_predict"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def root_mean_squared_error(y_true, y_predict):


def mean_absolute_error(y_true, y_predict):
"""计算y_true和y_predict之间的RMSE"""
"""计算y_true和y_predict之间的MAE"""
assert len(y_true) == len(y_predict), \
"the size of y_true must be equal to the size of y_predict"

Expand Down

0 comments on commit 8ce0662

Please sign in to comment.