Skip to main content

Utility to save data to cvs as an easy (and very basic) to read and use alternative to tensorboard

Project description

DataSaver

Utility to save data to cvs as an easy (and very basic) to read and use alternative to tensorboard.

Usage

from dataSaver import DataSaver

dataSaver = DataSaver('./somedir/filename/')

# creates a file in csv format, where the keys of the dictionary are the column names and the values of the first row are the values associated with each key  
dataSaver.add({
    'ephoch': 10,
    , 'iter': 200
    , 'learningRate': 0.0001,
    , 'loss': 10324
}

# The first call fixes the columns and only the keys that where present the first time add was called will be added
dataSaver.add({
    'ephoch': 10,
    , 'bananass': 10324
    , 'iter': 200
    , 'learningRate': 0.0001,
    , 'loss': 10324
    , 'bananass': 10324

})

# collect all data in an internal array dataSaver.cacheArray
dataSaver.cache({....})

# Save the data collected by cache to file and empty cache
dataSaver.dumpCache()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dataSaver, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size dataSaver-0.0.3-py3-none-any.whl (2.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size dataSaver-0.0.3.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page