From 80a3082465670bdb0451c13c3fbc11017a80e132 Mon Sep 17 00:00:00 2001 From: PasoStudio73 Date: Wed, 5 Mar 2025 12:23:49 +0100 Subject: [PATCH] check btime --- test/benchmarks/01_FS_Base.jl | 4 ++-- test/benchmarks/03_FS_newStruct.jl | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/benchmarks/01_FS_Base.jl b/test/benchmarks/01_FS_Base.jl index d05203f..df51a50 100644 --- a/test/benchmarks/01_FS_Base.jl +++ b/test/benchmarks/01_FS_Base.jl @@ -826,8 +826,8 @@ end # load a time-series dataset df, y = SoleData.load_arff_dataset("NATOPS") -# ws = [FixedNumMovingWindows(6, 0.05)...] -ws = [CenteredMovingWindow(1)...] +ws = [FixedNumMovingWindows(6, 0.05)...] +# ws = [CenteredMovingWindow(1)...] ms = [minimum, maximum, mean] fs_methods = [ diff --git a/test/benchmarks/03_FS_newStruct.jl b/test/benchmarks/03_FS_newStruct.jl index c51e8cd..54259d2 100644 --- a/test/benchmarks/03_FS_newStruct.jl +++ b/test/benchmarks/03_FS_newStruct.jl @@ -939,13 +939,13 @@ fs_methods = [ ] # prepare dataset for feature selection -# Xdf, Xinfo = @test_nowarn SoleFeatures.feature_selection_preprocess(df; features=ms, type=adaptivewindow, nwindows=6, relative_overlap=0.05) -Xdf, Xinfo = @test_nowarn SoleFeatures.feature_selection_preprocess(df; features=ms, type=wholewindow) +Xdf, Xinfo = @test_nowarn SoleFeatures.feature_selection_preprocess(df; features=ms, type=adaptivewindow, nwindows=6, relative_overlap=0.05) +# Xdf, Xinfo = @test_nowarn SoleFeatures.feature_selection_preprocess(df; features=ms, type=wholewindow) @info "FEATURE SELECTION" using BenchmarkTools -a = feature_selection(Xdf, y, Xinfo, fs_methods = fs_methods, norm = false) +@btime a = feature_selection(Xdf, y, Xinfo, fs_methods = fs_methods, norm = false) -# 3.212 ms (52923 allocations: 4.37 MiB) +# 3.189 ms (52904 allocations: 5.54 MiB)