Skip to content

Commit

Permalink
fixes for julia 0.5-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
vilen committed Dec 3, 2015
1 parent 62f1766 commit 41e026a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -9,7 +9,7 @@ notifications:
email: false
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone(pwd()); Pkg.build("SALSA"); Pkg.test("SALSA"; coverage=true)'
- julia -e 'Pkg.clone(pwd()); Pkg.build("SALSA"); Pkg.test("SALSA"; coverage=(VERSION >= v"0.5"))'
- julia -e 'Pkg.add("Lint"); using Lint; lintpkg("SALSA",returnMsgs=true)'
after_success:
- julia -e 'cd(Pkg.dir("SALSA")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
2 changes: 1 addition & 1 deletion src/algorithms/adaptive_l1rda_alg.jl
Expand Up @@ -36,7 +36,7 @@ function adaptive_l1rda_alg(dfunc::Function, X, Y, λ::Float64, γ::Float64, ρ:
g = spzeros(d,1)
h = spzeros(d,1)
total = length(X.nzval)
w = sparsevec(sprand(d,1,total/(N*d))/100)
w = sprand(d,1,total/(N*d))/100
X = X'; sub_arr = (I) -> append_ones(X[:,I],k)
end

Expand Down
2 changes: 1 addition & 1 deletion src/algorithms/dropout_alg.jl
Expand Up @@ -31,7 +31,7 @@ function dropout_alg(dfunc::Function, X, Y, λ::Float64, k::Int, max_iter::Int,
sub_arr = (I) -> append_ones(sub(X,I,:),k)
else
total = length(X.nzval)
w = sparsevec(sprand(d,1,total/(N*d)))
w = sprand(d,1,total/(N*d))
f_sample = (p) -> isnan(p^2/(1+p^2)) ?
rand(Bernoulli(0)) : rand(Bernoulli(p^2/(1+p^2)))
X = X'; sub_arr = (I) -> append_ones(X[:,I],k)
Expand Down

0 comments on commit 41e026a

Please sign in to comment.