-
Notifications
You must be signed in to change notification settings - Fork 83
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
Support arowdataset #142
Conversation
tests/active/dataset_test.py
Outdated
|
||
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 |
There was a problem hiding this comment.
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
tests/active/dataset_test.py
Outdated
@@ -29,6 +30,29 @@ def __getitem__(self, item): | |||
return (feature, item) | |||
|
|||
|
|||
class MyArrowDataset(): |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary:
changes the pool indexing to list to be able to support pyarrow datasets. fixes #141
Checklist:
tests/documentation_test.py
).