Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
ML725
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
SHREYANSH JAIN
ML725
Commits
4948f373
Commit
4948f373
authored
Sep 13, 2019
by
SHREYANSH JAIN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected absolute error
parent
f7409d2a
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19392 additions
and
19396 deletions
+19392
-19396
Assignment1/data/plot1/mae.log
Assignment1/data/plot1/mae.log
+8000
-8000
Assignment1/error.log
Assignment1/error.log
+8000
-8000
Assignment1/main.py
Assignment1/main.py
+3
-7
Assignment1/prediction.csv
Assignment1/prediction.csv
+3389
-3389
No files found.
Assignment1/data/plot1/mae.log
View file @
4948f373
This diff is collapsed.
Click to expand it.
Assignment1/error.log
View file @
4948f373
This diff is collapsed.
Click to expand it.
Assignment1/main.py
View file @
4948f373
...
...
@@ -37,13 +37,9 @@ def mean_absolute_gradient(xdata, ydata, weights):
guess
=
np
.
dot
(
xdata
,
weights
)
samples
=
np
.
shape
(
guess
)[
0
]
if
np
.
sum
(
ydata
-
guess
)
<
0
:
gradient
=
xdata
.
sum
(
axis
=
0
)
/
samples
else
:
gradient
=
-
xdata
.
sum
(
axis
=
0
)
/
samples
return
gradient
.
T
signInfo
=
np
.
sign
(
guess
-
ydata
)
gradient
=
np
.
dot
(
xdata
.
T
,
signInfo
)
/
samples
return
gradient
raise
NotImplementedError
def
mean_log_cosh_loss
(
xdata
,
ydata
,
weights
):
...
...
Assignment1/prediction.csv
View file @
4948f373
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment