How to create a line plot panel that weights metrics by a logged parameter?

Hi there,

I am logging training parameters for loss curves with WnB and the parameters of the experiment. Now a couple of my losses are weighted and I am logging the unweighted loss. Is there a way to create a line plot panel in the dashbaord where the metric will be weighted by the its weight parameter? The weight parameter is logged in the config parameters sections, under ‘Training’. So I am looking for a way to multiply the logged losses per step by _sections.Training.weight_param.

Thanks in advance!

Hi @nchaz , happy to help. You could try this one. When you go to Edit Panel>Expression Tab. See screenshot below:


Let us know if this helped or have further questions.

1 Like

Hi @joana-marie , thank you for your reply. Unfortunately it doesn’t seem to work for my parameters. While I can multiply the loss with an arbitrary number, when I write the parameter, it is not fetched. The parameter I am trying to use is under config._sections.Training.weight. So there are multiple subdictionaries. Also this parameter is different for each run. Can this be done?
For instance when I write the following on the expression textbox it is not working:
loss*${config:_sections.Training.weight}

Thank you for your assitance.

Hi @nchaz , is it possible to share your workspace link for us to check? Thanks!

Hi @nchaz , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!