(self, attributes, x, n_vals)
return self.CosineModel(attributes, self.axis, self.impute,
                                discrete, means, self.callback)
Return a model for cosine distances with stored means for imputation
Return a model for cosine distances with stored means for imputation
Return a model for cosine distances with stored means for imputation
def fit_rows(self, attributes, x, n_vals):
        """Return a model for cosine distances with stored means for imputation
        """
        discrete = n_vals > 0
        x = self.discrete_to_indicators(x, discrete)
        means = util.nanmean(x, axis=0)
        means = np.nan_to_num(means)
        return self.CosineModel(attributes, self.axis, self.impute,
                                discrete, means, self.callback)
def fit_rows ( self , attributes , x , n_vals ) : discrete = n_vals > 0 x = self . discrete_to_indicators ( x , discrete ) means = util . nanmean ( x , axis = 0 ) means = np . nan_to_num ( means ) return self . CosineModel ( attributes , self . axis , self . impute , discrete , means , self . callback )