Simple GUI with ipywidgets.
t = ZipUpload()
t.widget
t = ItemsPerPage(srt_index=1)
t.widget
t = PathSelector('')
display(t.button, t.dialog)
t = PathDownloads('', select_file=True)
display(t.button, t.dialog)
t = PathConfig('', select_file=True)
display(t.button, t.dialog)
t=GTDataSB()
t.widget
t=GTEstSB()
t.widget
class GTSimSB:
'Layout for Expert Similarity "Data" Section'
#Hints
txt = 'Get statistics on segmentation similarities <br>'
hints = w.HTML(txt)
grid = w.GridspecLayout(4, GRID_COLS, width='100%', grid_gap="0px", align_items='center')
#Labels
#grid[0, :] = w.Label('Simultaneous truth & performance level estimation')
grid[0, 0] = w.HTML("Inter Experts")
grid[1, 0] = w.HTML("GT vs Experts")
grid[2, :] = w.HTML('<hr>')
grid[3, 0] = w.Label('Downloads')
#Intercoder sim
inter = w.Button(description='Get statistics', layout=w.Layout(width='auto'),
tooltip='Calculate intercoder (inter-expert) agreement')
grid[0, 1:] = inter
#GT vs Experts
gt_exp = w.Button(description='Get statistics', layout=w.Layout(width='auto'),
tooltip='Calculate agreement between expert segmentation masks and estimated ground truth')
grid[1, 1:] = gt_exp
#Final Widget
widget = w.VBox([hints,grid])
def __init__(self, path=None):
path = path or Path('.')
self.down = PathDownloads(path, 'Select', tooltip='Click to download file or directory')
self.grid[3, 1:] = self.down.button
t=GTSimSB()
t.widget
t=GTEstUI()
t.sb_acc
t=TrainDataSB('')
t.widget
t=TrainModelSB()
t.widget
t=TrainValidSB()
t.widget
t = LRWidget()
t.widget.layout.display = "block"
t.widget
t=ParamWidget(config=Config(bs=8))
t.widget.layout.display = "block"
t.widget
t=MWWidget(config=Config())
t.widget.layout.display = "block"
t.widget
t=TrainUI('')
t.sb_acc
t=PredInputSB('')
t.widget
t=PredSB()
t.widget
t=PredUI('')
t.sb_acc
t = GUI()