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

Move to the python way to do sweeps #105

Open
manuel-delverme opened this issue Dec 12, 2021 · 0 comments
Open

Move to the python way to do sweeps #105

manuel-delverme opened this issue Dec 12, 2021 · 0 comments

Comments

@manuel-delverme
Copy link
Member

This will allow to support in-config configuration space definition and to stop using the retarded natural log scale in the sweep, log scale in the UI that wandb doesn't want to fix

import wandb

sweep_config = {
  "method": "bayes",
  "metric": {
    "name": "val_sharpe",
    "goal": "maximize"
  },
  "parameters": {
    "epochs": {
      "values": [1, 2]
    },
    "learning_rate": {
      "min": 0.001,
      "max": 0.01
    },
    "batch_size": {
      "values": [128, 256]
    }
  }
}

sweep_id = wandb.sweep(sweep_config, project='XXXX')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant