(self, n_components)
n_components setter.

        Parameters
        ----------

        n_components: int
            The new number of principal components to return in fit_transform. 
            Must be None or greater than 0
n_components setter.
n_components setter .
def set_n_components(self, n_components):
        """
        n_components setter.

        Parameters
        ----------

        n_components: int
            The new number of principal components to return in fit_transform. 
            Must be None or greater than 0
        """

        if n_components > 0 or n_components == None:
            self.n_components = n_components
        else:
            raise ValueError("n_components can only be greater than 0 or None")
def set_n_components ( self , n_components ) : if n_components > 0 or n_components == None : self . n_components = n_components else : raise ValueError ( "n_components can only be greater than 0 or None" )