Closed mpescaru closed 3 months ago
Hi @meriablue thank you for raising a detailed issue clearly explaining the problem you're having.
I'm sorry the docs aren't more clear.
I think what's going on here is that I failed to update some of the language in that section of the tutorial after I changed the config file format.
Instead of writing dataset_path
in the [vak.eval]
table, you want to make a table [vak.eval.dataset]
(just like [vak.train.dataset]
), and copy the key-value pair path = "/some/path"
.
So instead of having
[vak.eval]
# ... other key-value pairs
dataset_path = "/Users/maria/Desktop/lab_work/tweetynet/gy6or6/032212-vak-frame-classification-dataset-generated-240710_105255"
you will want to make a table like this
[vak.eval.dataset]
path = "/Users/maria/Desktop/lab_work/tweetynet/gy6or6/032212-vak-frame-classification-dataset-generated-240710_105255"
In case it's not clear, you need to define the [vak.eval.dataset]
sub-table after the [vak.eval]
table, or else the TOML config parser will throw an error.
Can you please try that and let me know if it works?
If so, I will need to fix the example file (and change the language in that paragraph)
https://github.com/vocalpy/vak/blob/main/doc/toml/gy6or6_eval.toml
and specifically remove the comment that confused you.
There's a similar comment in the train config
https://github.com/vocalpy/vak/blob/f007f5c0f9e4a696479fc10962db82bec6d7cbe5/doc/toml/gy6or6_train.toml#L57
and in the predict config
https://github.com/vocalpy/vak/blob/f007f5c0f9e4a696479fc10962db82bec6d7cbe5/doc/toml/gy6or6_predict.toml#L60
I should probably just put temporary [vak.command.dataset]
tables in those files with temporary path = "/put/path/here"
key-value pairs so that people don't have to figure out where they go.
Thank you for your quick response! I tried this and the command works now.
Great, glad to hear it! Thank you for letting me know.
Let's please leave this issue open for now and I will make some fixes to close it ASAP.
Just updated this page of the docs + the config files that go with it to hopefully make the new config format clearer
Thank you again @meriablue for catching this
@all-contributors please add @meriablue for doc
@NickleDave
I've put up a pull request to add @meriablue! :tada:
Description I am currently trying to go thought the vak tutorial and have gone through vak prep and vak train. I have changed the parameters in the .toml files exactly as instructed in the tutorial. However i am getting the following error when I try to run % gy6or6_eval.toml :
This is my eval table in the configuration file:
I copied "dataset_path" from the train toml file:
Things I have tried: Changing the nam eof the parameter to path, csv_path, dataset. I always got the same error. Running vak eval without the dataset_path parameter, I instead got this error:
Desktop (please complete the following information):