Skip to content

Commit

Permalink
check btime
Browse files Browse the repository at this point in the history
  • Loading branch information
PasoStudio73 committed Mar 5, 2025
1 parent 18b1602 commit 80a3082
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/benchmarks/01_FS_Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
8 changes: 4 additions & 4 deletions test/benchmarks/03_FS_newStruct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 80a3082

Please sign in to comment.