trains/logger.py
def report_scatter2d(self, title, series, scatter, iteration, xaxis=None, yaxis=None, labels=None,
                         mode='lines', comment=None):
        """
        Report a 2d scatter graph (with lines)

        :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) (or numpy array)
        :type scatter: ndarray or list
        :param iteration: Iteration number
        :type iteration: int
        :param xaxis: optional x-axis title
        :param yaxis: optional y-axis title
        :param labels: label (text) per point in the scatter (in the same order)
        :param mode: scatter plot with 'lines'/'markers'/'lines+markers'
        :type mode: str
        :param comment: comment underneath the title
        :type comment: str
        """

        if not isinstance(scatter, np.ndarray):
            if not isinstance(scatter, list):
                scatter = list(scatter)
            scatter = np.array(scatter)

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

        return self._task.reporter.report_2d_scatter(
            title=title,
            series=series,
            data=scatter.astype(np.float32),
            iter=iteration,
            mode=mode,
            xtitle=xaxis,
            ytitle=yaxis,
            labels=labels,
            comment=comment,
        )

        Report a 2d scatter graph (with lines)

        :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) (or numpy array)
        :type scatter: ndarray or list
        :param iteration: Iteration number
        :type iteration: int
        :param xaxis: optional x-axis title
        :param yaxis: optional y-axis title
        :param labels: label (text) per point in the scatter (in the same order)
        :param mode: scatter plot with 'lines'/'markers'/'lines+markers'
        :type mode: str
        :param comment: comment underneath the title
        :type comment: str
        
Report a 2d scatter graph (with lines)
Report a 2d scatter graph ( with lines )
def report_scatter2d(self, title, series, scatter, iteration, xaxis=None, yaxis=None, labels=None,
                         mode='lines', comment=None):
        if not isinstance(scatter, np.ndarray):
            if not isinstance(scatter, list):
                scatter = list(scatter)
            scatter = np.array(scatter)
        self._start_task_if_needed()
        return self._task.reporter.report_2d_scatter(
            title=title,
            series=series,
            data=scatter.astype(np.float32),
            iter=iteration,
            mode=mode,
            xtitle=xaxis,
            ytitle=yaxis,
            labels=labels,
            comment=comment,
        )
def report_scatter2d ( self , title , series , scatter , iteration , xaxis = None , yaxis = None , labels = None , mode = 'lines' , comment = None ) : if not isinstance ( scatter , np . ndarray ) : if not isinstance ( scatter , list ) : scatter = list ( scatter ) scatter = np . array ( scatter ) self . _start_task_if_needed ( ) return self . _task . reporter . report_2d_scatter ( title = title , series = series , data = scatter . astype ( np . float32 ) , iter = iteration , mode = mode , xtitle = xaxis , ytitle = yaxis , labels = labels , comment = comment , )
Report a 2d scatter graph (with lines)
Report a 2d scatter graph ( with lines )
"""
        Report a 2d scatter graph (with lines)

        :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) (or numpy array)
        :type scatter: ndarray or list
        :param iteration: Iteration number
        :type iteration: int
        :param xaxis: optional x-axis title
        :param yaxis: optional y-axis title
        :param labels: label (text) per point in the scatter (in the same order)
        :param mode: scatter plot with 'lines'/'markers'/'lines+markers'
        :type mode: str
        :param comment: comment underneath the title
        :type comment: str
        """ # 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) (or numpy array)
A scattered data : list of ( pairs of x y ) ( or numpy array )
iteration
None
xaxis
optional x-axis title
optional x - axis title
yaxis
optional y-axis title
optional y - axis title
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 '
comment
comment underneath the title
comment underneath the title