pymks/mks_homogenization_model.py
def _check_methods(self):
        """
        Helper function to make check that the dimensionality reduction and
        property linking methods have the appropriate methods.
        """
        if not callable(getattr(self.dimension_reducer,
                                "fit_transform", None)):
            raise RuntimeError(
                "dimension_reducer does not have fit_transform() method.")
        if not callable(getattr(self.dimension_reducer, "transform", None)):
            raise RuntimeError(
                "dimension_reducer does not have transform() method.")
        if not callable(getattr(self.linker, "fit", None)):
            raise RuntimeError(
                "property_linker does not have fit() method.")
        if not callable(getattr(self.linker, "predict", None)):
            raise RuntimeError(
                "property_linker does not have predict() method.")

        Helper function to make check that the dimensionality reduction and
        property linking methods have the appropriate methods.
        
Helper function to make check that the dimensionality reduction and
property linking methods have the appropriate methods.
Helper function to make check that the dimensionality reduction and property linking methods have the appropriate methods .
def _check_methods(self):
        if not callable(getattr(self.dimension_reducer,
                                "fit_transform", None)):
            raise RuntimeError(
                "dimension_reducer does not have fit_transform() method.")
        if not callable(getattr(self.dimension_reducer, "transform", None)):
            raise RuntimeError(
                "dimension_reducer does not have transform() method.")
        if not callable(getattr(self.linker, "fit", None)):
            raise RuntimeError(
                "property_linker does not have fit() method.")
        if not callable(getattr(self.linker, "predict", None)):
            raise RuntimeError(
                "property_linker does not have predict() method.")
def _check_methods ( self ) : if not callable ( getattr ( self . dimension_reducer , "fit_transform" , None ) ) : raise RuntimeError ( "dimension_reducer does not have fit_transform() method." ) if not callable ( getattr ( self . dimension_reducer , "transform" , None ) ) : raise RuntimeError ( "dimension_reducer does not have transform() method." ) if not callable ( getattr ( self . linker , "fit" , None ) ) : raise RuntimeError ( "property_linker does not have fit() method." ) if not callable ( getattr ( self . linker , "predict" , None ) ) : raise RuntimeError ( "property_linker does not have predict() method." )
Helper function to make check that the dimensionality reduction and
property linking methods have the appropriate methods.
Helper function to make check that the dimensionality reduction and property linking methods have the appropriate methods .
"""
        Helper function to make check that the dimensionality reduction and
        property linking methods have the appropriate methods.
        """
self