예제 #1
0
파일: cca.py 프로젝트: rupy/bridged-cca
    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()
예제 #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()
예제 #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 = []
예제 #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()
예제 #5
0
파일: cca.py 프로젝트: rupy/bridged-cca
    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()
예제 #6
0
파일: cca.py 프로젝트: rupy/bridged-cca
    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([])
예제 #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([])
예제 #8
0
 def __init__(self, n_components=2, reg_param=0.1):
     GCCA.__init__(self, n_components, reg_param)
예제 #9
0
파일: bridged_cca.py 프로젝트: rupy/GCCA
 def __init__(self, n_components=2, reg_param=0.1):
     GCCA.__init__(self, n_components, reg_param)