Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Set fashion mnist inputs as configs #39

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions jobs/fashion_mnist_train/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@


def train(project: Optional[str], entity: Optional[str], **kwargs: Any):
run = wandb.init(project=project, entity=entity)
run = wandb.init(project=project, entity=entity, config={
"epochs": 10,
"learning_rate": 0.001,
"steps_per_epoch": 10,
})

# get config, could be set from sweep scheduler
train_config = run.config

# get training parameters from config
epochs = train_config.get("epochs", 10)
learning_rate = train_config.get("learning_rate", 0.001)
Expand Down Expand Up @@ -98,7 +101,6 @@ def train(project: Optional[str], entity: Optional[str], **kwargs: Any):
# Log plot
wandb.log({"prediction-chart": plt})


# Code from: https://www.geeksforgeeks.org/fashion-mnist-with-python-keras-and-deep-learning/
def model_arch():
"""Define the architecture of the model"""
Expand Down
Loading