Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
YapWH1208 authored Jul 30, 2023
1 parent dda9781 commit ae5c236
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions WHMLT/metrics/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import metrics.Metrics
11 changes: 11 additions & 0 deletions WHMLT/metrics/metrics.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import numpy as np

class Metrics():
def __init__(self):
pass

def Mean_Squared_Error(y1,y2):
return np.mean(np.sum((y1-y2)**2))

def Mean_Absolute_Error(y1, y2):
return np.mean(np.sum(np.abs(y1-y2)))

0 comments on commit ae5c236

Please sign in to comment.