lale/lib/lale/project.py
def transform_schema(self, s_X):
        """Used internally by Lale for type-checking downstream operators."""
        if is_schema(s_X):
            if hasattr(self, "_fit_columns"):
                return self._transform_schema_fit_columns(s_X)
            keep_cols = self._hyperparams["columns"]
            drop_cols = self._hyperparams["drop_columns"]
            if (keep_cols is None or is_schema(keep_cols)) and (
                drop_cols is None or is_schema(drop_cols)
            ):
                return self._transform_schema_schema(s_X, keep_cols, drop_cols)
            return s_X
        else:
            X = lale.datasets.data_schemas.add_schema(s_X)
            assert X is not None
            self.fit(X)
            return self._transform_schema_fit_columns(X.json_schema)
Used internally by Lale for type-checking downstream operators.
Used internally by Lale for type-checking downstream operators.
Used internally by Lale for type - checking downstream operators .
def transform_schema(self, s_X):
        if is_schema(s_X):
            if hasattr(self, "_fit_columns"):
                return self._transform_schema_fit_columns(s_X)
            keep_cols = self._hyperparams["columns"]
            drop_cols = self._hyperparams["drop_columns"]
            if (keep_cols is None or is_schema(keep_cols)) and (
                drop_cols is None or is_schema(drop_cols)
            ):
                return self._transform_schema_schema(s_X, keep_cols, drop_cols)
            return s_X
        else:
            X = lale.datasets.data_schemas.add_schema(s_X)
            assert X is not None
            self.fit(X)
            return self._transform_schema_fit_columns(X.json_schema)
def transform_schema ( self , s_X ) : if is_schema ( s_X ) : if hasattr ( self , "_fit_columns" ) : return self . _transform_schema_fit_columns ( s_X ) keep_cols = self . _hyperparams [ "columns" ] drop_cols = self . _hyperparams [ "drop_columns" ] if ( keep_cols is None or is_schema ( keep_cols ) ) and ( drop_cols is None or is_schema ( drop_cols ) ) : return self . _transform_schema_schema ( s_X , keep_cols , drop_cols ) return s_X else : X = lale . datasets . data_schemas . add_schema ( s_X ) assert X is not None self . fit ( X ) return self . _transform_schema_fit_columns ( X . json_schema )
Used internally by Lale for type-checking downstream operators.
Used internally by Lale for type - checking downstream operators .
"""Used internally by Lale for type-checking downstream operators."""
self
s_X