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

Support arowdataset #142

Merged
merged 11 commits into from
Aug 12, 2021
Merged

Support arowdataset #142

merged 11 commits into from
Aug 12, 2021

Conversation

parmidaatg
Copy link
Collaborator

@parmidaatg parmidaatg commented Aug 11, 2021

Summary:

changes the pool indexing to list to be able to support pyarrow datasets. fixes #141

Checklist:

  • Your code is documented (To validate this, add your module to tests/documentation_test.py).
  • Your code is tested with unit tests.
  • You moved your Issue to the PR state.


import numpy as np
import pytest
import torch
from sklearn.datasets import load_iris
from torch.utils.data import Dataset
from torch.utils.data import Dataset as torchdata
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we often do import torch.utils.data as torchdata so this is confusing

@@ -29,6 +30,29 @@ def __getitem__(self, item):
return (feature, item)


class MyArrowDataset():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use a real ArrowDataset? Dataset.from_pandas or something.

parmida.atighehchian added 2 commits August 11, 2021 13:29
Copy link
Member

@Dref360 Dref360 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@parmidaatg parmidaatg merged commit 907c575 into master Aug 12, 2021
@parmidaatg parmidaatg deleted the support_arowdataset branch August 12, 2021 13:27
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

Successfully merging this pull request may close these issues.

Support ArrowDataset (for tabular data and nlp)
2 participants