Skip to content

Commit

Permalink
Merge pull request #5 from hitsz-ids/sweep/add-base-class-for-metrics
Browse files Browse the repository at this point in the history
Add base class for metrics in metrics/base.py
  • Loading branch information
MooooCat committed Aug 17, 2023
2 parents 48dae40 + 9606642 commit 2c474f5
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions sdgx/metrics/base.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
class base_metric:
pass
from abc import ABC, abstractmethod


class BaseMetric(ABC):
def __init__(self, real_data, synthetic_data):
self.real_data = real_data
self.synthetic_data = synthetic_data

@abstractmethod
def calculate(self):
pass

def validate_datasets(self):
pass

0 comments on commit 2c474f5

Please sign in to comment.