Exemplo n.º 1
0
def vbsfuncv3(args):
    x = args["x"]
    param_dict = {
        "spParams": {
            "potentialPct": x[3],
            "numActiveColumnsPerInhArea": int(x[4]),
            "synPermConnected": x[5],
            "synPermInactiveDec": x[6]
        },
        "tmParams": {
            "activationThreshold": int(x[7])
        },
        "newSynapseCount": int(x[8])
    }
    return HTM(VeryBasicSequence(pattern=args["pattern"]),
               x[0],
               params=param_dict,
               verbosity=0).train(error_method="binary",
                                  sibt=int(x[1]),
                                  iter_per_cycle=int(x[2]))
Exemplo n.º 2
0
def vbsfuncv2(args):
    x = args["x"]
    return HTM(VeryBasicSequence(pattern=args["pattern"]), x[0],
               verbosity=0).train(error_method="binary",
                                  sibt=int(x[1]),
                                  iter_per_cycle=int(x[2]))
Exemplo n.º 3
0
def sanfunc(x):
    return HTM(VeryBasicSequence(pattern=1, n=1000), x[0],
               verbosity=0).train(error_method="binary")
Exemplo n.º 4
0
def vbsfuncv1(args):
    x = args["x"]
    return HTM(VeryBasicSequence(pattern=args["pattern"]), x[0],
               verbosity=0).train(error_method="binary")
Exemplo n.º 5
0
def func5(x):
    time_series = VeryBasicSequence(pattern=4)
    network = HTM(time_series, x[0], cellsPerMiniColumn=8, verbosity=0)
    return train(network, error_method="Binary")