Utilities

Network Helpers

nupic.engine.common_networks.createTemporalAnomaly(recordParams, spatialParams={'columnCount': 2048, 'spVerbosity': 0, 'spatialImp': 'cpp', 'synPermConnected': 0.1, 'seed': 1956, 'numActiveColumnsPerInhArea': 40, 'globalInhibition': 1, 'inputWidth': 0, 'synPermInactiveDec': 0.0005, 'synPermActiveInc': 0.0001, 'potentialPct': 0.8, 'boostStrength': 0.0}, temporalParams={'columnCount': 2048, 'activationThreshold': 12, 'pamLength': 3, 'cellsPerColumn': 32, 'permanenceInc': 0.1, 'minThreshold': 9, 'verbosity': 0, 'maxSynapsesPerSegment': 32, 'outputType': 'normal', 'initialPerm': 0.21, 'globalDecay': 0.0, 'maxAge': 0, 'permanenceDec': 0.1, 'seed': 1960, 'newSynapseCount': 20, 'maxSegmentsPerCell': 128, 'temporalImp': 'cpp', 'inputWidth': 2048}, verbosity=0)

Generates a Network with connected RecordSensor, SP, TP.

This function takes care of generating regions and the canonical links. The network has a sensor region reading data from a specified input and passing the encoded representation to an SPRegion. The SPRegion output is passed to a TPRegion.

Note: this function returns a network that needs to be initialized. This allows the user to extend the network by adding further regions and connections.

Parameters:
  • recordParams – a dict with parameters for creating RecordSensor region.
  • spatialParams – a dict with parameters for creating SPRegion.
  • temporalParams – a dict with parameters for creating TPRegion.
  • verbosity – an integer representing how chatty the network will be.