def __init__(self, candidate_classes, **kwargs):
        """Initialize the FeaturizerUDF."""
        self.candidate_classes = (
            candidate_classes
            if isinstance(candidate_classes, (list, tuple))
            else [candidate_classes]
        )
        super(FeaturizerUDF, self).__init__(**kwargs)
def __init__ ( self , candidate_classes , ** kwargs ) : self . candidate_classes = ( candidate_classes if isinstance ( candidate_classes , ( list , tuple ) ) else [ candidate_classes ] ) super ( FeaturizerUDF , self ) . __init__ ( ** kwargs )
Initialize the FeaturizerUDF.