Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

summary() fails if called a second time #50

Closed
@xadupre

Description

@xadupre

Describe the bug

summary() fails if called a second time.

To Reproduce

nlr = OrdinaryLeastSquaresRegressor()
nlr.fit(diabetes_X_train, diabetes_y_train)
nlr.summary()  # ok
nlr.summary()  # fails

produces the following error:

nimbusml\base_predictor.py in summary(self)
    140         Returns model summary.
    141         """
--> 142         if hasattr(self, 'model_summary_') and self.model_summary_:
    143             return self.model_summary_
    144 

pandas\core\generic.py in __nonzero__(self)
   1574         raise ValueError("The truth value of a {0} is ambiguous. "
   1575                          "Use a.empty, a.bool(), a.item(), a.any() or a.all()."
-> 1576                          .format(self.__class__.__name__))
   1577 
   1578     __bool__ = __nonzero__

Desktop

  • OS: [Windows]
  • Browser [Chrome]
  • Version [python 3.7]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions