INNER CODE UNIT · Python
is_being_fitted_by_pipeline
pdpipe/pdpipe · src/pdpipe/core.py:388
def is_being_fitted_by_pipeline(self) -> bool:
"""Return True if this stage is being fitted, False otherwise.
Returns
-------
bool
True is this stage is being fitted; False otherwise.
"""
try:
return not self.fit_context.is_locked()
except AttributeError:
return False
class_attrs = {
"_exraise",
"_exmsg",
"_exmsg_post",