for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
class Checks:
_fit_successful = False
def verify_fit(function):
def wrapper(self, X, y):
out = function(self, X, y)
self._fit_successful = True
return out
return wrapper