You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the SDP solver in Knockoffs.jl is ~2 times slower than knockoff package in R and ~4 times slower than the knockoff package in Matlab. Speed difference is entirely due to underlying solver (Hypatia SDP solver+ Convex.jl in Julia vs R's Rdsdp vs Matlab's SDPT3 solver)
How do we could get more performance?
MWE
using Revise
using Knockoffs
using Test
using LinearAlgebra
using Random
using StatsBase
using Statistics
using Distributions
using ToeplitzMatrices
using RCall
using PositiveFactorizations
using UnicodePlots
using MATLAB
using SCS
using JuMP
using Convex
# simulate data
Random.seed!(2022)
n =100
p =400
ρ =0.4
Sigma =Matrix(SymmetricToeplitz(ρ.^(0:(p-1))))
L =cholesky(Sigma).L
X =randn(n, p) * L # var(X) = L var(N(0, 1)) L' = var(Σ)
true_mu =zeros(p)
Currently the SDP solver in
Knockoffs.jl
is ~2 times slower thanknockoff
package in R and ~4 times slower than the knockoff package in Matlab. Speed difference is entirely due to underlying solver (Hypatia SDP solver+Convex.jl
in Julia vs R's Rdsdp vs Matlab's SDPT3 solver)How do we could get more performance?
MWE
Knockoffs.jl
Compare with Matteo's knockoffs in R
Compare with Matteo's knockoffs in Matlab
At least the answer agrees:
The text was updated successfully, but these errors were encountered: