Skip to content

Dataset to_csv method fails for non tabular data. #104

@jcorreia11

Description

@jcorreia11

When computing non-tabular features, like one-hot-encoding, the to_csv method in the Dataset class fails. I think this is the correct behavior as pandas can only save tabular data to CSV files.

However, I think we should support saving/loading other types of data.
In the case of one-hot-encodings a simple save/load with numpy should do the trick:

np.save('path...', dataset.X)

...

dataset.X = np.load('path...')

For other types of data other alternatives should be explored and implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions