Пример #1
0
import sys
from U_py import pkl2mat
pkl_name = sys.argv[1]
mat_name = None
if len(sys.argv)>2:
    mat_name = sys.argv[2]

pkl2mat(pkl_name,mat_name)
Пример #2
0
                     scale_step = algo_sstep,
                     min_init_alpha = algo_mia,
                     init_alpha = algo_ia,
                     line_search_mode = algo_lsm,
                     reset_conjugate = algo_rcg,
                     algo_type = self.algo_id)    

    
"""
# linear layer: test data/cost function
python P_occ_conv.py 0 0 1 0 0 0

import cPickle;a=cPickle.load(open('dl_p0_1_0_0_3.pkl'))
"""


if __name__ == "__main__":             
    tid = int(sys.argv[1])
    if tid<=2:
        pkl_name = 'dl_p0_0_'+str(tid)+'_1_1_'+str(tid)+'_1.pkl'
        if os.path.exists(pkl_name):
            os.remove(pkl_name)
        exp = Deep_occ_test(0,0,1,[tid,1,1],tid,0)
        exp.run()
        from U_py import pkl2mat
        pkl2mat(pkl_name,'jo.mat')
    elif tid==3:
        pass