Esempio n. 1
0
    def __init__(self, skip=1, conv_len=100, **kwargs):
        CoreModel.__init__(self, name="Conv-Model", **kwargs)
        self.debug = debug

        # self.potentials["prior.temporal_prior"] = prior.temporal_prior(length=30)
        self.potentials["conv"] = unary.conv_unary(conv_len=conv_len)
        # self.potentials["class_prior"] = class_prior()
        # self.potentials["pw2"] = pw.pairwise("pw2", skip*2)
        if skip: self.potentials["pw"] = pw.pairwise(skip, name="pw")
    def __init__(self, skip=1, conv_len=100, **kwargs):
        CoreModel.__init__(self, name="Conv-Model", **kwargs)
        self.debug = debug

        # self.potentials["prior.temporal_prior"] = prior.temporal_prior(length=30)
        self.potentials["conv"] = unary.conv_unary(conv_len=conv_len)
        # self.potentials["class_prior"] = class_prior()
        # self.potentials["pw2"] = pw.pairwise("pw2", skip*2)
        if skip: self.potentials["pw"] = pw.pairwise(skip, name="pw")
    def __init__(self, n_latent, conv_len=100, skip=1, prior=False, **kwargs):
        CoreLatentModel.__init__(self,
                                 n_latent,
                                 name="Latent Convolutional Model",
                                 **kwargs)

        if prior:
            self.potentials["temporal_prior"] = priors.temporal_prior(
                length=30)
        self.potentials["conv"] = unary.conv_unary(conv_len=conv_len)
        if skip: self.potentials["pw"] = pw.pairwise(skip, name="pw")
Esempio n. 4
0
    def __init__(self, n_latent, conv_len=100, skip=1, prior=False, **kwargs):
        CoreLatentModel.__init__(self, n_latent, name="Latent Convolutional Model", **kwargs)

        if prior: self.potentials["temporal_prior"] = priors.temporal_prior(length=30)
        self.potentials["conv"] = unary.conv_unary(conv_len=conv_len)
        if skip: self.potentials["pw"] = pw.pairwise(skip, name="pw")