Skip to content

Unable to run .get_label_meaning() for the TWOSIDES dataset #121

@sbonner0

Description

@sbonner0

Hi,

When I try to call the function .get_label_meaning() on the TWOSIDES dataset I get the following error:

python3.8/site-packages/tdc/base_dataset.py in get_label_meaning(self, output_format)
    163             dict/pd.DataFrame/np.array: when output_format is dict/df/array
    164         """
--> 165         return utils.get_label_map(self.name, self.path, self.target,
    166                                    file_format=self.file_format,
    167                                    output_format=output_format)

AttributeError: 'DDI' object has no attribute 'target'

I am trying to understand what Y represents for this dataset? I assume the ints are mappings to reported side effects but it would be great to get that clarified.

Environment:

  • OS: MacOS 11.6
  • Python version: 3.8.12
  • TDC version: 0.3.1

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions