tbplot_widget
A widget displaying losses and a button to open TensorBoard in the browser.
TBPlotWidget
#
Bases: Container
A widget displaying losses and a button to open TensorBoard in the browser.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
min_width | int or None | Minimum width of the widget. | None |
min_height | int or None | Minimum height of the widget. | None |
max_width | int or None | Maximum width of the widget. | None |
max_height | int or None | Maximum height of the widget. | None |
train_signal | TrainingSignal or None | Signal containing training parameters. | None |
Source code in src/careamics_napari/widgets/tbplot_widget.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 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 |
|
__init__(min_width=None, min_height=None, max_width=None, max_height=None, train_signal=None)
#
Initialize the widget.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
min_width | int or None | Minimum width of the widget. | None |
min_height | int or None | Minimum height of the widget. | None |
max_width | int or None | Maximum width of the widget. | None |
max_height | int or None | Maximum height of the widget. | None |
train_signal | TrainingSignal or None | Signal containing training parameters. | None |
Source code in src/careamics_napari/widgets/tbplot_widget.py
__setitem__(key, value)
#
Ignore set item.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key | Any | Ignored. | required |
value | Any | Ignored. | required |
clear_plot()
#
open_tb()
#
Open TensorBoard in the browser.
Source code in src/careamics_napari/widgets/tbplot_widget.py
stop_tb()
#
Stop the TensorBoard process.
Currently not implemented.
update_plot(epoch, train_loss, val_loss)
#
Update the plot with new data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
epoch | int | Epoch number. | required |
train_loss | float | Training loss. | required |
val_loss | float | Validation loss. | required |