Skip to content

Commit

Permalink
Minor change to super
Browse files Browse the repository at this point in the history
  • Loading branch information
dguijo committed Oct 21, 2024
1 parent ccd6063 commit 94a3094
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions tsml_eval/_wip/condensing/drop1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import numpy as np
from aeon.distances import get_distance_function
from aeon.transformations.collection.base import BaseCollectionTransformer
Expand Down Expand Up @@ -51,7 +50,7 @@ def __init__(

self.selected_indices = []

super(Drop1Condenser, self).__init__()
super().__init__()

def _fit(self, X, y):
n_classes = len(np.unique(y))
Expand Down
3 changes: 1 addition & 2 deletions tsml_eval/_wip/condensing/drop2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import numpy as np
from aeon.distances import get_distance_function
from aeon.transformations.collection.base import BaseCollectionTransformer
Expand Down Expand Up @@ -51,7 +50,7 @@ def __init__(

self.selected_indices = []

super(Drop2Condenser, self).__init__()
super().__init__()

def _fit(self, X, y):
n_classes = len(np.unique(y))
Expand Down
3 changes: 1 addition & 2 deletions tsml_eval/_wip/condensing/drop3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import numpy as np
from aeon.distances import get_distance_function
from aeon.transformations.collection.base import BaseCollectionTransformer
Expand Down Expand Up @@ -51,7 +50,7 @@ def __init__(

self.selected_indices = []

super(Drop3Condenser, self).__init__()
super().__init__()

def _fit(self, X, y):
n_classes = len(np.unique(y))
Expand Down
7 changes: 2 additions & 5 deletions tsml_eval/_wip/condensing/simple_rank.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import numpy as np
from aeon.classification.distance_based import KNeighborsTimeSeriesClassifier
from aeon.distances import get_distance_function
from aeon.transformations.collection.base import BaseCollectionTransformer

from aeon.classification.distance_based import (
KNeighborsTimeSeriesClassifier,
)


class SimpleRankCondenser(BaseCollectionTransformer):
"""
Expand Down Expand Up @@ -56,7 +53,7 @@ def __init__(

self.selected_indices = []

super(SimpleRankCondenser, self).__init__()
super().__init__()

def _fit(self, X, y):
# As SR do not separate prototypes per class, the number should be multiplied by
Expand Down

0 comments on commit 94a3094

Please sign in to comment.