示例#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)
示例#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)
示例#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)
示例#4
0
 def on_export_csv(self, evt):
     save_data_to_file(self.parent, "Export Endpoints to CSV",
                       self.get_csv())
示例#5
0
 def on_export_csv(self, evt):
     save_data_to_file(self, "Export Data Table to CSV",
                       self.data_query_results.get_csv())
示例#6
0
 def export_csv(self, evt):
     save_data_to_file(self.parent, "Export Time Series data to CSV",
                       self.plot.get_csv())
示例#7
0
 def export_csv(self, evt):
     save_data_to_file(self.parent, "Export control chart data to CSV", self.plot.get_csv())
示例#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")
示例#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")
示例#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")
示例#11
0
 def on_export(self, evt):
     save_data_to_file(self, 'Save multi-variable regression data to csv',
                       self.plot.get_csv_data())
示例#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")
示例#13
0
 def on_export(self, evt):
     save_data_to_file(self, 'Save machine learning data to csv',
                       self.plot.get_csv())
示例#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")
示例#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())
示例#16
0
 def export_csv(self, evt):
     save_data_to_file(self.parent, "Export Correlation data to CSV",
                       self.plot.get_csv())
示例#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")
示例#18
0
 def on_export_csv(self, evt):
     save_data_to_file(self.parent, "Export RadBio table to CSV",
                       self.get_csv())
示例#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")
示例#20
0
 def on_export(self, evt):
     save_data_to_file(self.pane_tree, 'Export linear regression data',
                       self.plot.get_csv_data())
示例#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")
示例#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")
示例#23
0
 def on_export(self, *args):
     save_data_to_file(self, "Export %s to CSV" % self.sql_table,
                       self.data_table.get_csv())