def dataset_statistics_init(self): # FILTERED DATA folder_path_data = tkinter.StringVar() label_data = tkinter.Label(master=self.tab_dataset_statistics) label_data.place(x=20, y=20) label_data.config(text="EEG Dots Folder") textfield_data = tkinter.Entry(master=self.tab_dataset_statistics, width=100, state='disabled') textfield_data.place(x=140, y=20) browse_button_data = tkinter.Button( master=self.tab_dataset_statistics, text="Browse", command=lambda: self.folder_browse_button(folder_path_data, textfield_data)) browse_button_data.place(x=750, y=15) browse_button_data.config(width=10, height=1) # OUTPUT PATH folder_path_output = tkinter.StringVar() label_output = tkinter.Label(master=self.tab_dataset_statistics, text="Output path") label_output.place(x=20, y=80) label_output.config(text="Output path") textfield_output = tkinter.Entry(master=self.tab_dataset_statistics, width=100, state='disabled') textfield_output.place(x=140, y=80) browse_button_output = tkinter.Button( master=self.tab_dataset_statistics, text="Browse", command=lambda: self.folder_browse_button(folder_path_output, textfield_output)) browse_button_output.place(x=750, y=75) browse_button_output.config(width=10, height=1) # LOGGING AREA text_area = tkinter.Text(self.tab_dataset_statistics, height=10, width=100) text_area.place(x=20, y=140) widget = TextHandler(text_area) # START BUTTON start_button = tkinter.Button( master=self.tab_dataset_statistics, text="Start", command=lambda: self.start_dataset_statistics( folder_path_data.get(), folder_path_output.get(), widget)) start_button.place(x=375, y=325) start_button.config(width=10, height=1)
def graph_window_visualization_init(self): # FILTERED DATA folder_path_data = tkinter.StringVar() label_data = tkinter.Label(master = self.tab_graph_metrics) label_data.place(x = 20, y = 20) label_data.config(text = "RGW Matrix Results") textfield_data = tkinter.Entry(master = self.tab_graph_metrics, width = 100, state = 'disabled') textfield_data.place(x = 140, y = 20) browse_button_data = tkinter.Button(master = self.tab_graph_metrics, text = "Browse", command = lambda: self.folder_browse_button(folder_path_data, textfield_data)) browse_button_data.place(x = 750, y = 15) browse_button_data.config(width = 10, height = 1) # OUTPUT PATH folder_path_output = tkinter.StringVar() label_output = tkinter.Label(master = self.tab_graph_metrics, text = "Output path") label_output.place(x = 20, y = 80) label_output.config(text = "Output path") textfield_output = tkinter.Entry(master = self.tab_graph_metrics, width = 100, state = 'disabled') textfield_output.place(x = 140, y = 80) browse_button_output = tkinter.Button(master = self.tab_graph_metrics, text = "Browse", command = lambda: self.folder_browse_button(folder_path_output, textfield_output)) browse_button_output.place(x = 750, y = 75) browse_button_output.config(width = 10, height = 1) # TRIAL INDEX label_trial_index = tkinter.Label(master = self.tab_graph_metrics, text = "Trial index") label_trial_index.place(x = 20, y = 140) label_trial_index.config(text = "Trial index") textfield_trial_index = tkinter.Entry(master = self.tab_graph_metrics, width = 100) textfield_trial_index.place(x = 140, y = 140) # LOGGING AREA text_area = tkinter.Text(self.tab_graph_metrics, height = 10, width = 100) text_area.place(x = 20, y = 220) widget = TextHandler(text_area) # START BUTTON start_button = tkinter.Button(master = self.tab_graph_metrics, text = "Start", command = lambda: self.start_graph_metrics( folder_path_data.get(), folder_path_output.get(), textfield_trial_index.get(), widget)) start_button.place(x = 375, y = 410) start_button.config(width = 10, height = 1)
def dec_performance_statistics_init(self): # FILTERED DATA folder_path_data = tkinter.StringVar() label_data = tkinter.Label(master=self.tab_dec_performance_statistics) label_data.place(x=20, y=20) label_data.config(text="Initial Runs Folder") textfield_data = tkinter.Entry( master=self.tab_dec_performance_statistics, width=100, state='disabled') textfield_data.place(x=140, y=20) browse_button_data = tkinter.Button( master=self.tab_dec_performance_statistics, text="Browse", command=lambda: self.folder_browse_button(folder_path_data, textfield_data)) browse_button_data.place(x=750, y=15) browse_button_data.config(width=10, height=1) # MULTIPLE RUNS PATH folder_path_multiple_runs = tkinter.StringVar() label_multiple_runs = tkinter.Label( master=self.tab_dec_performance_statistics, text="Multiple Runs Folder") label_multiple_runs.place(x=20, y=80) label_multiple_runs.config(text="Multiple Runs Folder") textfield_multiple_runs = tkinter.Entry( master=self.tab_dec_performance_statistics, width=100, state='disabled') textfield_multiple_runs.place(x=140, y=80) browse_button_csv = tkinter.Button( master=self.tab_dec_performance_statistics, text="Browse", command=lambda: self.folder_browse_button( folder_path_multiple_runs, textfield_multiple_runs)) browse_button_csv.place(x=750, y=75) browse_button_csv.config(width=10, height=1) # OUTPUT PATH folder_path_output = tkinter.StringVar() label_output = tkinter.Label( master=self.tab_dec_performance_statistics, text="Output path") label_output.place(x=20, y=140) label_output.config(text="Output path") textfield_output = tkinter.Entry( master=self.tab_dec_performance_statistics, width=100, state='disabled') textfield_output.place(x=140, y=140) browse_button_output = tkinter.Button( master=self.tab_dec_performance_statistics, text="Browse", command=lambda: self.folder_browse_button(folder_path_output, textfield_output)) browse_button_output.place(x=750, y=135) browse_button_output.config(width=10, height=1) # GENERATE SIMPLE PLOTS label_simple_plots = tkinter.Label( master=self.tab_dec_performance_statistics, text="Simple plots T/F") label_simple_plots.place(x=20, y=200) label_simple_plots.config(text="Simple plots T/F") textfield_simple_plots = tkinter.Entry( master=self.tab_dec_performance_statistics, width=100) textfield_simple_plots.place(x=140, y=200) # GENERATE DISTRIBUTION PLOTS label_distribution_plots = tkinter.Label( master=self.tab_dec_performance_statistics, text="Distribution plots T/F") label_distribution_plots.place(x=20, y=260) label_distribution_plots.config(text="Distribution plots T/F") textfield_distribution_plots = tkinter.Entry( master=self.tab_dec_performance_statistics, width=100) textfield_distribution_plots.place(x=140, y=260) # LOGGING AREA text_area = tkinter.Text(self.tab_dec_performance_statistics, height=10, width=100) text_area.place(x=20, y=320) widget = TextHandler(text_area) # START BUTTON start_button = tkinter.Button( master=self.tab_dec_performance_statistics, text="Start", command=lambda: self.start_dec_performance_statistics( folder_path_data.get(), folder_path_multiple_runs.get(), folder_path_output.get(), textfield_simple_plots.get(), textfield_distribution_plots.get(), widget)) start_button.place(x=375, y=510) start_button.config(width=10, height=1)
def window_configuration_filter_init(self): # FILTERED DATA folder_path_data = tkinter.StringVar() label_data = tkinter.Label(master = self.tab_window_configuration) label_data.place(x = 20, y = 20) label_data.config(text = "EEG Dots folder") textfield_data = tkinter.Entry(master = self.tab_window_configuration, width = 100, state = 'disabled') textfield_data.place(x = 140, y = 20) browse_button_data = tkinter.Button(master = self.tab_window_configuration, text = "Browse", command = lambda: self.folder_browse_button(folder_path_data, textfield_data)) browse_button_data.place(x = 750, y = 15) browse_button_data.config(width = 10, height = 1) # OUTPUT PATH folder_path_output = tkinter.StringVar() label_output = tkinter.Label(master = self.tab_window_configuration, text = "Output path") label_output.place(x = 20, y = 80) label_output.config(text = "Output path") textfield_output = tkinter.Entry(master = self.tab_window_configuration, width = 100, state = 'disabled') textfield_output.place(x = 140, y = 80) browse_button_output = tkinter.Button(master = self.tab_window_configuration, text = "Browse", command = lambda: self.folder_browse_button(folder_path_output, textfield_output)) browse_button_output.place(x = 750, y = 75) browse_button_output.config(width = 10, height = 1) # WINDOW SIZE label_window_size = tkinter.Label(master = self.tab_window_configuration, text = "Window size") label_window_size.place(x = 20, y = 140) label_window_size.config(text = "Window size") textfield_window_size = tkinter.Entry(master = self.tab_window_configuration, width = 100) textfield_window_size.place(x = 140, y = 140) # WINDOW OFFSET label_window_offset = tkinter.Label(master = self.tab_window_configuration, text = "Window offset") label_window_offset.place(x = 20, y = 200) label_window_offset.config(text = "Window offset") textfield_window_offset = tkinter.Entry(master = self.tab_window_configuration, width = 100) textfield_window_offset.place(x = 140, y = 200) # THRESHOLD VALUE label_threshold_value = tkinter.Label(master = self.tab_window_configuration, text = "Threshold value") label_threshold_value.place(x = 20, y = 260) label_threshold_value.config(text = "Threshold value") textfield_threshold_value = tkinter.Entry(master = self.tab_window_configuration, width = 100) textfield_threshold_value.place(x = 140, y = 260) # LOGGING AREA text_area = tkinter.Text(self.tab_window_configuration, height = 10, width = 100) text_area.place(x = 20, y = 320) widget = TextHandler(text_area) # START BUTTON start_button = tkinter.Button(master = self.tab_window_configuration, text = "Start", command = lambda: self.start_window_configuration(folder_path_data.get(), folder_path_output.get(), textfield_window_size.get(), textfield_window_offset.get(), textfield_threshold_value.get(), widget)) start_button.place(x = 375, y = 510) start_button.config(width = 10, height = 1)
def dec_init(self): # FILTERED DATA folder_path_data = tkinter.StringVar() label_data = tkinter.Label(master=self.tab_dec) label_data.place(x=20, y=20) label_data.config(text="EEG Raw Data Filtered") textfield_data = tkinter.Entry(master=self.tab_dec, width=100, state='disabled') textfield_data.place(x=140, y=20) browse_button_data = tkinter.Button( master=self.tab_dec, text="Browse", command=lambda: self.folder_browse_button(folder_path_data, textfield_data)) browse_button_data.place(x=750, y=15) browse_button_data.config(width=10, height=1) # CSV PATH folder_path_csv = tkinter.StringVar() label_csv = tkinter.Label(master=self.tab_dec, text="EEG Dots folder") label_csv.place(x=20, y=80) label_csv.config(text="EEG Dots folder") textfield_csv = tkinter.Entry(master=self.tab_dec, width=100, state='disabled') textfield_csv.place(x=140, y=80) browse_button_csv = tkinter.Button( master=self.tab_dec, text="Browse", command=lambda: self.folder_browse_button(folder_path_csv, textfield_csv)) browse_button_csv.place(x=750, y=75) browse_button_csv.config(width=10, height=1) # OUTPUT PATH folder_path_output = tkinter.StringVar() label_output = tkinter.Label(master=self.tab_dec, text="Output path") label_output.place(x=20, y=140) label_output.config(text="Output path") textfield_output = tkinter.Entry(master=self.tab_dec, width=100, state='disabled') textfield_output.place(x=140, y=140) browse_button_output = tkinter.Button( master=self.tab_dec, text="Browse", command=lambda: self.folder_browse_button(folder_path_output, textfield_output)) browse_button_output.place(x=750, y=135) browse_button_output.config(width=10, height=1) # WINDOW SIZE label_window_size = tkinter.Label(master=self.tab_dec, text="Window size") label_window_size.place(x=20, y=200) label_window_size.config(text="Window size") textfield_window_size = tkinter.Entry(master=self.tab_dec, width=100) textfield_window_size.place(x=140, y=200) # WINDOW OFFSET label_window_offset = tkinter.Label(master=self.tab_dec, text="Window offset") label_window_offset.place(x=20, y=260) label_window_offset.config(text="Window offset") textfield_window_offset = tkinter.Entry(master=self.tab_dec, width=100) textfield_window_offset.place(x=140, y=260) # DIVISION SIZE label_division_size = tkinter.Label(master=self.tab_dec, text="Division size") label_division_size.place(x=20, y=320) label_division_size.config(text="Division size") textfield_division_size = tkinter.Entry(master=self.tab_dec, width=100) textfield_division_size.place(x=140, y=320) # ONLY TWO SUBJECTS label_only_two = tkinter.Label(master=self.tab_dec, text="Only two subjects T/F") label_only_two.place(x=20, y=380) label_only_two.config(text="Only two subjects T/F") textfield_only_two = tkinter.Entry(master=self.tab_dec, width=100) textfield_only_two.place(x=140, y=380) # WITH VISDOM label_with_visdom = tkinter.Label(master=self.tab_dec, text="With visdom T/F") label_with_visdom.place(x=20, y=440) label_with_visdom.config(text="With visdom T/F") textfield_with_visdom = tkinter.Entry(master=self.tab_dec, width=100) textfield_with_visdom.place(x=140, y=440) # WITH VISDOM label_save_loaders = tkinter.Label(master=self.tab_dec, text="Save loaders T/F") label_save_loaders.place(x=20, y=500) label_save_loaders.config(text="Save loaders T/F") textfield_save_loaders = tkinter.Entry(master=self.tab_dec, width=100) textfield_save_loaders.place(x=140, y=500) # LOGGING AREA text_area = tkinter.Text(self.tab_dec, height=10, width=100) text_area.place(x=20, y=540) widget = TextHandler(text_area) # START BUTTON start_button = tkinter.Button( master=self.tab_dec, text="Start", command=lambda: self.start_dec( folder_path_data.get(), folder_path_csv.get(), folder_path_output.get(), textfield_window_size.get(), textfield_window_offset.get(), textfield_division_size.get(), textfield_only_two.get(), textfield_with_visdom.get(), textfield_save_loaders.get(), widget)) start_button.place(x=375, y=725) start_button.config(width=10, height=1)
def raw_data_filter_init(self): # FILTERED DATA folder_path_data = tkinter.StringVar() label_data = tkinter.Label(master=self.tab_raw_data_filter) label_data.place(x=20, y=20) label_data.config(text="EEG Dots folder") textfield_data = tkinter.Entry(master=self.tab_raw_data_filter, width=100, state='disabled') textfield_data.place(x=140, y=20) browse_button_data = tkinter.Button( master=self.tab_raw_data_filter, text="Browse", command=lambda: self.folder_browse_button(folder_path_data, textfield_data)) browse_button_data.place(x=750, y=15) browse_button_data.config(width=10, height=1) # OUTPUT PATH folder_path_output = tkinter.StringVar() label_output = tkinter.Label(master=self.tab_raw_data_filter, text="Output path") label_output.place(x=20, y=80) label_output.config(text="Output path") textfield_output = tkinter.Entry(master=self.tab_raw_data_filter, width=100, state='disabled') textfield_output.place(x=140, y=80) browse_button_output = tkinter.Button( master=self.tab_raw_data_filter, text="Browse", command=lambda: self.folder_browse_button(folder_path_output, textfield_output)) browse_button_output.place(x=750, y=75) browse_button_output.config(width=10, height=1) # DEGREE OF PARALLELISM label_degree_of_parallelism = tkinter.Label( master=self.tab_raw_data_filter, text="Degree of parallelism") label_degree_of_parallelism.place(x=20, y=140) label_degree_of_parallelism.config(text="Degree of parallelism") textfield_degree_of_parallelism = tkinter.Entry( master=self.tab_raw_data_filter, width=100) textfield_degree_of_parallelism.place(x=140, y=140) # TRIAL FILTER LENGTH label_trial_filter_length = tkinter.Label( master=self.tab_raw_data_filter, text="Trial filter length") label_trial_filter_length.place(x=20, y=200) label_trial_filter_length.config(text="Trial filter length") textfield_trial_filter_length = tkinter.Entry( master=self.tab_raw_data_filter, width=100) textfield_trial_filter_length.place(x=140, y=200) textfield_trial_filter_length.insert(0, '627') # LOGGING AREA text_area = tkinter.Text(self.tab_raw_data_filter, height=10, width=100) text_area.place(x=20, y=260) widget = TextHandler(text_area) # START BUTTON start_button = tkinter.Button( master=self.tab_raw_data_filter, text="Start", command=lambda: self.start_raw_data_filter( folder_path_data.get(), folder_path_output.get(), textfield_degree_of_parallelism.get(), textfield_trial_filter_length.get(), widget)) start_button.place(x=375, y=450) start_button.config(width=10, height=1)
def rgw_init(self): # FOLDER DATA PATH folder_path_data = tkinter.StringVar() label_data = tkinter.Label(master=self.tab_rgw) label_data.place(x=20, y=20) label_data.config(text="EEG Dots folder") textfield_data = tkinter.Entry(master=self.tab_rgw, width=100, state='disabled') textfield_data.place(x=140, y=20) browse_button_data = tkinter.Button( master=self.tab_rgw, text="Browse", command=lambda: self.folder_browse_button(folder_path_data, textfield_data)) browse_button_data.place(x=750, y=15) browse_button_data.config(width=10, height=1) # TRIAL WINDOW CONFIGURATION PATH trial_window_configuration_file_path = tkinter.StringVar() trial_window_configuration_label = tkinter.Label( master=self.tab_rgw, text="Trial config path") trial_window_configuration_label.place(x=20, y=80) trial_window_configuration_label.config(text="Trial config path") textfield_division_file = tkinter.Entry(master=self.tab_rgw, width=100, state='disabled') textfield_division_file.place(x=140, y=80) browse_button_csv = tkinter.Button( master=self.tab_rgw, text="Browse", command=lambda: self.folder_browse_button( trial_window_configuration_file_path, textfield_division_file)) browse_button_csv.place(x=750, y=75) browse_button_csv.config(width=10, height=1) # FUNCTIONAL NETWORK PATH functional_network_path = tkinter.StringVar() label_functional_network = tkinter.Label(master=self.tab_rgw, text="FN path") label_functional_network.place(x=20, y=140) label_functional_network.config(text="FN path") textfield_functional_network = tkinter.Entry(master=self.tab_rgw, width=100, state='disabled') textfield_functional_network.place(x=140, y=140) browse_button_functional_network = tkinter.Button( master=self.tab_rgw, text="Browse", command=lambda: self.folder_browse_button( functional_network_path, textfield_functional_network)) browse_button_functional_network.place(x=750, y=135) browse_button_functional_network.config(width=10, height=1) # PREVIOUS WEIGHT MATRIX PATH previous_matrix_path = tkinter.StringVar() label_weight_matrix = tkinter.Label(master=self.tab_rgw, text="Previous matrix path") label_weight_matrix.place(x=20, y=200) label_weight_matrix.config(text="Previous matrix path") textfield_previous_matrix = tkinter.Entry(master=self.tab_rgw, width=100, state='disabled') textfield_previous_matrix.place(x=140, y=200) browse_button_output = tkinter.Button( master=self.tab_rgw, text="Browse", command=lambda: self.folder_browse_button( previous_matrix_path, textfield_previous_matrix)) browse_button_output.place(x=750, y=195) browse_button_output.config(width=10, height=1) # OUTPUT PATH output_path = tkinter.StringVar() label_output = tkinter.Label(master=self.tab_rgw, text="Output path") label_output.place(x=20, y=260) label_output.config(text="Output path") textfield_output = tkinter.Entry(master=self.tab_rgw, width=100, state='disabled') textfield_output.place(x=140, y=260) browse_button_output = tkinter.Button( master=self.tab_rgw, text="Browse", command=lambda: self.folder_browse_button(output_path, textfield_output)) browse_button_output.place(x=750, y=255) browse_button_output.config(width=10, height=1) # SUBJECT NUMBER label_subject_number = tkinter.Label(master=self.tab_rgw, text="Subject number") label_subject_number.place(x=20, y=320) label_subject_number.config(text="Subject number") textfield_subject_number = tkinter.Entry(master=self.tab_rgw, width=10) textfield_subject_number.place(x=140, y=320) # TRIAL INDEX label_trial_index = tkinter.Label(master=self.tab_rgw, text="Trial index") label_trial_index.place(x=250, y=320) label_trial_index.config(text="Trial index") textfield_trial_index = tkinter.Entry(master=self.tab_rgw, width=10) textfield_trial_index.place(x=330, y=320) # WINDOW INDEX label_window_index = tkinter.Label(master=self.tab_rgw, text="Window index") label_window_index.place(x=430, y=320) label_window_index.config(text="Window index") textfield_window_index = tkinter.Entry(master=self.tab_rgw, width=10) textfield_window_index.place(x=520, y=320) # BATCH SIZE label_batch_size = tkinter.Label(master=self.tab_rgw, text="Batch size") label_batch_size.place(x=610, y=320) label_batch_size.config(text="Batch size") textfield_batch_size = tkinter.Entry(master=self.tab_rgw, width=10) textfield_batch_size.place(x=700, y=320) # INPUT LENGTH label_input_length = tkinter.Label(master=self.tab_rgw, text="Input length") label_input_length.place(x=20, y=380) label_input_length.config(text="Input length") textfield_input_length = tkinter.Entry(master=self.tab_rgw, width=10) textfield_input_length.place(x=140, y=380) # OUTPUT LENGTH label_output_length = tkinter.Label(master=self.tab_rgw, text="Output length") label_output_length.place(x=240, y=380) label_output_length.config(text="Output length") textfield_output_length = tkinter.Entry(master=self.tab_rgw, width=10) textfield_output_length.place(x=330, y=380) # NR OF BLOCKS label_nr_blocks = tkinter.Label(master=self.tab_rgw, text="Blocks") label_nr_blocks.place(x=450, y=380) label_nr_blocks.config(text="Blocks") textfield_nr_blocks = tkinter.Entry(master=self.tab_rgw, width=10) textfield_nr_blocks.place(x=520, y=380) # NR OF LAYERS label_nr_layers = tkinter.Label(master=self.tab_rgw, text="Layers") label_nr_layers.place(x=620, y=380) label_nr_layers.config(text="Layers") textfield_nr_layers = tkinter.Entry(master=self.tab_rgw, width=10) textfield_nr_layers.place(x=700, y=380) # LOADER OPTION label_loader_option = tkinter.Label(master=self.tab_rgw, text="Loader option") label_loader_option.place(x=20, y=440) label_loader_option.config(text="Loader option") textfield_loader_option = tkinter.Entry(master=self.tab_rgw, width=10) textfield_loader_option.place(x=140, y=440) # NR OF EPOCHS label_epochs = tkinter.Label(master=self.tab_rgw, text="Epochs") label_epochs.place(x=260, y=440) label_epochs.config(text="Epochs") textfield_epochs = tkinter.Entry(master=self.tab_rgw, width=10) textfield_epochs.place(x=330, y=440) # INITIAL TRAIN PERCENTAGE label_train_percentage = tkinter.Label(master=self.tab_rgw, text="roFV train") label_train_percentage.place(x=448, y=440) label_train_percentage.config(text="roFV train") textfield_train_percentage = tkinter.Entry(master=self.tab_rgw, width=10) textfield_train_percentage.place(x=520, y=440) # INITIAL CROSS PERCENTAGE label_cross_percentage = tkinter.Label(master=self.tab_rgw, text="roFV cross") label_cross_percentage.place(x=610, y=440) label_cross_percentage.config(text="roFV cross") textfield_cross_percentage = tkinter.Entry(master=self.tab_rgw, width=10) textfield_cross_percentage.place(x=700, y=440) # USE FN label_use_fn = tkinter.Label(master=self.tab_rgw, text="Use FN") label_use_fn.place(x=30, y=500) label_use_fn.config(text="Use FN") textfield_use_fn = tkinter.Entry(master=self.tab_rgw, width=10) textfield_use_fn.place(x=140, y=500) # USE PREVIOUS MATRIX label_previous_matrix = tkinter.Label(master=self.tab_rgw, text="Use weight matrix") label_previous_matrix.place(x=230, y=500) label_previous_matrix.config(text="Use weight matrix") textfield_use_previous_matrix = tkinter.Entry(master=self.tab_rgw, width=10) textfield_use_previous_matrix.place(x=330, y=500) # INCLUDE CROSS label_include_cross = tkinter.Label(master=self.tab_rgw, text="Include cross") label_include_cross.place(x=440, y=500) label_include_cross.config(text="Include cross") textfield_include_cross = tkinter.Entry(master=self.tab_rgw, width=10) textfield_include_cross.place(x=520, y=500) # USE GPU label_use_gpu = tkinter.Label(master=self.tab_rgw, text="Use GPU") label_use_gpu.place(x=620, y=500) label_use_gpu.config(text="Use GPU") textfield_use_gpu = tkinter.Entry(master=self.tab_rgw, width=10) textfield_use_gpu.place(x=700, y=500) # LOGGING AREA text_area = tkinter.Text(self.tab_rgw, height=10, width=100) text_area.place(x=20, y=560) widget = TextHandler(text_area) # START BUTTON start_button = tkinter.Button( master=self.tab_rgw, text="Start", command=lambda: self.start_rgw( data_path=folder_path_data.get(), trial_window_configuration_path= trial_window_configuration_file_path.get(), functional_network_path=functional_network_path.get(), previous_weight_matrix_path=previous_matrix_path.get(), output_path=output_path.get(), subject_number=textfield_subject_number.get(), trial_index=textfield_trial_index.get(), window_index=textfield_window_index.get(), batch_size=textfield_batch_size.get(), input_length=textfield_input_length.get(), output_length=textfield_output_length.get(), nr_of_blocks=textfield_nr_blocks.get(), nr_of_layers=textfield_nr_layers.get(), loader_option=textfield_loader_option.get(), nr_of_epochs=textfield_epochs.get(), initial_train_percentage=textfield_train_percentage.get(), initial_cross_percentage=textfield_cross_percentage.get(), use_functional_network=textfield_use_fn.get(), use_previous_matrix=textfield_use_previous_matrix.get(), include_cross=textfield_include_cross.get(), use_gpu=textfield_use_gpu.get(), widget=widget)) start_button.place(x=375, y=750) start_button.config(width=10, height=1)
def model_classification_statistics_init(self): # MODEL PATH folder_path_model = tkinter.StringVar() label_model = tkinter.Label( master=self.tab_model_classification_statistics, text="Model (with loaders)") label_model.place(x=20, y=20) label_model.config(text="Model (with loaders)") textfield_model = tkinter.Entry( master=self.tab_model_classification_statistics, width=100, state='disabled') textfield_model.place(x=140, y=20) browse_button_model = tkinter.Button( master=self.tab_model_classification_statistics, text="Browse", command=lambda: self.folder_browse_button(folder_path_model, textfield_model)) browse_button_model.place(x=750, y=15) browse_button_model.config(width=10, height=1) # TRIAL LENGTHS PATH folder_path_trial_lengths = tkinter.StringVar() label_trial_lengths = tkinter.Label( master=self.tab_model_classification_statistics, text="Trial lengths folder") label_trial_lengths.place(x=20, y=80) label_trial_lengths.config(text="Trial lengths file") textfield_trial_lengths = tkinter.Entry( master=self.tab_model_classification_statistics, width=100, state='disabled') textfield_trial_lengths.place(x=140, y=80) browse_button_model = tkinter.Button( master=self.tab_model_classification_statistics, text="Browse", command=lambda: self.folder_browse_button( folder_path_trial_lengths, textfield_trial_lengths)) browse_button_model.place(x=750, y=75) browse_button_model.config(width=10, height=1) # OUTPUT PATH folder_path_output = tkinter.StringVar() label_output = tkinter.Label( master=self.tab_model_classification_statistics, text="Output path") label_output.place(x=20, y=140) label_output.config(text="Output path") textfield_output = tkinter.Entry( master=self.tab_model_classification_statistics, width=100, state='disabled') textfield_output.place(x=140, y=140) browse_button_output = tkinter.Button( master=self.tab_model_classification_statistics, text="Browse", command=lambda: self.folder_browse_button(folder_path_output, textfield_output)) browse_button_output.place(x=750, y=135) browse_button_output.config(width=10, height=1) # MEDIAN VALUE label_median_value = tkinter.Label( master=self.tab_model_classification_statistics, text="Median value") label_median_value.place(x=20, y=200) label_median_value.config(text="Median value") textfield_median_value = tkinter.Entry( master=self.tab_model_classification_statistics, width=100) textfield_median_value.place(x=140, y=200) # GENERATE FROM TRAIN label_generate_from_train = tkinter.Label( master=self.tab_model_classification_statistics, text="Generate from train T/F") label_generate_from_train.place(x=20, y=260) label_generate_from_train.config(text="Generate from train T/F") textfield_generate_from_train = tkinter.Entry( master=self.tab_model_classification_statistics, width=100) textfield_generate_from_train.place(x=220, y=260) # PLOT GENERATE FROM CROSS label_generate_from_cross = tkinter.Label( master=self.tab_model_classification_statistics, text="Generate from cross T/F") label_generate_from_cross.place(x=20, y=320) label_generate_from_cross.config(text="Generate from cross T/F") textfield_generate_from_cross = tkinter.Entry( master=self.tab_model_classification_statistics, width=100) textfield_generate_from_cross.place(x=220, y=320) # GENERATE FROM TEST label_generate_from_test = tkinter.Label( master=self.tab_model_classification_statistics, text="Generate from test T/F") label_generate_from_test.place(x=20, y=380) label_generate_from_test.config(text="Generate from test T/F") textfield_generate_from_test = tkinter.Entry( master=self.tab_model_classification_statistics, width=100) textfield_generate_from_test.place(x=220, y=380) # LOGGING AREA text_area = tkinter.Text(self.tab_model_classification_statistics, height=10, width=100) text_area.place(x=20, y=420) widget = TextHandler(text_area) # START BUTTON start_button = tkinter.Button( master=self.tab_model_classification_statistics, text="Start", command=lambda: self.start_model_classification_statistics( folder_path_model.get(), folder_path_trial_lengths.get(), folder_path_output.get(), textfield_median_value.get(), textfield_generate_from_train.get(), textfield_generate_from_cross.get(), textfield_generate_from_test.get(), widget)) start_button.place(x=375, y=605) start_button.config(width=10, height=1)
def model_analytics_init(self): # MULTIPLE RUNS PATH folder_path_multiple_runs = tkinter.StringVar() label_multiple_runs = tkinter.Label(master=self.tab_model_analytics, text="Multiple Runs Folder") label_multiple_runs.place(x=20, y=20) label_multiple_runs.config(text="Multiple Runs Folder") textfield_multiple_runs = tkinter.Entry( master=self.tab_model_analytics, width=100, state='disabled') textfield_multiple_runs.place(x=140, y=20) browse_button_csv = tkinter.Button( master=self.tab_model_analytics, text="Browse", command=lambda: self.folder_browse_button( folder_path_multiple_runs, textfield_multiple_runs)) browse_button_csv.place(x=750, y=15) browse_button_csv.config(width=10, height=1) # OUTPUT PATH folder_path_output = tkinter.StringVar() label_output = tkinter.Label(master=self.tab_model_analytics, text="Output path") label_output.place(x=20, y=80) label_output.config(text="Output path") textfield_output = tkinter.Entry(master=self.tab_model_analytics, width=100, state='disabled') textfield_output.place(x=140, y=80) browse_button_output = tkinter.Button( master=self.tab_model_analytics, text="Browse", command=lambda: self.folder_browse_button(folder_path_output, textfield_output)) browse_button_output.place(x=750, y=75) browse_button_output.config(width=10, height=1) # PLOT WEIGHT HEATMAPS label_weight_heatmaps = tkinter.Label(master=self.tab_model_analytics, text="Weight heatmaps T/F") label_weight_heatmaps.place(x=20, y=140) label_weight_heatmaps.config(text="Weight heatmaps T/F") textfield_weight_heatmaps = tkinter.Entry( master=self.tab_model_analytics, width=100) textfield_weight_heatmaps.place(x=220, y=140) # PLOT COLLAPSED WEIGHT HEATMAPS label_collapsed_weight_heatmaps = tkinter.Label( master=self.tab_model_analytics, text="Collapsed heatmaps T/F") label_collapsed_weight_heatmaps.place(x=20, y=200) label_collapsed_weight_heatmaps.config(text="Collapsed heatmaps T/F") textfield_collapsed_weight_heatmaps = tkinter.Entry( master=self.tab_model_analytics, width=100) textfield_collapsed_weight_heatmaps.place(x=220, y=200) # PLOT COLLAPSED WEIGHT HEATMAPS ALIGNED label_collapsed_weight_heatmaps_aligned = tkinter.Label( master=self.tab_model_analytics, text="Collapsed heatmaps aligned T/F") label_collapsed_weight_heatmaps_aligned.place(x=20, y=260) label_collapsed_weight_heatmaps_aligned.config( text="Collapsed heatmaps aligned T/F") textfield_collapsed_weight_heatmaps_aligned = tkinter.Entry( master=self.tab_model_analytics, width=100) textfield_collapsed_weight_heatmaps_aligned.place(x=220, y=260) # LOGGING AREA text_area = tkinter.Text(self.tab_model_analytics, height=10, width=100) text_area.place(x=20, y=320) widget = TextHandler(text_area) # START BUTTON start_button = tkinter.Button( master=self.tab_model_analytics, text="Start", command=lambda: self.start_model_analytics( folder_path_multiple_runs.get(), folder_path_output.get(), textfield_weight_heatmaps.get(), textfield_collapsed_weight_heatmaps.get(), textfield_collapsed_weight_heatmaps_aligned.get(), widget)) start_button.place(x=375, y=510) start_button.config(width=10, height=1)