Exemplo n.º 1
0
 def _get_details(self):
     n_predictors = len(self.predictors)
     if self.data:
         details = plural("{number} instance{s}", len(self.data))
     else:
         details = "No data"
     if n_predictors:
         n_valid = len(self._non_errored_predictors())
         details += plural("\n{number} model{s}", n_predictors)
         if n_valid != n_predictors:
             details += plural(" ({number} failed)", n_predictors - n_valid)
     else:
         details += "\nNo models"
     return details
Exemplo n.º 2
0
 def _get_details(self):
     details = "Data:<br>"
     details += format_summary_details(self.data, format=Qt.RichText)
     details += "<hr>"
     pred_names = [v.name for v in self.predictors]
     n_predictors = len(self.predictors)
     if n_predictors:
         n_valid = len(self._non_errored_predictors())
         details += plural("Model: {number} model{s}", n_predictors)
         if n_valid != n_predictors:
             details += f" ({n_predictors - n_valid} failed)"
         details += "<ul>"
         for name in pred_names:
             details += f"<li>{name}</li>"
         details += "</ul>"
     else:
         details += "Model:<br>No model on input."
     return details
Exemplo n.º 3
0
 def _get_details(self):
     details = "Data:<br>"
     details += format_summary_details(self.data).replace('\n', '<br>') if \
         self.data else "No data on input."
     details += "<hr>"
     pred_names = [v.name for v in self.predictors.values()]
     n_predictors = len(self.predictors)
     if n_predictors:
         n_valid = len(self._non_errored_predictors())
         details += plural("Model: {number} model{s}", n_predictors)
         if n_valid != n_predictors:
             details += f" ({n_predictors - n_valid} failed)"
         details += "<ul>"
         for name in pred_names:
             details += f"<li>{name}</li>"
         details += "</ul>"
     else:
         details += "Model:<br>No model on input."
     return details