Replies: 2 comments
-
|
I think I have a workflow which seems to work using Lux
model_1in = Lux.Chain(
Lux.Dense(1 => 4, Lux.softplus),
Lux.Dense(4 => 4, Lux.softplus),
Lux.Dense(4 => 4, Lux.softplus),
Lux.Dense(4 => 1, Lux.softplus)
)
model_2in = Lux.Chain(
Lux.Dense(2 => 4, Lux.softplus), # Changed 1 to 2
Lux.Dense(4 => 4, Lux.softplus),
Lux.Dense(4 => 4, Lux.softplus),
Lux.Dense(4 => 1, Lux.softplus)
)
using Setfield
model_1in_to_2in = @set model_1in.layers.layer_1.in_dims = 2
model_2in == model_1in_to_2in # trueHowever, my knowledge about how Lux actually work is limited, so not sure if this is appropriate (in simple tests it seems ok though) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I will strongly recommend against doing What is the issue with reconstructing the full model again? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Basically, I have a Lux model like:
and I like to generate a Lux model from it
is there an easy way to do this?
I could of course declare it directly. However, I have a workflow for fitting functions for Lux models. Now, sometimes my functions are periodic, and I can encode this through some transfomration that reuqires to network to have two inputs. And here I need to detect it and generate the appropriate model. So Ideally I'd like to create a function like:
however, I am usure of the best way to do this.
Beta Was this translation helpful? Give feedback.
All reactions