Skip to content

Instantly share code, notes, and snippets.

@rhyolight
Created September 12, 2016 20:11
Show Gist options
  • Save rhyolight/238f2b285cfeece014f39ad639e273a7 to your computer and use it in GitHub Desktop.
Save rhyolight/238f2b285cfeece014f39ad639e273a7 to your computer and use it in GitHub Desktop.
MODEL_PARAMS = \
{'inferenceArgs': {'inputPredictedField': 'auto',
'predictedField': 'packets',
'predictionSteps': [1]},
'modelConfig': {'aggregationInfo': {'days': 0,
'fields': [],
'hours': 0,
'microseconds': 0,
'milliseconds': 0,
'minutes': 0,
'months': 0,
'seconds': 0,
'weeks': 0,
'years': 0},
'model': 'CLA',
'modelParams': {'anomalyParams': {'anomalyCacheRecords': None,
'autoDetectThreshold': None,
'autoDetectWaitRecords': 5030},
'clEnable': False,
'clParams': {'alpha': 0.035828933612158,
'clVerbosity': 0,
'regionName': 'CLAClassifierRegion',
'steps': '1'},
'inferenceType': 'TemporalAnomaly',
'sensorParams': {'encoders': {'packets': {'fieldname': 'packets',
'name': 'packets',
'resolution': 153.83846153846153,
'seed': 42,
'type': 'RandomDistributedScalarEncoder'},
'bytes': {'fieldname': 'bytes',
'name': 'bytes',
'resolution': 2307692.0,
'seed': 42,
'type': 'RandomDistributedScalarEncoder'},
'duration': {'fieldname': 'duration',
'name': 'duration',
'resolution': 0.4230769230769231,
'seed': 42,
'type': 'RandomDistributedScalarEncoder'}},
'sensorAutoReset': None,
'verbosity': 0},
'spEnable': True,
'spParams': {'columnCount': 2048,
'globalInhibition': 1,
'inputWidth': 0,
'maxBoost': 1.0,
'numActiveColumnsPerInhArea': 40,
'potentialPct': 0.8,
'seed': 1956,
'spVerbosity': 0,
'spatialImp': 'cpp',
'synPermActiveInc': 0.003,
'synPermConnected': 0.2,
'synPermInactiveDec': 0.0005},
'tpEnable': True,
'tpParams': {'activationThreshold': 13,
'cellsPerColumn': 32,
'columnCount': 2048,
'globalDecay': 0.0,
'initialPerm': 0.21,
'inputWidth': 2048,
'maxAge': 0,
'maxSegmentsPerCell': 128,
'maxSynapsesPerSegment': 32,
'minThreshold': 10,
'newSynapseCount': 20,
'outputType': 'normal',
'pamLength': 3,
'permanenceDec': 0.1,
'permanenceInc': 0.1,
'seed': 1960,
'temporalImp': 'cpp',
'verbosity': 0},
'trainSPNetOnlyIfRequested': False},
'predictAheadTime': None,
'version': 1}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment