Node Functions
load_csv_fill
node datafill.load_csv_fill(
name: 'String',
file: 'Template',
timefmt: 'String',
columns: '(String, String)',
method: 'DataFillMethod' = Linear,
dtype: 'String' = "Floats"
)
Arguments
name: 'String'
=> Name of the timeseriesfile: 'Template'
=> Template of the CSV file for the nodestimefmt: 'String'
=> date time format, if you only have date, but have time on format string, it will paniccolumns: '(String, String)'
=> Names of date column and value columnmethod: 'DataFillMethod' = Linear
=> Method to use for data filling: forward/backward/lineardtype: 'String' = "Floats"
=> DataType to load into timeseries
datafill_experiment
node datafill.datafill_experiment(
name: 'String',
file: 'Template',
ratio_var: 'String',
columns: 'Option < (String, String) >',
experiments: 'usize' = 10,
samples: 'usize' = 100
)
Arguments
name: 'String'
=> Prefix for name of the series to save metrics onfile: 'Template'
=> Template of the CSV file for the nodesratio_var: 'String'
=> Variable to use for inputratio/outputratio methodscolumns: 'Option < (String, String) >'
=> Names of date column and value columnexperiments: 'usize' = 10
=> Number of experiements to runsamples: 'usize' = 100
=> Number of samples on each experiment
Network Functions
save_experiments_csv
network datafill.save_experiments_csv(
outfile: 'PathBuf',
attrs: 'Vec < String >',
prefix: 'String',
errors: 'Vec < String >',
filter: 'Option < Vec < bool > >'
)
Arguments
outfile: 'PathBuf'
=> Path to the output csvattrs: 'Vec < String >'
=> list of attributes to writeprefix: 'String'
=> Prefixerrors: 'Vec < String >'
=> list of errors to writefilter: 'Option < Vec < bool > >'
=>
Write the given nodes to csv with given attributes and experiment results