We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f72d6c4 commit dc24ba1Copy full SHA for dc24ba1
src/find_path.jl
@@ -220,6 +220,7 @@ function learn_paths(
220
sparse_ratio = 0.05,
221
if_pca = false,
222
pca_eval_M = nothing,
223
+ activation = nothing,
224
verbose = false,
225
)
226
@@ -284,9 +285,11 @@ function learn_paths(
284
285
if is_truly_sparse(Ythat_val, verbose = verbose)
286
Ythat_val = sparse(Ythat_val)
287
end
- # Ythat = sparse(Ythat)
288
- # verbose && println("Sparsity of Ythat: $(length(Ythat.nzval)/Ythat.m/Ythat.n)")
289
+ # apply activation to Yt hat
290
+ if !isnothing(activation)
291
+ Ythat_val = activation.(Ythat_val)
292
+ end
293
# collect supports for gold path each timestep
294
if check_gold_path && !isnothing(gold_ind)
295
for j = 1:size(data_val, 1)
0 commit comments