Our generate function simply prints output to a .out file, but this is not ideal for using our outputs in downstream tasks. This PR adds functionality to write them out to a csv by specifiying a path in the yaml.
Thus:
a new parameter was set in the yaml (defaulting to none)
a new function was added to the generate.py
some imports were added
The function is only called if the yaml parameter is not none, and it will appends to a file (intentionally not writes) the time of addition, the name of the model type that generated it, and the outputs themselves. There are no headers to these CSVs.
Our generate function simply prints output to a .out file, but this is not ideal for using our outputs in downstream tasks. This PR adds functionality to write them out to a csv by specifiying a path in the yaml. Thus:
The function is only called if the yaml parameter is not none, and it will appends to a file (intentionally not writes) the time of addition, the name of the model type that generated it, and the outputs themselves. There are no headers to these CSVs.