def view_statistics(self, magic: bool = False): """ View statistics for infer pipeline in HTML. Args: magic (bool): Creates HTML page if False, else creates a notebook cell. """ uri = self.get_artifacts_uri_by_component( GDPComponent.DataStatistics.name)[0] view_statistics(uri, magic)
def view_statistics(self, magic: bool = False): """ View statistics for training pipeline in HTML. Args: magic (bool): Creates HTML page if False, else creates a notebook cell. """ logger.info( 'Viewing statistics. If magic=False then a new window will open ' 'up with a notebook for evaluation. If magic=True, then an ' 'attempt will be made to append to the current notebook.') uri = self.get_artifacts_uri_by_component( GDPComponent.SplitStatistics.name)[0] view_statistics(uri, magic)
def view_statistics(self): """View statistics of data flowing in pipeline.""" pipeline = self._get_one_pipeline() uri = pipeline.get_artifacts_uri_by_component( GDPComponent.DataStatistics.name)[0] view_statistics(uri)