Skip to content

sbt_feature_transformer_param

sbt_feature_transformer_param

Classes

SBTTransformerParam (BaseParam)

Source code in federatedml/param/sbt_feature_transformer_param.py
class SBTTransformerParam(BaseParam):

    def __init__(self, dense_format=True):

        """
        Parameters
        ----------
        dense_format: bool
            return data in dense vec if True, otherwise return in sparse vec
        """
        super(SBTTransformerParam, self).__init__()
        self.dense_format = dense_format

    def check(self):
        self.check_boolean(self.dense_format, 'SBTTransformer')
Methods
__init__(self, dense_format=True) special

Parameters:

Name Type Description Default
dense_format bool

return data in dense vec if True, otherwise return in sparse vec

True
Source code in federatedml/param/sbt_feature_transformer_param.py
def __init__(self, dense_format=True):

    """
    Parameters
    ----------
    dense_format: bool
        return data in dense vec if True, otherwise return in sparse vec
    """
    super(SBTTransformerParam, self).__init__()
    self.dense_format = dense_format
check(self)
Source code in federatedml/param/sbt_feature_transformer_param.py
def check(self):
    self.check_boolean(self.dense_format, 'SBTTransformer')

Last update: 2021-12-03
Back to top