def render_time_series(data: List[Dict[Text, Union[Dict[Union[float, Text], Any], Text]]], config: Dict[Text, bool]) -> None: """Renders the time series view in Colab. Args: data: A list of dictionary containing metrics for different evaluation runs. config: A dictionary of the configuration. """ util.render_tfma_component( 'tfma-nb-time-series', data, config, trusted_html_for_vulcanized_tfma_js=get_trusted_html_for_vulcanized_js( ))
def render_plot( data: Dict[Text, List[Union[Text, float, List[float]]]], config: Dict[Text, Union[Dict[Text, Dict[Text, Text]], Text]]) -> None: """Renders the plot view in Colab. Args: data: A dictionary containing plot data. config: A dictionary of the configuration. """ util.render_tfma_component( 'tfma-nb-plot', data, config, trusted_html_for_vulcanized_tfma_js=get_trusted_html_for_vulcanized_js( ))
def render_slicing_metrics( data: List[Dict[Text, Union[Dict[Text, Any], Text]]], config: Dict[Text, Text], event_handlers: Optional[Callable[[Dict[Text, Union[Text, float]]], None]] = None ) -> None: """Renders the slicing metrics view in Colab. Args: data: A list of dictionary containing metrics for correpsonding slices. config: A dictionary of the configuration. event_handlers: event handlers """ util.render_tfma_component( 'tfma-nb-slicing-metrics', data, config, event_handlers=event_handlers, trusted_html_for_vulcanized_tfma_js=get_trusted_html_for_vulcanized_js( ))