Permit larger layers (up to 64 neurons)

This commit is contained in:
Leonora Tindall 2023-04-03 22:34:05 -05:00
parent 49b720baec
commit d71b437124
1 changed files with 5 additions and 6 deletions

View File

@ -94,9 +94,8 @@ async fn main() {
);
let ui_thick = 34.;
let nums = &[
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16",
];
let nums_owning: Vec<String> = (0..=64).into_iter().map(|i| format!("{:00}", i)).collect();
let nums: Vec<&str> = nums_owning.iter().map(|v| v.as_str()).collect();
let skin = skins::get_ui_skin();
let skin2 = skins::get_white_buttons_skin();
let skin3 = skins::get_green_buttons_skin();
@ -390,9 +389,9 @@ async fn main() {
ui.label(None, "Hidden Layers");
ui.label(None, "Neurons Config");
ui.combo_box(hash!(), "Layer 1", nums, &mut hlayers[0]);
ui.combo_box(hash!(), "Layer 2", nums, &mut hlayers[1]);
ui.combo_box(hash!(), "Layer 3", nums, &mut hlayers[2]);
ui.combo_box(hash!(), "Layer 1", &nums, &mut hlayers[0]);
ui.combo_box(hash!(), "Layer 2", &nums, &mut hlayers[1]);
ui.combo_box(hash!(), "Layer 3", &nums, &mut hlayers[2]);
if prev_hlayers != hlayers {
pop = Population::new(
size as usize,