-
Couldn't load subscription status.
- Fork 68
Adding support for openml datasets #429
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
base: master
Are you sure you want to change the base?
Conversation
| self._task_type = ( | ||
| torch_frame.TaskType.MULTICLASS_CLASSIFICATION) | ||
| self._num_classes = int(self.dataset_info["NumberOfClasses"]) | ||
| col_to_stype[target_col] = torch_frame.categorical |
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 you create a function to convert from openml TaskType to pytorch-frame TaskType and then call the function here?
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.
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.
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.
I don't quite get it.
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.