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

Adding support for openml datasets #429

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

qychen2001
Copy link

There are a large number of datasets available in openml, and this PR adds support for the openml dataset, enabling the integration of openml and torch_frame. The dataset used can be specified using dataset_id.

torch_frame/datasets/openml_dataset.py Outdated Show resolved Hide resolved
torch_frame/datasets/openml_dataset.py Outdated Show resolved Hide resolved
torch_frame/datasets/openml_dataset.py Show resolved Hide resolved
self._task_type = (
torch_frame.TaskType.MULTICLASS_CLASSIFICATION)
self._num_classes = int(self.dataset_info["NumberOfClasses"])
col_to_stype[target_col] = torch_frame.categorical
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you create a function to convert from openml TaskType to pytorch-frame TaskType and then call the function here?

Copy link
Author

Choose a reason for hiding this comment

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

I don't think that's a good idea. Because the df here would be used in the constructor of the parent class. Also col_to_stype needs to get done before the constructor. If I am going to use a function to do this part, then df needs to be created as a new member variable.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't quite get it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants