Skip to content

Commit

Permalink
Added log level parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lim185 committed Jan 6, 2025
1 parent a48f78b commit 540757d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
# training parameters
BATCH_SIZE = params["batch_size"]
EPOCHS = params["epochs"]
LOG_LEVEL = params["log_level"]
del params

def trim(dataframe, column):
Expand Down Expand Up @@ -139,7 +140,7 @@ def main():
start = time.time()
model.fit(x=train_set[0], y=train_set[1],
validation_data=(validation_set[0], validation_set[1]),
batch_size=BATCH_SIZE, epochs=EPOCHS)
batch_size=BATCH_SIZE, epochs=EPOCHS, verbose=LOG_LEVEL)
end = time.time()
print("Training time: ", end - start)

Expand Down
3 changes: 2 additions & 1 deletion train_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
# training parameters
BATCH_SIZE = params["batch_size"]
EPOCHS = params["epochs"]
LOG_LEVEL = params["log_level"]
del params

def trim(dataframe, column):
Expand Down Expand Up @@ -127,7 +128,7 @@ def main():
start = time.time()
model.fit(x=train_set[0], y=train_set[1],
validation_data=(validation_set[0], validation_set[1]),
batch_size=BATCH_SIZE, epochs=EPOCHS)
batch_size=BATCH_SIZE, epochs=EPOCHS, verbose=LOG_LEVEL)
end = time.time()
print("Training time: ", end - start)

Expand Down

0 comments on commit 540757d

Please sign in to comment.