In [2]:
import fidutils as vis

fiy=0.83

# transform INC to IND
class fd:
    def __init__(self):
        self.ul=0
    def __call__(self,x):
        return ul-x
    def set_upper_limit(ul):
        self.ul=ul


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-543bf5486134> in <module>()
----> 1 import fidutils as vis
      2 
      3 fiy=0.83
      4 
      5 # transform INC to IND

/run/user/1000/gvfs/sftp:host=hawk/publicwork/ramsauer/GANs/FIDvsINC/fidutils.py in <module>()
      3 import math
      4 import random
----> 5 import tensorflow as tf
      6 import numpy as np
      7 import scipy.stats as st

ModuleNotFoundError: No module named 'tensorflow'

In [15]:


In [18]:
Er = vis.Experiment_reader()
pth = "out/gn"
Er.set_path(pth)
Er.read_all_expriemts()
ank=1.0/8
ul = Er.get_data("Inc")['gn_001'][0].max()
def fd(x):
    return ul-x
Er.print_param_description(0)
ank=1.0/8
# plot IND
Er.annotated_plot2(0,'Inc', zoom=0.8, pad=0, max_hight=3, xybox=None, fd=fd,
                   figposx=[ank,3*ank,5*ank,7*ank], 
                   figposy=[fiy,fiy,fiy,fiy], xlim=[-0.5,3.5], ylim=[0,16],
                  ylabel="IND", add_points=True)
# plot FID
Er.annotated_plot2(0,'Fid', zoom=0.8, pad=0, max_hight=300, xybox=None,
                  figposx=[ank,3*ank,5*ank,7*ank], figposy=[fiy,fiy,fiy,fiy], xlim=[-0.5,3.5], ylim=[0,500], ylabel="FID", add_points=True)


gn_001: {'alpha': 0.0}

In [8]:
Er = vis.Experiment_reader()
pth = "out/sp"
Er.set_path(pth)
Er.read_all_expriemts()
ank=1.0/8
ul = Er.get_data("Inc")['sp_001'][0].max()
def fd(x):
    return ul-x
Er.print_param_description(0)
ank=1.0/8
Er.annotated_plot2(0,'Inc', zoom=0.8, pad=0, max_hight=3, xybox=None, fd=fd,
                   figposx=[ank,3*ank,5*ank,7*ank], figposy=[fiy,fiy,fiy,fiy], xlim=[-0.5,3.5], ylim=[0,16],
                  ylabel="IND", add_points=True)
Er.annotated_plot2(0,'Fid', zoom=0.8, pad=0, max_hight=300, xybox=None,
                   figposx=[ank,3*ank,5*ank,7*ank], figposy=[fiy,fiy,fiy,fiy], xlim=[-0.5,3.5], ylim=[0,650], ylabel="FID", add_points=True)


sp_001: {'alpha': 0.0}

In [14]:
Er = vis.Experiment_reader()
pth = "out/blur"
Er.set_path(pth)
Er.read_all_expriemts()
ank=1.0/8
ul = Er.get_data("Inc")['blur_001'][0].max()
def fd(x):
    return ul-x
Er.print_param_description(0)
ank=1.0/8
Er.annotated_plot2(0,'Inc', zoom=0.8, pad=0, max_hight=3, xybox=None, fd=fd,
                   figposx=[ank,3*ank,5*ank,7*ank], figposy=[fiy,fiy,fiy,fiy], xlim=[-0.5,3.5], ylim=[0,16],
                  ylabel="IND", add_points=True) #n_datapoints=4)
Er.annotated_plot2(0,'Fid', zoom=0.8, pad=0, max_hight=300, xybox=None,
                   figposx=[ank,3*ank,5*ank,7*ank], figposy=[fiy,fiy,fiy,fiy], xlim=[-0.5,3.5], ylim=[0,500], ylabel="FID", add_points=True)


blur_001: {'alpha': 0.0}
# DEBUG:::len(data) = 4
# DEBUG:::len(imgs) = 4
# DEBUG:::len(data) = 4
# DEBUG:::len(data) = 4
# DEBUG:::mi-0.1*r = -0.960127735138
# DEBUG:::len(data) = 4
# DEBUG:::len(imgs) = 4
# DEBUG:::len(data) = 4
# DEBUG:::len(data) = 4
# DEBUG:::mi-0.1*r = -28.3580941916

In [15]:
Er = vis.Experiment_reader()
pth = "out/rect"
Er.set_path(pth)
Er.read_all_expriemts()
ank=1.0/8
ul = Er.get_data("Inc")['rect_001'][0].max()
def fd(x):
    return ul-x
Er.print_param_description(0)
ank=1.0/8
Er.annotated_plot2(0,'Inc', zoom=0.8, pad=0, max_hight=3, xybox=None, fd=fd,
                   figposx=[ank,3*ank,5*ank,7*ank], figposy=[fiy,fiy,fiy,fiy], xlim=[-0.5,3.5], ylim=[0,16],
                  ylabel="IND", add_points=True)
Er.annotated_plot2(0,'Fid', zoom=0.8, pad=0, max_hight=300, xybox=None,
                   figposx=[ank,3*ank,5*ank,7*ank], figposy=[fiy,fiy,fiy,fiy], xlim=[-0.5,3.5], ylim=[0,400], ylabel="FID", add_points=True)


rect_001: {'alpha': 0.0}
# DEBUG:::len(data) = 4
# DEBUG:::len(imgs) = 4
# DEBUG:::len(data) = 4
# DEBUG:::len(data) = 4
# DEBUG:::mi-0.1*r = -0.884866857529
# DEBUG:::len(data) = 4
# DEBUG:::len(imgs) = 4
# DEBUG:::len(data) = 4
# DEBUG:::len(data) = 4
# DEBUG:::mi-0.1*r = -22.0744677039

In [ ]: