Notebook to Report Conversion
convert_to_wandb_report(filepath, wandb_project, wandb_entity, report_title='Untitled Report', description='', width='readable')
Convert an IPython Notebook to a Weights & Biases Report.
Usage:
nb2report \
--filepath Use_WandbMetricLogger_in_your_Keras_workflow.ipynb \
--wandb_project report-to-notebook \
--wandb_entity geekyrakshit \
--report_title "Use WandbMetricLogger in your Keras Workflow" \
--description "A guide to using the WandbMetricLogger callback in your Keras and TensorFlow training worflow" \
--width "readable"
from wandb_addons.report import convert_to_wandb_report
convert_to_wandb_report(
filepath="Use_WandbMetricLogger_in_your_Keras_workflow.ipynb",
wandb_project="report-to-notebook",
wandb_entity="geekyrakshit",
report_title="Use WandbMetricLogger in your Keras Workflow",
description="A guide to using the WandbMetricLogger callback in your Keras and TensorFlow training worflow",
width="readable"
)
Note
In order to include panel grids with runsets and line plots in your report, you need to include YAML metadata regarding the runsets and line plots you want to include in a panel grid in a markdown cell of your notebook in the following format:
---
panelgrid:
runsets:
- project: report-to-notebook
entity: geekyrakshit
name: Training-Logs
lineplots:
- x: batch/batch_step
y: batch/accuracy
- x: batch/batch_step
y: batch/learning_rate
- x: batch/batch_step
y: batch/loss
- x: batch/batch_step
y: batch/top@5_accuracy
- x: epoch/epoch
y: epoch/accuracy
- x: epoch/epoch
y: epoch/learning_rate
- x: epoch/epoch
y: epoch/loss
- x: epoch/epoch
y: epoch/top@5_accuracy
- x: epoch/epoch
y: epoch/val_accuracy
- x: epoch/epoch
y: epoch/val_loss
- x: epoch/epoch
y: epoch/val_top@5_accuracy
---
Currently only line plots are supported inside panel grids.
Converting using CLI
Convert an IPython notebook to a Weights & Biases report using the nb2report
CLI:
Usage: nb2report [OPTIONS]
Options:
--filepath TEXT Path to an IPython notebook
--wandb_project TEXT The name of the Weights & Biases project where you're
creating the project
--wandb_entity TEXT The name of the Weights & Biases entity (username or
team name)
--report_title TEXT The title of the report
--description TEXT The description of the report
--width TEXT Width of the report, one of `'readable'`, `'fixed'`,
or `'fluid'`
--help Show this message and exit.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filepath |
str
|
Path to an IPython notebook. |
required |
wandb_project |
str
|
The name of the Weights & Biases project where you're creating the project. |
required |
wandb_entity |
str
|
The name of the Weights & Biases entity (username or team name). |
required |
report_title |
Optional[str]
|
The title of the report. |
'Untitled Report'
|
description |
Optional[str]
|
The description of the report. |
''
|
width |
Optional[str]
|
Width of the report, one of |
'readable'
|
Source code in wandb_addons/report/notebook_convert.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
|