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

Tensor Dataset support #553

Closed
wants to merge 13 commits into from
Closed

Tensor Dataset support #553

wants to merge 13 commits into from

Conversation

Renkai
Copy link
Collaborator

@Renkai Renkai commented Feb 18, 2022

This patch solves
#539
and
#40

@Renkai Renkai marked this pull request as ready for review February 23, 2022 00:50
@Renkai Renkai marked this pull request as draft February 23, 2022 02:17

def data(self, batch_size):

arr = self.df[0]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

From current tests, there is always only one item in self.df, not sure if it's the designed condition.

Copy link
Collaborator

Choose a reason for hiding this comment

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

we could double and double the dataset, and then, log the size of the pandas udf input

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

this does not sound right. can we check batch size and etc. ?

@Renkai Renkai marked this pull request as ready for review February 23, 2022 03:19
@@ -0,0 +1,67 @@
# Copyright 2021 Rikai Authors
Copy link
Collaborator

Choose a reason for hiding this comment

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

2022?

data = data.batch(batch_size)
data = PandasDataset(
df, model.transform(), unpickle=is_udf, use_pil=True
).data(batch_size)
Copy link
Collaborator

Choose a reason for hiding this comment

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

.data => .batch?


__all__ = ["PandasDataset"]

from rikai.types import Image
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where is Image used?


def data(self, batch_size):

arr = self.df[0]
Copy link
Collaborator

Choose a reason for hiding this comment

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

this does not sound right. can we check batch size and etc. ?

@da-liii da-liii marked this pull request as draft March 10, 2022 03:53
@Renkai
Copy link
Collaborator Author

Renkai commented Mar 11, 2022

More complex than I thought, will create another branch to avoid noise during debugging.

@Renkai Renkai closed this Mar 11, 2022
@eddyxu eddyxu deleted the tensor_dataset_support branch June 2, 2022 17:00
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.

None yet

3 participants