Skip to content

Running on google colab and am getting this error #8

@evansmwakughu

Description

@evansmwakughu

lenc = MyLabelBinarizer()
Y = lenc.fit_transform(y_new)

TypeErrorTraceback (most recent call last)
in ()
1 lenc = MyLabelBinarizer()
----> 2 Y = lenc.fit_transform(y_new)
3 #lenc = MyLabelBinarizer()
4 #Y = MyLabelBinarizer().fit_transform(y_new)

1 frames
in transform(self, y)
1 class MyLabelBinarizer(LabelBinarizer):
2 def transform(self, y):
----> 3 Y = super().transform(y)
4 if self.y_type_ == 'binary':
5 return np.hstack((Y, 1-Y))

TypeError: super() takes at least 1 argument (0 given)

TypeError: super() takes at least 1 argument (0 given)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions