Skip to content

Commit

Permalink
(IMPORTANT): sawp input 4&5 for CNN model (need to check)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyoo86 committed Oct 22, 2024
1 parent 5d23e9a commit bdbc4ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Binary file modified assets/simple_terminal_output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/verbose_terminal_output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/TroyonBetaNN.jl
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,12 @@ function _set_CNN_input_neurons_from_sampled_points(TD::Troyon_Data, eqt::IMAS.
PPF = eqt.profiles_1d.pressure[1] / Take_1D_average_over_volume(eqt, eqt.profiles_1d.pressure)
input_5 = Float32.(reshape([PPF],1,1))


# TODO: check what exactly input_4 and input_5 are
# Here, we assume that input_4 is "PPF" and input_5 is "li", which looks more reasonable
# Swap input_4 and input_5
input_4, input_5 = input_5, input_4

TD.CNN.input = Dict("input_1"=>input_1, "input_2"=>input_2, "input_3"=>input_3, "input_4"=>input_4, "input_5"=>input_5)
end

Expand Down

0 comments on commit bdbc4ab

Please sign in to comment.