Draft: Snoop: handle csv files
Context
This MR modifies Snoop so that a csv file can be passed as an argument for the inference process.
Manually testing the MR
- Create an arbitrary csv file with any number (>= 1) of columns. The last column is the output, and the other ones will be the input. The first row must contain labels for each column. Populate the other rows with floating point numbers.
- Modify the file
lib_benchmark/csv_benchmark.ml
so that it handles your csv file: change the workload type, and modify themodels
list as wanted. - compile
- run
./tezos-snoop infer parameters for model <model_name> on data <data.csv> using lasso --lasso-positive --plot
.
Make sure all python dependencies are installed. You can use poetry run
. The other usual options can be used here
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rst
for the protocol and the environment,CHANGES.rst
at the root of the repository for everything else). -
Select suitable reviewers using the Reviewers
field below. -
Select as Assignee
the next person who should take action on that MR
Edited by Lucas Randazzo