Skip to content

Commit ba9d848

Browse files
committed
[WIP]
1 parent 33721c3 commit ba9d848

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/convenience.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ function cluster!(
2828
distance::SemiMetric = SqEuclidean(),
2929
weight_type::Symbol = :convex,
3030
tol::Float64 = 1e-2,
31+
niters::Int = 100,
32+
learning_rate::Float64 = 0.001,
33+
adaptive_grad::Bool = false,
3134
)
3235
df = DuckDB.query(
3336
connection,
@@ -37,7 +40,7 @@ function cluster!(
3740
split_into_periods!(df; period_duration)
3841
clusters =
3942
find_representative_periods(df, num_rps; drop_incomplete_last_period, method, distance)
40-
fit_rep_period_weights!(clusters; weight_type, tol)
43+
fit_rep_period_weights!(clusters; weight_type, tol, niters, learning_rate, adaptive_grad)
4144

4245
write_clustering_result_to_tables(connection, clusters)
4346

0 commit comments

Comments
 (0)