Skip to content

[ENH] Starting Self Supervised Model with first example #2385

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

Merged
merged 27 commits into from
Jun 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0a3631c
add ssl module in transformations collection
hadifawaz1999 Nov 24, 2024
6ff2588
add api
hadifawaz1999 Nov 24, 2024
513be04
add test params
hadifawaz1999 Nov 24, 2024
6ced230
Merge remote-tracking branch 'origin/main' into aif/self-sup-start
hadifawaz1999 Nov 24, 2024
4f8c10e
fix example
hadifawaz1999 Nov 24, 2024
d10af66
Merge branch 'main' into aif/self-sup-start
hadifawaz1999 Dec 13, 2024
1fe30a9
Merge branch 'main' into aif/self-sup-start
hadifawaz1999 Feb 5, 2025
b4bf058
Merge branch 'main' of https://github.com/aeon-toolkit/aeon into aif/…
hadifawaz1999 May 16, 2025
0c01be2
restart tests
hadifawaz1999 May 16, 2025
0e0953e
test fix params
hadifawaz1999 May 16, 2025
b965026
network none
hadifawaz1999 May 16, 2025
5dbfd32
revert
hadifawaz1999 May 16, 2025
2167ae3
import inside function
hadifawaz1999 May 16, 2025
acd6a8b
try dummy
hadifawaz1999 May 16, 2025
528dd9a
test repr
hadifawaz1999 May 16, 2025
2468a12
network repr
MatthewMiddlehurst May 18, 2025
2afa0ab
enhance testing
hadifawaz1999 May 25, 2025
75687f8
fix test
hadifawaz1999 May 25, 2025
1ea2e26
replace tcnn by lite
hadifawaz1999 May 25, 2025
e3a7311
tony's comments
hadifawaz1999 May 29, 2025
72001fd
fix typing
hadifawaz1999 May 29, 2025
6417c61
fix znorm
hadifawaz1999 May 29, 2025
545149e
z_norm in test
hadifawaz1999 May 29, 2025
f2c4cc7
add exp module
hadifawaz1999 May 30, 2025
be632d3
Update repr.py
MatthewMiddlehurst Jun 2, 2025
6b11757
Update base.py
MatthewMiddlehurst Jun 2, 2025
c80fa74
Automatic `pre-commit` fixes
MatthewMiddlehurst Jun 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ does not apply:
- `segmentation`
- `similarity_search`
- `visualisation`
- `transformations.collection.self_supervised`

| Overview | |
|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
Expand Down
6 changes: 6 additions & 0 deletions aeon/networks/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from abc import ABC, abstractmethod

from aeon.utils.repr import get_unchanged_and_required_params_as_str
from aeon.utils.validation._dependencies import (
_check_python_version,
_check_soft_dependencies,
Expand All @@ -25,6 +26,11 @@ def __init__(self, soft_dependencies="tensorflow", python_version="<3.13"):
_check_python_version(python_version)
super().__init__()

def __repr__(self):
"""Format str output like scikit-learn estimators."""
changed_params = get_unchanged_and_required_params_as_str(self)
return f"{self.__class__.__name__}({changed_params})"

@abstractmethod
def build_network(self, input_shape, **kwargs):
"""Construct a network and return its input and output layers.
Expand Down
3 changes: 2 additions & 1 deletion aeon/networks/tests/test_network_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def build_network(self, input_shape, **kwargs):
import tensorflow as tf

input_layer = tf.keras.layers.Input(input_shape)
output_layer = tf.keras.layers.Dense(units=10)(input_layer)
flatten_layer = tf.keras.layers.Flatten()(input_layer)
output_layer = tf.keras.layers.Dense(units=10)(flatten_layer)

return input_layer, output_layer

Expand Down
5 changes: 5 additions & 0 deletions aeon/transformations/collection/self_supervised/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Self Supervised deep learning transformers."""

__all__ = ["TRILITE"]

from aeon.transformations.collection.self_supervised._trilite import TRILITE
Loading