Skip to content

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.

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