Exemplo n.º 1
0
 def on_save_model(self, evt):
     data = {
         'y_variable': self.plot.y_variable,
         'regression': self.plot.reg,
         'x_variables': self.plot.x_variables,
         'regression_type': 'multi-variable-linear'
     }
     save_data_to_file(self,
                       'Save Model',
                       data,
                       wildcard="REG files (*.reg)|*.reg",
                       data_type='pickle',
                       initial_dir=MODELS_DIR)
Exemplo n.º 2
0
 def on_save_model(self, evt):
     data = {
         'y_variable': self.plot.y_variable,
         'regression': self.reg,
         'x_variables': self.plot.x_variables,
         'regression_type': self.title.lower().replace(' ', '_')
     }
     save_data_to_file(self,
                       'Save Model',
                       data,
                       wildcard="REG files (*.reg)|*.reg",
                       data_type='pickle',
                       initial_dir=MODELS_DIR)
Exemplo n.º 3
0
 def on_save_model(self, evt):
     data = {
         'y_variable': self.plot.y_variable,
         'regression': self.plot.reg,
         'x_variables': self.plot.x_variables,
         'regression_type': 'multi-variable-linear',
         'version': DefaultOptions().VERSION
     }
     save_data_to_file(self,
                       'Save Model',
                       data,
                       wildcard="MVR files (*.mvr)|*.mvr",
                       data_type='pickle',
                       initial_dir=MODELS_DIR)
Exemplo n.º 4
0
 def on_export_csv(self, evt):
     save_data_to_file(self.parent, "Export Endpoints to CSV",
                       self.get_csv())
Exemplo n.º 5
0
 def on_export_csv(self, evt):
     save_data_to_file(self, "Export Data Table to CSV",
                       self.data_query_results.get_csv())
Exemplo n.º 6
0
 def export_csv(self, evt):
     save_data_to_file(self.parent, "Export Time Series data to CSV",
                       self.plot.get_csv())
Exemplo n.º 7
0
 def export_csv(self, evt):
     save_data_to_file(self.parent, "Export control chart data to CSV", self.plot.get_csv())
Exemplo n.º 8
0
 def on_save_plot(self, evt):
     save_data_to_file(self.parent, 'Save control chart', self.plot.html_str,
                       wildcard="HTML files (*.html)|*.html")
Exemplo n.º 9
0
 def on_save_plot_regression(self, evt):
     save_data_to_file(self, 'Save Regression plot', self.regression.plot.html_str,
                       wildcard="HTML files (*.html)|*.html")
Exemplo n.º 10
0
 def on_save_plot_time_series(self, evt):
     save_data_to_file(self, 'Save Time Series plot', self.time_series.plot.html_str,
                       wildcard="HTML files (*.html)|*.html")
Exemplo n.º 11
0
 def on_export(self, evt):
     save_data_to_file(self, 'Save multi-variable regression data to csv',
                       self.plot.get_csv_data())
Exemplo n.º 12
0
 def on_save_plot_dvhs(self, evt):
     save_data_to_file(self, 'Save DVHs plot', self.plot.html_str,
                       wildcard="HTML files (*.html)|*.html")
Exemplo n.º 13
0
 def on_export(self, evt):
     save_data_to_file(self, 'Save machine learning data to csv',
                       self.plot.get_csv())
Exemplo n.º 14
0
 def on_save_plot(self, evt):
     save_data_to_file(self,
                       'Save random forest plot',
                       self.plot.html_str,
                       wildcard="HTML files (*.html)|*.html")
Exemplo n.º 15
0
 def on_export(self, *args):
     save_data_to_file(
         self, "Export Group %s %s to CSV" %
         (self.selected_group, self.sql_table), self.data_table.get_csv())
Exemplo n.º 16
0
 def export_csv(self, evt):
     save_data_to_file(self.parent, "Export Correlation data to CSV",
                       self.plot.get_csv())
Exemplo n.º 17
0
 def on_save_plot_control_chart(self, evt):
     save_data_to_file(self, 'Save Control Chart plot', self.control_chart.plot.html_str,
                       wildcard="HTML files (*.html)|*.html")
Exemplo n.º 18
0
 def on_export_csv(self, evt):
     save_data_to_file(self.parent, "Export RadBio table to CSV",
                       self.get_csv())
Exemplo n.º 19
0
 def on_save_plot(self, evt):
     save_data_to_file(self,
                       'Save multi-variable regression plot',
                       self.plot.html_str,
                       wildcard="HTML files (*.html)|*.html")
Exemplo n.º 20
0
 def on_export(self, evt):
     save_data_to_file(self.pane_tree, 'Export linear regression data',
                       self.plot.get_csv_data())
Exemplo n.º 21
0
 def on_save_plot_correlation(self, evt):
     save_data_to_file(self, 'Save Correlation plot', self.correlation.plot.html_str,
                       wildcard="HTML files (*.html)|*.html")
Exemplo n.º 22
0
 def on_save_plot(self, evt):
     save_data_to_file(self.pane_tree,
                       'Save linear regression plot',
                       self.plot.html_str,
                       wildcard="HTML files (*.html)|*.html")
Exemplo n.º 23
0
 def on_export(self, *args):
     save_data_to_file(self, "Export %s to CSV" % self.sql_table,
                       self.data_table.get_csv())