question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selected runs are not logging media for the key: score per update, but instead are logging type

See original GitHub issue
  • Weights and Biases version: 0.9.5
  • Python version: 3.8.5
  • Operating System: Windows 10

Description

I was trying to log some values using wandb.log() but got one of the windows of my logs said this instead as shown in the attached file. error The other logs seems to work fine except the one of np.mean(total_score_per_update) error1

What I Did

            for self.step in range(0, num_steps):
                self.states[self.step] = next_state
                self.masks[self.step] = next_done
                # given a state agent selects an action
                with torch.no_grad():
                    next_state, reward, done, _ = self.select_make_action(self.states[self.step])
                    self.rewards[self.step] = reward
                    next_done = torch.Tensor(done).to(self.device)
                    next_state = torch.Tensor(next_state).to(self.device)
                if self.step == 0:
                    score = reward
                else:
                    score += reward
                total_score_per_update.append(score)
                score_avg.append(score)
                if len(score_avg) == score_threshold:
                    if np.mean(score_avg) > -0.5:
                        print("Environment is solved and achieved an average of {} for the last {} episodes"
                              .format(np.mean(score_avg), len(score_avg)))
                        end_time = time()
                        print("It took {} seconds to solve the environment"
                              .format(end_time - start_time))
                        break
            if len(score_avg) == score_threshold:
                if np.mean(score_avg) > -0.5:
                    break
            actor_loss, critic_loss = self.update_model(next_state)
            wandb.log({"actor loss": actor_loss, "critic loss": critic_loss,
                       "actor learning rate": actor_lr_now,
                       "critic learning rate": critic_lr_now, 
                       "score per update": np.mean(total_score_per_update)})

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

20reactions
vanpeltcommented, Aug 20, 2020

Hey @Kimonili, it looks like originally that chart got added as a “Media Panel” likely because it was logging an array. You can reset your workspace (by clicking this link) which will pickup the “score per update” chart, or manually add a new chart and choose “score per update” as the y-axis.

11reactions
issue-label-bot[bot]commented, Aug 18, 2020

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.84. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selected runs are not logging media for the key: score per ...
I was trying to log some values using wandb.log() but got one of the windows of my logs said this instead as shown...
Read more >
pretrained-VAE Workspace – Weights & Biases - WandB
Selected runs are not logging media for the key output, but instead are logging values of type string. If output is never supposed...
Read more >
Troubleshoot the Logging agent | Google Cloud
This page provides instructions for troubleshooting common issues found with installing or interacting with the Logging agent.
Read more >
15 Saving and printing output—log files - Stata
By default, the resulting log file contains what you type and what. Stata produces in response, recorded in a format called Stata Markup...
Read more >
Clean-Trace™ Hygiene Management Software User Manual
Or, to log in to the 3M Clean-Trace Hygiene Management Software using the same ... type Run in the search field, select Run,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found