def fiber_weights(self): """ Get the weights for the fiber part of the matrix """ fiber_w = sgd.stochastic_gradient_descent(self.voxel_signal_demeaned, self.matrix[0], verbose=self.verbose) return fiber_w
def iso_weights(self): """ Get the weights using scipy.sparse.linalg or sklearn.linear_model.sparse """ iso_w =sgd.stochastic_gradient_descent(self.voxel_signal.ravel(), self.matrix[1], verbose=self.verbose) return iso_w
def iso_weights(self): """ Get the weights using scipy.sparse.linalg or sklearn.linear_model.sparse """ iso_w = sgd.stochastic_gradient_descent(self.voxel_signal.ravel(), self.matrix[1], verbose=self.verbose) return iso_w