From d781bf668fd4ccfbb5e54e99c2e8351daa61876a Mon Sep 17 00:00:00 2001 From: uek-1 Date: Fri, 7 Jul 2023 14:49:37 +0530 Subject: [PATCH] added two more activation functions, but broke ui because dropdown breaks selection --- model-gui/src/widgets/model.rs | 4 +++- rust-mlp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/model-gui/src/widgets/model.rs b/model-gui/src/widgets/model.rs index e8cd9f8..90eb64b 100644 --- a/model-gui/src/widgets/model.rs +++ b/model-gui/src/widgets/model.rs @@ -76,8 +76,10 @@ fn layer_context_menu(ui : &mut egui::Ui, layer_state : &mut LayerState, layer_m egui::ComboBox::from_label("Activation Function") .selected_text(format!("{:?}", layer_state.activation)) .show_ui(ui, |ui| { - ui.selectable_value(&mut layer_state.activation, Activation::Sigmoid, "Sigmoid"); ui.selectable_value(&mut layer_state.activation, Activation::None, "None"); + ui.selectable_value(&mut layer_state.activation, Activation::Sigmoid, "Sigmoid"); + ui.selectable_value(&mut layer_state.activation, Activation::Relu, "ReLu"); + ui.selectable_value(&mut layer_state.activation, Activation::Softmax, "Softmax"); }); if ui.button("Add").clicked() { diff --git a/rust-mlp b/rust-mlp index 926cdc4..02cacf3 160000 --- a/rust-mlp +++ b/rust-mlp @@ -1 +1 @@ -Subproject commit 926cdc4a4da48cfdb44a549fcf116d145057c90b +Subproject commit 02cacf34d948ad67896d9993d9a319442aea9e2b