示例#1
0
import os, sys
#sys.path.append('/groups/turaga/home/turagas/research/PSI_simulations/Python/')
sys.path.append('Y:/podgorskik/PSI_simulations/Python/')
sys.path.append('/tier2/turaga/podgorskik/PSI_simulations/Python')

import SLAPMi

(Y,Sk,Fk,Su,Fu, GT) = SLAPMi.prepexpt('../Problem_perfectInit_init.mat')
Sk,Fk,Su,Fu = SLAPMi.reconstruct_cpu(Y,Sk,Fk,Su,Fu,Nframes=2,nIter=int(1e5),eta=1e-7,mu=0.9,adagrad=True, groundtruth=GT)

示例#2
0
import os, sys
#sys.path.append('/groups/turaga/home/turagas/research/PSI_simulations/Python/')
#sys.path.append('Y:/podgorskik/PSI_simulations/Python/')
sys.path.append('/tier2/turaga/podgorskik/PSI_simulations/Python')

import SLAPMi

(Y,Sk,Fk,Su,Fu, GT) = SLAPMi.prepexpt('../Problem_noise_1Kframes_init.mat')
Sk,Fk,Su,Fu = SLAPMi.reconstruct_cpu(Y,Sk,Fk,Su,Fu,Nframes=2,nIter=int(1e5),eta=1e-7,mu=0.9,adagrad=True, groundtruth=GT)

示例#3
0
import os, sys
#sys.path.append('/groups/turaga/home/turagas/research/PSI_simulations/Python/')
#sys.path.append('Y:/podgorskik/PSI_simulations/Python/')
sys.path.append('/tier2/turaga/podgorskik/PSI_simulations/Python')

import SLAPMi

(Y, Sk, Fk, Su, Fu,
 GT) = SLAPMi.prepexpt('../Problem_nonoise_20Kframes_init.mat')
Sk, Fk, Su, Fu = SLAPMi.reconstruct_cpu(Y,
                                        Sk,
                                        Fk,
                                        Su,
                                        Fu,
                                        Nframes=2,
                                        nIter=int(1e5),
                                        eta=1e-7,
                                        mu=0.9,
                                        adagrad=True,
                                        groundtruth=GT)
示例#4
0
import os, sys
#sys.path.append('/groups/turaga/home/turagas/research/PSI_simulations/Python/')
sys.path.append('Y:/podgorskik/PSI_simulations/Python/')
sys.path.append('/tier2/turaga/podgorskik/PSI_simulations/Python')

import SLAPMi

(Y,Sk,Fk,Su,Fu,GT,P0,mask,masks) = SLAPMi.prepexpt('../Problem_noise_20Kframes_init.mat')
Sk,Fk,Su,Fu = SLAPMi.reconstruct_cpu(Y,Sk,Fk,Su,Fu,P0,mask,masks,Nframes=2,nIter=int(1e5),eta=1e-7,mu=0.9,adagrad=True, groundtruth=GT)

示例#5
0
import os, sys
#sys.path.append('/groups/turaga/home/turagas/research/PSI_simulations/Python/')
sys.path.append('Y:/podgorskik/PSI_simulations/Python/')
sys.path.append('/tier2/turaga/podgorskik/PSI_simulations/Python')

import SLAPMi
from pyspark import SparkConf, SparkContext

conf = SparkConf().setAppName('SLAPmi_experiment')
sc = SparkContext(conf=conf)

(Y, Sk, Fk, Su, Fu, GT, P0, mask,
 masks) = SLAPMi.prepexpt('../Problem_nonoise_1Kframes_init.mat')
Sk, Fk, Su, Fu = SLAPMi.reconstruct_cpu(Y,
                                        Sk,
                                        Fk,
                                        Su,
                                        Fu,
                                        P0,
                                        mask,
                                        masks,
                                        Nframes=2,
                                        nIter=int(1e5),
                                        eta=1e-7,
                                        mu=0.9,
                                        adagrad=True,
                                        groundtruth=GT,
                                        sparkcontext=sc)
示例#6
0
import os, sys
sys.path.append('/tier2/turaga/podgorskik/PSI_simulations/Python')
sys.path.append('Y:\podgorskik\PSI_simulations\Python')
import SLAPMi

(Y, Sk, Fk, Su, Fu, GT) = SLAPMi.prepexpt()
Sk, Fk, Su, Fu = SLAPMi.reconstruct_cpu(
    Y[:, :25],
    Sk,
    Fk[:, :25],
    Su,
    Fu[:, :25],
    Nframes=200,
    nIter=int(1e5),
    eta=1e1,
    mu=0.7,
    adagrad=True,
    groundtruth=GT,
    out_fn='tier2/turaga/podgorskik/PSI_simulations/Python/expt1/output.mat')
示例#7
0
import os, sys
sys.path.append('/tier2/turaga/podgorskik/PSI_simulations/Python')
sys.path.append('Y:\podgorskik\PSI_simulations\Python')
import SLAPMi

(Y,Sk,Fk,Su,Fu, GT) = SLAPMi.prepexpt()
Sk,Fk,Su,Fu = SLAPMi.reconstruct_cpu(Y[:,:25],Sk,Fk[:,:25],Su,Fu[:,:25],Nframes=200,nIter=int(1e5),eta=1e1,mu=0.7,adagrad=True, groundtruth=GT, out_fn='tier2/turaga/podgorskik/PSI_simulations/Python/expt1/output.mat')
示例#8
0
import os, sys
#sys.path.append('/groups/turaga/home/turagas/research/PSI_simulations/Python/')
sys.path.append('Y:/podgorskik/PSI_simulations/Python/')
sys.path.append('Y:/podgorskik/PSI_simulations/Python/SLAPMi')
sys.path.append('/tier2/turaga/podgorskik/PSI_simulations/Python')

import SLAPMi

(Y,Sk,Fk,Su,Fu,GT,P0,mask,masks) = SLAPMi.prepexpt('../Problem_noise_20Kframes_init.mat')
Sk,Fk,Su,Fu = SLAPMi.reconstruct_cpu(Y,Sk,Fk,Su,Fu,P0,mask,masks,Nframes=2,nIter=int(1e5),eta=1e-7,mu=0.9,adagrad=True, groundtruth=GT)