trains/logger.py
def report_scatter3d(self, title, series, scatter, iteration, labels=None, mode='markers',
                         fill=False, comment=None):
        """
        Report a 3d scatter graph (with markers)

        :param title: Title (AKA metric)
        :type title: str
        :param series: Series (AKA variant)
        :type series: str
        :param scatter: A scattered data: list of (pairs of x,y,z) (or numpy array) or list of series [[(x1,y1,z1)...]]
        :type scatter: ndarray or list
        :param iteration: Iteration number
        :type iteration: int
        :param labels: label (text) per point in the scatter (in the same order)
        :param mode: scatter plot with 'lines'/'markers'/'lines+markers'
        :param fill: fill area under the curve
        :param comment: comment underneath the title
        """
        # check if multiple series
        multi_series = (
            isinstance(scatter, list)
            and (
                isinstance(scatter[0], np.ndarray)
                or (
                     scatter[0]
                     and isinstance(scatter[0], list)
                     and isinstance(scatter[0][0], list)
                )
            )
        )

        if not multi_series:
            if not isinstance(scatter, np.ndarray):
                if not isinstance(scatter, list):
                    scatter = list(scatter)
                scatter = np.array(scatter)
            try:
                scatter = scatter.astype(np.float32)
            except ValueError:
                pass

        # if task was not started, we have to start it
        self._start_task_if_needed()

        return self._task.reporter.report_3d_scatter(
            title=title,
            series=series,
            data=scatter,
            iter=iteration,
            labels=labels,
            mode=mode,
            fill=fill,
            comment=comment,
        )

        Report a 3d scatter graph (with markers)

        :param title: Title (AKA metric)
        :type title: str
        :param series: Series (AKA variant)
        :type series: str
        :param scatter: A scattered data: list of (pairs of x,y,z) (or numpy array) or list of series [[(x1,y1,z1)...]]
        :type scatter: ndarray or list
        :param iteration: Iteration number
        :type iteration: int
        :param labels: label (text) per point in the scatter (in the same order)
        :param mode: scatter plot with 'lines'/'markers'/'lines+markers'
        :param fill: fill area under the curve
        :param comment: comment underneath the title
        
Report a 3d scatter graph (with markers)
Report a 3d scatter graph ( with markers )
def report_scatter3d(self, title, series, scatter, iteration, labels=None, mode='markers',
                         fill=False, comment=None):
        multi_series = (
            isinstance(scatter, list)
            and (
                isinstance(scatter[0], np.ndarray)
                or (
                     scatter[0]
                     and isinstance(scatter[0], list)
                     and isinstance(scatter[0][0], list)
                )
            )
        )
        if not multi_series:
            if not isinstance(scatter, np.ndarray):
                if not isinstance(scatter, list):
                    scatter = list(scatter)
                scatter = np.array(scatter)
            try:
                scatter = scatter.astype(np.float32)
            except ValueError:
                pass
        self._start_task_if_needed()
        return self._task.reporter.report_3d_scatter(
            title=title,
            series=series,
            data=scatter,
            iter=iteration,
            labels=labels,
            mode=mode,
            fill=fill,
            comment=comment,
        )
def report_scatter3d ( self , title , series , scatter , iteration , labels = None , mode = 'markers' , fill = False , comment = None ) : multi_series = ( isinstance ( scatter , list ) and ( isinstance ( scatter [ 0 ] , np . ndarray ) or ( scatter [ 0 ] and isinstance ( scatter [ 0 ] , list ) and isinstance ( scatter [ 0 ] [ 0 ] , list ) ) ) ) if not multi_series : if not isinstance ( scatter , np . ndarray ) : if not isinstance ( scatter , list ) : scatter = list ( scatter ) scatter = np . array ( scatter ) try : scatter = scatter . astype ( np . float32 ) except ValueError : pass self . _start_task_if_needed ( ) return self . _task . reporter . report_3d_scatter ( title = title , series = series , data = scatter , iter = iteration , labels = labels , mode = mode , fill = fill , comment = comment , )
Report a 3d scatter graph (with markers)
Report a 3d scatter graph ( with markers )
"""
        Report a 3d scatter graph (with markers)

        :param title: Title (AKA metric)
        :type title: str
        :param series: Series (AKA variant)
        :type series: str
        :param scatter: A scattered data: list of (pairs of x,y,z) (or numpy array) or list of series [[(x1,y1,z1)...]]
        :type scatter: ndarray or list
        :param iteration: Iteration number
        :type iteration: int
        :param labels: label (text) per point in the scatter (in the same order)
        :param mode: scatter plot with 'lines'/'markers'/'lines+markers'
        :param fill: fill area under the curve
        :param comment: comment underneath the title
        """ # check if multiple series # if task was not started, we have to start it
self
title
Title (AKA metric)
Title ( AKA metric )
series
Series (AKA variant)
Series ( AKA variant )
scatter
A scattered data: list of (pairs of x,y,z) (or numpy array) or list of series [[(x1,y1,z1)...]]
A scattered data : list of ( pairs of x y z ) ( or numpy array ) or list of series [[ ( x1 y1 z1 ) ... ]]
iteration
None
labels
label (text) per point in the scatter (in the same order)
label ( text ) per point in the scatter ( in the same order )
mode
scatter plot with 'lines'/'markers'/'lines+markers'
scatter plot with ' lines ' / ' markers ' / ' lines + markers '
fill
fill area under the curve
fill area under the curve
comment
comment underneath the title
comment underneath the title