예제 #1
0
    testingSet="testingData.csv",
    # Data set and encoding
    numAValues=25,
    numBValues=25,
    b0Likelihood=0.90,  # Likelihood of getting 0 out of field B. None means
    #  not any more likely than any other B value.
    testSetPct=0.0,  # What percent of unique combinations to reserve
    encodingFieldStyleA="sdr",  # contiguous, sdr
    encodingFieldWidthA=50,
    encodingOnBitsA=21,
    encodingFieldStyleB="sdr",  # contiguous, sdr
    encodingFieldWidthB=50,  # 15, None means set same as A
    encodingOnBitsB=23,  # 3, None means set same as A
)

updateConfigFromSubConfig(config)

if config["encodingFieldWidthB"] is None:
    config["encodingFieldWidthB"] = config["encodingFieldWidthA"]
if config["encodingOnBitsB"] is None:
    config["encodingOnBitsB"] = config["encodingOnBitsA"]

if config["tpActivationThresholds"] is None:
    config["tpActivationThresholds"] = range(8, config["spNumActivePerInhArea"] + 1)


def getBaseDatasets():
    # we generate all of our data
    return dict()

예제 #2
0
파일: description.py 프로젝트: emmaai/nupic
    spNumActivePerInhArea=3,

    # TM params
    tpNCellsPerCol=20,
    tpInitialPerm=0.6,
    tpPermanenceInc=0.1,
    tpPermanenceDec=0.000,
    tpGlobalDecay=0.0,
    tpPAMLength=1,
    tpMaxSeqLength=0,
    tpMaxAge=1,
    tpTimingEvery=0,
    temporalImp='cpp',
)

updateConfigFromSubConfig(config)

# ==========================================================================
# Was a complete dataset package specified? This is an alternate way to
#   specify a bunch of dataset related config parameters at once. They are
#  especially helpful when running permutations - it keeps the permutations
#  directory names shorter.
if config['dataSetPackage'] is not None:
    assert (config['filenameTrain'] == 'confidence/confidence1.csv')
    assert (config['filenameTest'] == 'confidence/confidence1.csv')
    assert (config['filenameCategory'] == None)
    assert (config['dataGenScript'] == None)
    assert (config['dataDesc'] == None)
    assert (config['dataGenNumCategories'] == None)
    assert (config['dataGenNumTraining'] == None)
    assert (config['dataGenNumTesting'] == None)