Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving and loading example sets #1

Closed
Lasitha86 opened this issue Jun 2, 2021 · 1 comment
Closed

Saving and loading example sets #1

Lasitha86 opened this issue Jun 2, 2021 · 1 comment

Comments

@Lasitha86
Copy link

Saving and loading example sets do not work for windowed examples:

e_type = ExampleType.WINDOWED_EXAMPLE

        # These parameters will be passed to the Example objects upon construction, e.g., all example will have the same
        # window.
        e_kw = {"start": -1536, "n_samples": 7681}
        ev = WindowedExampleValidator()
        ds = DataSet(label_files=label_files, e_type=e_type, example_validator=ev, example_kwargs=e_kw)

        # ds = DataSet(label_files=label_files)
        ds.produce_example_set()
        ds.save_example_set_csv(example_set_path)

    ds = DataSet()
    ds.load_example_set_csv(example_set_path)
@apcarp
Copy link
Collaborator

apcarp commented Jun 10, 2021

This problem is now fixed in v1.0.2. The ds.load_example_set_csv method accepts e_type and example_kwargs arguments, and the new save files include informational headers that a user may inspect to when deciding which e_type and example_kwargs values should be supplied.

@apcarp apcarp closed this as completed Jun 10, 2021
@apcarp apcarp pinned this issue Jun 10, 2021
@apcarp apcarp unpinned this issue Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants