File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change 22ADTypes = " 47edcb42-4c32-4615-8424-f2b9edc5f35b"
33BenchmarkTools = " 6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
44Bijectors = " 76274a88-744f-5084-9051-94815aaf08c4"
5- ChangesOfVariables = " 9e997f8a-9a97-42d5-a9f1-ce6bfc15e2c0"
65DiffResults = " 163ba53b-c6d8-5494-b064-1a9d43ac40c5"
76DifferentiationInterface = " a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
87Distributions = " 31c24e10-a181-5473-b8eb-7969acd0382f"
98DocStringExtensions = " ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
109Enzyme = " 7da242da-08ed-463a-9acd-ee780be4f1d9"
11- Flux = " 587475ba-b771-5e3f-ad9e-33799f191a9c"
1210Functors = " d9f16b24-f501-4c13-a1f2-28368ffc5196"
13- InverseFunctions = " 3587e190-3f89-42d0-90ee-14403ec27112"
1411IrrationalConstants = " 92d709cd-6900-40b7-9082-c6be49f344b6"
1512LinearAlgebra = " 37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1613LogDensityProblems = " 6fdf6af0-433a-55f7-b3ed-c6c6e0b8df7c"
17- MonotonicSplines = " 568f7cb4-8305-41bc-b90d-d32b39cc99d1"
1814Mooncake = " da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
1915NormalizingFlows = " 50e4474d-9f12-44b7-af7a-91ab30ff6256"
2016Optimisers = " 3bd65402-5787-11e9-1adc-39752487f4e2"
Original file line number Diff line number Diff line change 11using Random, Distributions, LinearAlgebra
22using Bijectors: transformed
3- using Flux
4-
5- """
6- A simple wrapper for a 3 layer dense MLP
7- """
8- function mlp3 (input_dim:: Int , hidden_dims:: Int , output_dim:: Int ; activation= Flux. leakyrelu)
9- return Chain (
10- Flux. Dense (input_dim, hidden_dims, activation),
11- Flux. Dense (hidden_dims, hidden_dims, activation),
12- Flux. Dense (hidden_dims, output_dim),
13- )
14- end
153
164function compare_trained_and_untrained_flow (
175 flow_trained:: Bijectors.MultivariateTransformed ,
You can’t perform that action at this time.
0 commit comments