ersa_utils.py
def read_tensorboard_csv(file, window_size=11, order=2):
    """
    Read a csv file saved by tensorboard, do savitzky smoothing
    :param file: full path to the csv file
    :param window_size: window size of savitzky
    :param order: order of savitzky
    :return: step and value
    """
    fields = ['Step', 'Value']
    df = pd.read_csv(file, skipinitialspace=True, usecols=fields)
    value = savitzky_golay(np.array(df['Value']), window_size, order)
    step = np.array(df['Step'])
    return step, value

    Read a csv file saved by tensorboard, do savitzky smoothing
    :param file: full path to the csv file
    :param window_size: window size of savitzky
    :param order: order of savitzky
    :return: step and value
    
Read a csv file saved by tensorboard, do savitzky smoothing
Read a csv file saved by tensorboard do savitzky smoothing
def read_tensorboard_csv(file, window_size=11, order=2):
    fields = ['Step', 'Value']
    df = pd.read_csv(file, skipinitialspace=True, usecols=fields)
    value = savitzky_golay(np.array(df['Value']), window_size, order)
    step = np.array(df['Step'])
    return step, value
def read_tensorboard_csv ( file , window_size = 11 , order = 2 ) : fields = [ 'Step' , 'Value' ] df = pd . read_csv ( file , skipinitialspace = True , usecols = fields ) value = savitzky_golay ( np . array ( df [ 'Value' ] ) , window_size , order ) step = np . array ( df [ 'Step' ] ) return step , value
Read a csv file saved by tensorboard, do savitzky smoothing
Read a csv file saved by tensorboard do savitzky smoothing
"""
    Read a csv file saved by tensorboard, do savitzky smoothing
    :param file: full path to the csv file
    :param window_size: window size of savitzky
    :param order: order of savitzky
    :return: step and value
    """
step and value
step and value
file
full path to the csv file
full path to the csv file
window_size
window size of savitzky
window size of savitzky
order
order of savitzky
order of savitzky