stephen-newberry
commited on
Update readme
Browse files
README.md
CHANGED
@@ -1,3 +1,21 @@
|
|
1 |
-
---
|
2 |
-
license: gpl-3.0
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: gpl-3.0
|
3 |
+
datasets:
|
4 |
+
- stephen-newberry/pcb-via-mesh-input-sparameter-output
|
5 |
+
---
|
6 |
+
|
7 |
+
Model requires reshaping data in the dataset to be (100,200,60) size. Use this file as follows in Julia:
|
8 |
+
|
9 |
+
```
|
10 |
+
model = create_parametric_model()
|
11 |
+
model_state = JLD2.load("../final_model2/trained_model.jld2", "model_state")
|
12 |
+
Flux.loadmodel!(model, model_state)
|
13 |
+
|
14 |
+
naughts=zeros(Int8, (100,200,60,1))
|
15 |
+
s0 = model(naughts)
|
16 |
+
il_of_nothing = 10 .* log.(sqrt.(s0[3,:,1].^2 + s0[4,:,1].^2))
|
17 |
+
plot(il_of_nothing, linewidth=2)
|
18 |
+
|
19 |
+
More info to follow.
|
20 |
+
|
21 |
+
```
|