def html_collapsible(self): css_id = np.random.randint(1000000000) elements = [ui.TitleWithCross('model', css_id)] elements += self._html_elements() return ui.CollapsibleColumn(elements, ui.ThumbnailField('model', css_id), css_id).html
def html_collapsible(self): css_id = np.random.randint(1000000000) elements = [ui.TitleWithCross('feature set', css_id)] elements += self._html_elements(include_features=False) return ui.CollapsibleColumn(elements, ui.ThumbnailField('feature set', css_id), css_id).html
def html_collapsible(self, name=None, style="", border=False, **kw): if name is None: name = repr(self) css_id = np.random.randint(1000000000) elements = [ui.TitleWithCross('feature constructor', css_id)] elements += self._html_elements() thumbnail = ui.ThumbnailField(name, css_id, style=style, **kw) return ui.CollapsibleColumn(elements, thumbnail, css_id, border=border).html
def html_collapsible(self, thumbnail=None, border=False): css_id = np.random.randint(1000000000) if thumbnail is None: thumbnail = ui.ThumbnailField(f"{self.id}", css_id) else: thumbnail.css_id = css_id elements = [ui.TitleWithCross('experiment', css_id)] elements += self._html_elements return ui.CollapsibleColumn(elements, thumbnail, css_id, outer=True, border=border).html