Ejemplo n.º 1
0
def ConvBig(c, **kargs):
    return n.LeNet([(32, 3, 3, 1), (32, 4, 4, 2), (64, 3, 3, 1),
                    (64, 4, 4, 2)], [512, 512, c],
                   padding=1,
                   last_lin=True,
                   last_zono=True,
                   **kargs)
Ejemplo n.º 2
0
def Yale_VGG(c, **kargs):
    return n.LeNet([(8, 3, 3, 1), (8, 3, 3, 2), (16, 3, 3, 1), (16, 3, 3, 2),
                    (32, 3, 3, 1), (32, 3, 3, 2), (64, 3, 3, 1),
                    (64, 3, 3, 2)], [200, c],
                   padding=1,
                   last_lin=True,
                   **kargs)
Ejemplo n.º 3
0
def convHuge(c, **kargs):
    return n.LeNet([(128, 3, 3, 1), (128, 4, 4, 1), (256, 3, 3, 1),
                    (256, 4, 4, 1)], [512, 512, c],
                   padding=1,
                   normal=True,
                   bias=False,
                   last_lin=True,
                   **kargs)
Ejemplo n.º 4
0
def ConvLargeIBP(c, **kargs):
    return n.LeNet([(64, 3, 3, 1), (64, 3, 3, 1), (128, 3, 3, 2),
                    (128, 3, 3, 1), (128, 3, 3, 1)], [200, c],
                   padding=1,
                   ibp_init=True,
                   bias=True,
                   last_lin=True,
                   last_zono=True,
                   **kargs)
Ejemplo n.º 5
0
def TruncatedVGG(c, **kargs):
    return n.LeNet([(64, 3, 3, 1), (64, 3, 3, 1), (128, 3, 3, 2),
                    (128, 3, 3, 1)], [512, c],
                   padding=1,
                   ibp_init=True,
                   bias=True,
                   last_lin=True,
                   last_zono=True,
                   **kargs)
Ejemplo n.º 6
0
def skip(c, **kargs):
    return n.SkipNet(n.LeNet([(16, 3, 3), (16, 3, 3), (32, 3, 3)], [200]),
                     n.LeNet([(32, 4, 4), (32, 4, 4)], [200]), [200, c],
                     **kargs)
Ejemplo n.º 7
0
def convSuper(c, **kargs):
    return n.LeNet([(32, 3, 3, 1), (32, 4, 4, 1), (64, 3, 3, 1),
                    (64, 4, 4, 1)], [512, 512, c],
                   last_lin=True,
                   **kargs)
Ejemplo n.º 8
0
def convMed(c, **kargs):
    return n.LeNet([(16, 4, 4, 2), (32, 4, 4, 2)], [100, c],
                   padding=1,
                   last_lin=True,
                   **kargs)
Ejemplo n.º 9
0
def convSmall(c, **kargs):
    return n.LeNet([(16, 4, 4, 2), (32, 4, 4, 2)], [100, c],
                   last_lin=True,
                   **kargs)
Ejemplo n.º 10
0
def convMedGNoPad(c, **kargs):
    return n.LeNet([(16, 4, 4, 1), (32, 4, 4, 1)], [1000, c],
                   padding=0,
                   last_lin=True,
                   **kargs)
Ejemplo n.º 11
0
def convNOPAD(c, **kargs):
    return n.LeNet([(5, 4, 4, 1)], [50, c], padding=0, last_lin=True, **kargs)
Ejemplo n.º 12
0
def convMedGTANH(c, **kargs):
    return n.LeNet([(16, 4, 4, 2), (32, 4, 4, 2)], [1000, c],
                   padding=1,
                   last_lin=True,
                   activation="Tanh",
                   **kargs)
Ejemplo n.º 13
0
def convMedGSIGMOID(c, **kargs):
    return n.LeNet([(16, 4, 4, 2), (32, 4, 4, 2)], [1000, c],
                   padding=1,
                   last_lin=True,
                   activation="Sigmoid",
                   **kargs)
Ejemplo n.º 14
0
def FMNIST_VGG(c, **kargs):
    return n.LeNet([(256, 3, 3, 1), (256, 3, 3, 1), (256, 3, 3, 2),
                    (512, 3, 3, 1), (512, 3, 3, 1), (512, 3, 3, 2)], [200, c],
                   padding=1,
                   last_lin=True,
                   **kargs)