Skip to content

Bug in Evaluation: save_path expects a "." #99

@randomn4me

Description

@randomn4me

Hi,

the function evaluate_multiple_datasets expects the save_path to be splittable via a ..

Specifically the following line throws an error if this is not the case

save_path.split(".")[1])

I can create a PR but first I need to know what the code should do. Either it assumes a . (as is the case currently) then I would add it to the documentation and add an assert. Otherwise (which I think is the more generous approach) I would not assume the extension and just add it, i.e., with a given save_path = "intermediate_result" then I would change the inner_save_path to

inner_save_path = None if not save_intermediate_results else "{0}_{1}.csv".format(save_path.split(".")[0],
                                                                                  eval_data.name

And clarify the documentation to something like the string, that is prepended to the intermediate save paths (something like that).

In either way, I would add, that the save path should be a string multiple files are going to be generated prepended by that string. I suspected it to be a directory.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions