Skip to content

Commit 4533cf4

Browse files
committed
Updated CI.yml
1 parent 8a7f19a commit 4533cf4

1,513 files changed

Lines changed: 43919 additions & 3 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
publish:
159159
name: Publish to PyPI
160160
runs-on: ubuntu-latest
161-
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' }}
161+
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' || github.event_name == 'release' }}
162162
needs: [linux_wheels, macos_wheels, windows_wheels, sdist, rust_tests, python_tests, docs]
163163
steps:
164164
- uses: actions/download-artifact@v4
@@ -234,12 +234,12 @@ jobs:
234234

235235
read_the_docs:
236236
name: Read the Docs trigger
237-
needs: [docs, publish]
237+
needs: [docs]
238238
runs-on: ubuntu-latest
239239
steps:
240240
- name: Trigger Read the Docs build
241241
run: |
242-
curl -X POST -d "branches=main" -d "token=${{ secrets.READTHEDOCS_TOKEN }}" https://app.readthedocs.org/api/v2/webhook/ratspy/314741/
242+
curl -X POST -d "branches=main" -d "token=${{ secrets.READTHEDOCS_TOKEN }}" https://app.readthedocs.org/api/v2/webhook/ratspy/314743/
243243
244244
rust_tests:
245245
name: Build and test rats
1.22 KB
Binary file not shown.

cluster_tests/dataframe.py

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import pandas as pd
2+
from pathlib import Path
3+
from aeon.datasets import get_dataset_meta_data
4+
5+
# Base results folder
6+
base = Path("results")
7+
8+
all_data = []
9+
10+
all_metadata = get_dataset_meta_data()
11+
all_metadata = all_metadata[all_metadata["Channels"] == 1]
12+
13+
# Loop through each dataset folder
14+
for dataset_dir in sorted(base.iterdir()):
15+
if not dataset_dir.is_dir():
16+
continue
17+
idx = int(dataset_dir.name) # e.g. "0", "1", ...
18+
19+
# File paths
20+
time_file = dataset_dir / f"{idx}_time_benchmark.csv"
21+
mem_file = dataset_dir / f"{idx}_memory_benchmark.csv"
22+
23+
if time_file.is_file() is False or mem_file.is_file() is False:
24+
print(f"Skipping {idx}, missing CSV files")
25+
continue
26+
27+
# Read the two CSVs
28+
df_time = pd.read_csv(time_file)
29+
df_mem = pd.read_csv(mem_file)
30+
31+
# Merge time and memory by Augmenter
32+
df = pd.merge(df_time, df_mem, on="Augmenter", how="outer")
33+
34+
n_samples = all_metadata.iloc[idx]["TrainSize"] + all_metadata.iloc[idx]["TestSize"]
35+
sample_length = all_metadata.iloc[idx]["Length"]
36+
37+
# Flatten into single-row with column names indicating augmenter + metric
38+
row = {"Index": idx, "Dataset": all_metadata.iloc[idx]["Dataset"], "NumSamples": n_samples, "SampleLength": sample_length}
39+
for _, r in df.iterrows():
40+
aug = r["Augmenter"]
41+
for col in r.index:
42+
if col == "Augmenter":
43+
continue
44+
row[f"{aug}_{col}"] = r[col]
45+
46+
all_data.append(row)
47+
48+
# Combine all datasets
49+
df_all = pd.DataFrame(all_data).sort_values("Index").reset_index(drop=True)
50+
51+
df_all.drop(columns=["Index"], inplace=True)
52+
53+
# Optionally save to CSV
54+
df_all.to_csv("aggregated_results.csv", index=False)
55+
56+
print("Aggregated dataframe shape:", df_all.shape)
57+
print("Example columns:", df_all.columns[:10].tolist())
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"problemname": "adiac",
3+
"timestamps": false,
4+
"missing": false,
5+
"univariate": true,
6+
"equallength": true,
7+
"classlabel": true,
8+
"targetlabel": false,
9+
"class_values": [
10+
"1",
11+
"2",
12+
"3",
13+
"4",
14+
"5",
15+
"6",
16+
"7",
17+
"8",
18+
"9",
19+
"10",
20+
"11",
21+
"12",
22+
"13",
23+
"14",
24+
"15",
25+
"16",
26+
"17",
27+
"18",
28+
"19",
29+
"20",
30+
"21",
31+
"22",
32+
"23",
33+
"24",
34+
"25",
35+
"26",
36+
"27",
37+
"28",
38+
"29",
39+
"30",
40+
"31",
41+
"32",
42+
"33",
43+
"34",
44+
"35",
45+
"36",
46+
"37"
47+
]
48+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Total datasets available: 150
2+
Shape of X = (781, 1, 176)
3+
Meta data = {'problemname': 'adiac', 'timestamps': False, 'missing': False, 'univariate': True, 'equallength': True, 'classlabel': True, 'targetlabel': False, 'class_values': ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37']}
4+
Saved dataset to ./data/0/0.csv
5+
Saved metadata to ./results/0/0_meta.json

cluster_tests/results/0/memory.log

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Loading data from data/0/0.csv
2+
Augmenters: 0%| | 0/17 [00:00<?, ?it/s]Repeat: RATSpy 245.07 MB, tsaug N/A MB
3+
Augmenters: 12%|█▏ | 2/17 [00:00<00:01, 13.03it/s]Scaling: RATSpy 134.32 MB, tsaug N/A MB
4+
Rotation: RATSpy 135.82 MB, tsaug N/A MB
5+
Augmenters: 24%|██▎ | 4/17 [00:00<00:01, 12.11it/s]Jittering: RATSpy 136.57 MB, tsaug 136.56640625 MB
6+
Drop: RATSpy 137.32 MB, tsaug 137.31640625 MB
7+
Augmenters: 35%|███▌ | 6/17 [00:00<00:01, 10.13it/s]Crop: RATSpy 137.32 MB, tsaug 137.31640625 MB
8+
AmplitudePhasePerturbation: RATSpy 137.32 MB, tsaug N/A MB
9+
Augmenters: 47%|████▋ | 8/17 [00:00<00:00, 11.61it/s]FrequencyMask: RATSpy 137.32 MB, tsaug N/A MB
10+
Quantize: RATSpy 137.32 MB, tsaug 137.31640625 MB
11+
Augmenters: 59%|█████▉ | 10/17 [00:00<00:00, 9.70it/s]Resize: RATSpy 137.32 MB, tsaug 137.31640625 MB
12+
Reverse: RATSpy 137.32 MB, tsaug 137.31640625 MB
13+
Augmenters: 71%|███████ | 12/17 [00:01<00:00, 10.73it/s]Permutate: RATSpy 137.32 MB, tsaug N/A MB
14+
AddNoise: RATSpy 137.32 MB, tsaug 137.31640625 MB
15+
Augmenters: 82%|████████▏ | 14/17 [00:01<00:00, 11.04it/s]RandomTimeWarpAugmenter: RATSpy 137.32 MB, tsaug N/A MB
16+
Pool: RATSpy 137.32 MB, tsaug 137.31640625 MB
17+
Augmenters: 94%|█████████▍| 16/17 [00:01<00:00, 10.58it/s]Drift: RATSpy 137.32 MB, tsaug 138.06640625 MB
18+
Augmenters: 100%|██████████| 17/17 [00:01<00:00, 10.85it/s]
19+
Convolve: RATSpy 138.07 MB, tsaug 138.06640625 MB
20+
Running FFT...
21+
fft: RATSpy 138.07 MB, tsaug N/A
22+
Running IFFT...
23+
ifft: RATSpy 138.07 MB, tsaug N/A
24+
Running compare_within_tolerance...
25+
compare_within_tolerance: RATSpy 138.07 MB, tsaug N/A
26+
Running Batch Pipeline
27+
Pipeline_with_tsaug: 0%| | 0/17 [00:00<?, ?it/s]Pipeline_with_tsaug: 100%|██████████| 17/17 [00:00<00:00, 7952.62it/s]
28+
Pipeline_with_tsaug: RATSpy 138.07 MB, tsaug 138.81640625 MB
29+
Benchmark results saved to results/0/0_memory_benchmark.csv

cluster_tests/results/0/plots.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Plots saved as results/0/plots/0_time_benchmark_bar.png, results/0/plots/0_memory_benchmark_bar.png, and results/0/plots/0_time_vs_memory_scatter.png

cluster_tests/results/0/time.log

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Loading data from data/0/0.csv
2+
Running individual augmenter benchmarks: 0%| | 0/17 [00:00<?, ?it/s]Running individual augmenter benchmarks: 100%|██████████| 17/17 [00:00<00:00, 255.19it/s]
3+
Repeat: RATSpy 0.0029s, tsaug N/A
4+
Scaling: RATSpy 0.0010s, tsaug N/A
5+
Rotation: RATSpy 0.0005s, tsaug N/A
6+
Jittering: RATSpy 0.0006s, tsaug 0.004163403995335102
7+
Drop: RATSpy 0.0008s, tsaug 0.0022167512215673923
8+
Crop: RATSpy 0.0007s, tsaug 0.0011537191458046436
9+
AmplitudePhasePerturbation: RATSpy 0.0115s, tsaug N/A
10+
FrequencyMask: RATSpy 0.0016s, tsaug N/A
11+
Quantize: RATSpy 0.0009s, tsaug 0.0022608120925724506
12+
Resize: RATSpy 0.0008s, tsaug 0.0011304216459393501
13+
Reverse: RATSpy 0.0008s, tsaug 0.0005421922542154789
14+
Permutate: RATSpy 0.0008s, tsaug N/A
15+
AddNoise: RATSpy 0.0008s, tsaug 0.003565932624042034
16+
RandomTimeWarpAugmenter: RATSpy 0.0009s, tsaug N/A
17+
Pool: RATSpy 0.0018s, tsaug 0.0025146109983325005
18+
Drift: RATSpy 0.0009s, tsaug 0.0034319711849093437
19+
Convolve: RATSpy 0.0010s, tsaug 0.002801113296300173
20+
Running FFT...
21+
fft: RATSpy 0.0008s, tsaug N/A
22+
Running IFFT...
23+
ifft: RATSpy 0.0006s, tsaug N/A
24+
Validating FFT and IFFT...
25+
compare_within_tolerance: RATSpy 0.0003s, max_diff=1.1102230246251565e-15, all_within=True
26+
Running Batch Pipeline_with_tsaug
27+
Pipeline_with_tsaug: 0%| | 0/17 [00:00<?, ?it/s]Pipeline_with_tsaug: 100%|██████████| 17/17 [00:00<00:00, 8176.03it/s]
28+
Pipeline_with_tsaug: RATSpy 0.0048s, tsaug 0.02040749602019787
29+
Benchmark results saved to results/0/0_time_benchmark.csv
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"problemname": "arrowhead",
3+
"timestamps": false,
4+
"missing": false,
5+
"univariate": true,
6+
"equallength": true,
7+
"classlabel": true,
8+
"targetlabel": false,
9+
"class_values": [
10+
"0",
11+
"1",
12+
"2"
13+
]
14+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Total datasets available: 150
2+
Shape of X = (211, 1, 251)
3+
Meta data = {'problemname': 'arrowhead', 'timestamps': False, 'missing': False, 'univariate': True, 'equallength': True, 'classlabel': True, 'targetlabel': False, 'class_values': ['0', '1', '2']}
4+
Saved dataset to ./data/1/1.csv
5+
Saved metadata to ./results/1/1_meta.json

0 commit comments

Comments
 (0)