-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
Added mean absolute error in linear regression #7003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added mean absolute error in linear regression #7003
Conversation
for more information, see https://pre-commit.ci
@@ -87,6 +87,19 @@ def run_linear_regression(data_x, data_y): | |||
return theta | |||
|
|||
|
|||
def mean_absolute_error(pred_X, org_X): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide more descriptive variable names and use snake_case
:param pred_X : contains the output (result vector) | ||
:param org_X : contains our dataset | ||
:return : mean absolute error computed from given feature's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as parameter names are more descriptive, the names should explain themselves
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cclauss Looks good - perhaps you commit my changes
Co-authored-by: Caeden Perelli-Harris <[email protected]>
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.