Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
    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
Exemplo n.º 4
0
    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