-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
41 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "RestrictedBoltzmannMachines" | ||
uuid = "12e6b396-7db5-4506-8cb6-664a4fe1e50e" | ||
authors = ["Jorge Fernandez-de-Cossio-Diaz <[email protected]>"] | ||
version = "3.2.0" | ||
version = "3.2.1" | ||
|
||
[deps] | ||
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" | ||
|
@@ -21,6 +21,6 @@ DiffRules = "1.8" | |
EllipsisNotation = "1" | ||
FillArrays = "0.12, 0.13, 1" | ||
LogExpFunctions = "0.3" | ||
SpecialFunctions = "2" | ||
Optimisers = "0.2" | ||
SpecialFunctions = "2" | ||
julia = "1.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
using RestrictedBoltzmannMachines: RBM, pcd!, Binary | ||
|
||
rbm = RBM(Binary(; θ=zeros(5)), Binary(; θ=zeros(3)), randn(5,3)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Aqua | ||
import RestrictedBoltzmannMachines | ||
|
||
using Test: @testset | ||
|
||
@testset "aqua" begin | ||
Aqua.test_all( | ||
RestrictedBoltzmannMachines; | ||
stale_deps=(ignore=[:DiffRules],), | ||
ambiguities=(recursive=false, exclude=[reshape]) | ||
) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
using SafeTestsets: @safetestset | ||
|
||
@time @safetestset "util" begin include("util.jl") end | ||
@time @safetestset "linalg" begin include("linalg.jl") end | ||
@time @safetestset "onehot" begin include("onehot.jl") end | ||
@time @safetestset "rbm" begin include("rbm.jl") end | ||
@time @safetestset "layers" begin include("layers.jl") end | ||
@time @safetestset "pseudolikelihood" begin include("pseudolikelihood.jl") end | ||
#@time @safetestset "minibatches" begin include("minibatches.jl") end | ||
@time @safetestset "infinite_minibatches" begin include("infinite_minibatches.jl") end | ||
@time @safetestset "initialization" begin include("initialization.jl") end | ||
@time @safetestset "regularize" begin include("regularize.jl") end | ||
@time @safetestset "truncnorm" begin include("truncnorm.jl") end | ||
@time @safetestset "optim" begin include("optim.jl") end | ||
@time @safetestset "partition" begin include("partition.jl") end | ||
@time @safetestset "metropolis" begin include("metropolis.jl") end | ||
module util_tests include("util.jl") end | ||
module linalg_tests include("linalg.jl") end | ||
module onehot_tests include("onehot.jl") end | ||
module rbm_tests include("rbm.jl") end | ||
module layers_tests include("layers.jl") end | ||
module pseudolikelihood_tests include("pseudolikelihood.jl") end | ||
# module minibatches include("minibatches.jl") end | ||
module infinite_minibatches_tests include("infinite_minibatches.jl") end | ||
module initialization_tests include("initialization.jl") end | ||
module regularize_tests include("regularize.jl") end | ||
module truncnorm_tests include("truncnorm.jl") end | ||
module optim_tests include("optim.jl") end | ||
module partition_tests include("partition.jl") end | ||
module metropolis_tests include("metropolis.jl") end | ||
|
||
@time @safetestset "zerosum" begin include("gauge/zerosum.jl") end | ||
@time @safetestset "rescale_hidden" begin include("gauge/rescale_hidden.jl") end | ||
@time @safetestset "pcd" begin include("pcd.jl") end | ||
module zerosum_tests include("gauge/zerosum.jl") end | ||
module rescale_hidden_tests include("gauge/rescale_hidden.jl") end | ||
module pcd_tests include("pcd.jl") end | ||
|
||
module shift_fields_tests include("shift_fields.jl") end | ||
|
||
module aqua_tests include("aqua.jl") end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters