Ejemplo n.º 1
0
    def save_params(self, filepath):

        GCCA.save_params(self, filepath)
        if len(self.z_p) != 0:
            with h5py.File(filepath, 'a') as f:
                f.create_dataset("z_p", data=self.z_p)
                f.flush()
Ejemplo n.º 2
0
    def save_params(self, filepath):

        GCCA.save_params(self, filepath)
        if len(self.z_p) != 0:
            with h5py.File(filepath, 'a') as f:
                f.create_dataset("z_p", data=self.z_p)
                f.flush()
Ejemplo n.º 3
0
    def __init__(self, n_components=2, reg_param=0.1):
        GCCA.__init__(self, n_components, reg_param)

        self.cca1 = CCA(self.n_components, self.reg_param)
        self.cca2 = CCA(self.n_components, self.reg_param)

        self.z_list = []
Ejemplo n.º 4
0
    def load_params(self, filepath):

        GCCA.load_params(self, filepath)

        with h5py.File(filepath, "r") as f:
            if "z_p" in f:
                self.z_p = f["z_p"].value
            f.flush()
Ejemplo n.º 5
0
    def load_params(self, filepath):

        GCCA.load_params(self, filepath)

        with h5py.File(filepath, "r") as f:
            if "z_p" in f:
                self.z_p = f["z_p"].value
            f.flush()
Ejemplo n.º 6
0
    def __init__(self, n_components=2, reg_param=0.1):
        GCCA.__init__(self, n_components, reg_param)

        # log setting
        program = os.path.basename(__name__)
        self.logger = logging.getLogger(program)
        logging.basicConfig(format='%(asctime)s : %(name)s : %(levelname)s : %(message)s')

        self.z_p = np.array([])
Ejemplo n.º 7
0
    def __init__(self, n_components=2, reg_param=0.1):
        GCCA.__init__(self, n_components, reg_param)

        # log setting
        program = os.path.basename(__name__)
        self.logger = logging.getLogger(program)
        logging.basicConfig(
            format='%(asctime)s : %(name)s : %(levelname)s : %(message)s')

        self.z_p = np.array([])
Ejemplo n.º 8
0
 def __init__(self, n_components=2, reg_param=0.1):
     GCCA.__init__(self, n_components, reg_param)
Ejemplo n.º 9
0
 def __init__(self, n_components=2, reg_param=0.1):
     GCCA.__init__(self, n_components, reg_param)