Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and Wh1isper committed Aug 15, 2023
1 parent efc5f46 commit b67a680
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion sdgx/metrics/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
class base_metric:

pass
2 changes: 0 additions & 2 deletions sdgx/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

class BaseGeneratorModel:
def __init__(self, transformer=None, sampler=None) -> None:

# 以下几个变量都需要在初始化 model 时进行更改
self.model = None # 存放模型
self.status = "UNFINED"
Expand Down Expand Up @@ -32,7 +31,6 @@ def load_from_disk(self, model_path=""):
raise NotImplementedError

def dump_to_disk(self, output_path=""):

raise NotImplementedError

pass
2 changes: 0 additions & 2 deletions sdgx/models/single_table/ctgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ def __init__(
transformer=None,
sampler=None,
):

assert batch_size % 2 == 0

self._embedding_dim = embedding_dim
Expand Down Expand Up @@ -506,7 +505,6 @@ def fit(self, train_data, discrete_columns=(), epochs=None):
steps_per_epoch = max(len(train_data) // self._batch_size, 1)
for i in range(epochs):
for id_ in range(steps_per_epoch):

for n in range(self._discriminator_steps):
fakez = torch.normal(mean=mean, std=std)

Expand Down
2 changes: 0 additions & 2 deletions sdgx/utils/io/csv_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ def get_demo_single_table():

# 获取csv形式的单表数据
def get_single_table(input_path):

pass


# 自动检测函数,用于检测 discrete_cols
# 不一定最准确,但可以一定程度上方便使用
def auto_select_discrete_cols(pd_obj):

pass
1 change: 0 additions & 1 deletion sdgx/utils/io/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def __init__(
database_name,
database_type="mysql",
) -> None:

# 配置log路径
if not os.path.exists(sdg_log_dir):
os.makedirs(sdg_log_dir)
Expand Down

0 comments on commit b67a680

Please sign in to comment.