Skip to content

Commit ce34d5b

Browse files
committed
fixup! fixup! fixup! removed py 3.8, added 3.13
1 parent 5b7632d commit ce34d5b

4 files changed

Lines changed: 8 additions & 12 deletions

File tree

HROCH/classifier.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,7 @@ def predict_proba(self, X, id=None, check_input=True):
291291
return proba
292292

293293
def __sklearn_tags__(self):
294-
tags = super(ClassifierMixin, self).__sklearn_tags__()
295-
tags.estimator_type = 'classifier'
294+
tags = super().__sklearn_tags__()
296295
tags.classifier_tags = ClassifierTags(multi_class = False)
297296
return tags
298297

@@ -363,4 +362,4 @@ def predict_proba(self, X):
363362
return super().predict_proba(X)
364363

365364
def __sklearn_tags__(self):
366-
return super(OneVsRestClassifier, self).__sklearn_tags__()
365+
return super().__sklearn_tags__()

HROCH/fuzzy.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def predict_proba(self, X, id=None, check_input=True):
279279
return proba
280280

281281
def __sklearn_tags__(self):
282-
tags = super(ClassifierMixin, self).__sklearn_tags__()
282+
tags = super().__sklearn_tags__()
283283
tags.estimator_type = 'classifier'
284284
tags.classifier_tags = ClassifierTags(multi_class = False, poor_score=True)
285285
return tags
@@ -352,9 +352,6 @@ def predict_proba(self, X):
352352
return super().predict_proba(X)
353353

354354
def __sklearn_tags__(self):
355-
tags = super(OneVsRestClassifier, self).__sklearn_tags__()
356-
if tags.classifier_tags is not None:
357-
tags.classifier_tags.poor_score = True
358-
else:
359-
tags.classifier_tags = ClassifierTags(poor_score=True)
355+
tags = super().__sklearn_tags__()
356+
tags.classifier_tags = ClassifierTags(poor_score = True)
360357
return tags

HROCH/hroch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def __repr__(self):
270270
return f"RegressorMathModel({self.m.str_representation})"
271271

272272
def __sklearn_tags__(self):
273-
return super(RegressorMixin, self).__sklearn_tags__()
273+
return super().__sklearn_tags__()
274274

275275

276276
class ClassifierMathModel(ClassifierMixin, MathModelBase):
@@ -400,7 +400,7 @@ def __repr__(self):
400400
return f"ClassifierMathModel({self.m.str_representation})"
401401

402402
def __sklearn_tags__(self):
403-
return super(ClassifierMixin, self).__sklearn_tags__()
403+
return super().__sklearn_tags__()
404404

405405

406406
# void * CreateSolver(solver_params * params)

HROCH/regressor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,4 +226,4 @@ def predict(self, X, id=None, check_input=True, use_parsed_model=True):
226226
return super(SymbolicRegressor, self).predict(X, id=id, check_input=check_input, use_parsed_model=use_parsed_model)
227227

228228
def __sklearn_tags__(self):
229-
return super(RegressorMixin, self).__sklearn_tags__()
229+
return super().__sklearn_tags__()

0 commit comments

Comments
 (0)