Row 5769
Content Data
This page contains data entry 5769 from the Axioma AXP content repository. The structured data below represents the complete record for this entry.
Howdy! I'm trying to log my hyperparams to tensorboard.
During the epochs
for e in epochs: ... train_loss = train() val_loss = val() ... # tensorboard: log the running loss writer.add_scalar("train_loss", train_loss, e) writer.add_scalar("val_loss", val_loss, e) # tensorboard: log hyperparameters writer.add_hparams( hparam_dict={ "dataset": DS, "batch_size": BS, "model": MN "optimizer": "Adam", "learning_rate": LR, }, metric_dict={ "hparam/train_loss": train_loss, "hparam/loss": val_loss, }, global_step=e, )
Here, the scalars are added properly. But when I click on the Hparam tab on the top navbard of tensoboard, it says no Hparams data found. Not sure what I'm doing wrong?
What is the proper way to log hparams?
| Field | Value |
|---|---|
| text | Howdy! I'm trying to log my hyperparams to tensorboard. During the epochs for e in epochs: ... train_loss = train() val_loss = val() ... # tensorboard: log the running loss writer.add_scalar("train_loss", train_loss, e) writer.add_scalar("val_loss", val_loss, e) … |
| label | r/pytorch |
| dataType | post |
| communityName | r/pytorch |
| datetime | 2024-05-03 |
| username_encoded | Z0FBQUFBQm5LakwycklFZU9hQTI1UXlsRlN1dC1uZ2ZGWTNKV1FPUE9OSUN6RHFfR1M3ZkZ1dkY0bURTM0g3VTVhYzFOSGdXUlNVX1gwdTB6bTFzMU9CenVHV1hiVi1TeEE9PQ== |
| url_encoded | Z0FBQUFBQm5Lak9Hb21DUEJhUU13dUNRVVp2WG4zUGxjY29BTVBOVGlfTGwxc2EwTk0xQkhjTEtxb0cxeU9jWkp6ZnltdFloTkJ2YW9sUVVyMEg2RHVhcTV6b21uUndNT1JqZmpxT1l3bWZNeGpqbE9qY0VsY0ZLdy1mcXFFWllZSzB5eVF2S09SbUowcGpScXF6RFpuQnUyVjFqOWQ2MmNFVXlVeHJuQ05ac191TUJGQjViYVYyYk9uUGVuVko2Y0czUGtFUm5UUFBr |
Raw Record
{
"text": "Howdy! I'm trying to log my hyperparams to tensorboard.\n\nDuring the epochs\n\n for e in epochs:\n \t...\n \n \ttrain_loss = train()\n \tval_loss = val()\n \n \t...\n \n \t# tensorboard: log the running loss \n \twriter.add_scalar(\"train_loss\", train_loss, e)\n \twriter.add_scalar(\"val_loss\", val_loss, e) \n \t\t \n \t# tensorboard: log hyperparameters\n \twriter.add_hparams(\n \t hparam_dict={\n \t\t \"dataset\": DS,\n \t\t \"batch_size\": BS,\n \t\t \"model\": MN\n \t\t \"optimizer\": \"Adam\",\n \t\t \"learning_rate\": LR, \n \t }, \n \t metric_dict={ \n \t\t \"hparam/train_loss\": train_loss, \n \t\t \"hparam/loss\": val_loss, \n \t },\n \t global_step=e,\n \t)\n\nHere, the scalars are added properly. But when I click on the Hparam tab on the top navbard of tensoboard, it says no Hparams data found. Not sure what I'm doing wrong?\n\nWhat is the proper way to log hparams? ",
"label": "r/pytorch",
"dataType": "post",
"communityName": "r/pytorch",
"datetime": "2024-05-03",
"username_encoded": "Z0FBQUFBQm5LakwycklFZU9hQTI1UXlsRlN1dC1uZ2ZGWTNKV1FPUE9OSUN6RHFfR1M3ZkZ1dkY0bURTM0g3VTVhYzFOSGdXUlNVX1gwdTB6bTFzMU9CenVHV1hiVi1TeEE9PQ==",
"url_encoded": "Z0FBQUFBQm5Lak9Hb21DUEJhUU13dUNRVVp2WG4zUGxjY29BTVBOVGlfTGwxc2EwTk0xQkhjTEtxb0cxeU9jWkp6ZnltdFloTkJ2YW9sUVVyMEg2RHVhcTV6b21uUndNT1JqZmpxT1l3bWZNeGpqbE9qY0VsY0ZLdy1mcXFFWllZSzB5eVF2S09SbUowcGpScXF6RFpuQnUyVjFqOWQ2MmNFVXlVeHJuQ05ac191TUJGQjViYVYyYk9uUGVuVko2Y0czUGtFUm5UUFBr"
}
Entry Information
- Entry ID: 5769
- Repository: Axioma AXP
- Dataset: arrmlet/reddit_dataset_36
- Total Entries: 100,000