def createTemporalAnomaly(recordParams, spatialParams=_SP_PARAMS,<EOL>temporalParams=_TM_PARAMS,<EOL>verbosity=_VERBOSITY):
inputFilePath = recordParams["<STR_LIT>"]<EOL>scalarEncoderArgs = recordParams["<STR_LIT>"]<EOL>dateEncoderArgs = recordParams["<STR_LIT>"]<EOL>scalarEncoder = ScalarEncoder(**scalarEncoderArgs)<EOL>dateEncoder = DateEncoder(**dateEncoderArgs)<EOL>encoder = MultiEncoder()<EOL>encoder.addEncoder(scalarEncoderArgs["<STR_LIT:name>"], scalarEncoder)<EOL>encoder.addEncoder(dateEncoderArgs["<STR_LIT:name>"], dateEncoder)<EOL>network = Network()<EOL>network.addRegion("<STR_LIT>", "<STR_LIT>",<EOL>json.dumps({"<STR_LIT>": verbosity}))<EOL>sensor = network.regions["<STR_LIT>"].getSelf()<EOL>sensor.encoder = encoder<EOL>sensor.dataSource = FileRecordStream(streamID=inputFilePath)<EOL>spatialParams["<STR_LIT>"] = sensor.encoder.getWidth()<EOL>network.addRegion("<STR_LIT>", "<STR_LIT>",<EOL>json.dumps(spatialParams))<EOL>network.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>")<EOL>network.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>",<EOL>srcOutput="<STR_LIT>", destInput="<STR_LIT>")<EOL>network.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>",<EOL>srcOutput="<STR_LIT>", destInput="<STR_LIT>")<EOL>network.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>",<EOL>srcOutput="<STR_LIT>", destInput="<STR_LIT>")<EOL>network.addRegion("<STR_LIT>", "<STR_LIT>",<EOL>json.dumps(temporalParams))<EOL>network.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>")<EOL>network.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>",<EOL>srcOutput="<STR_LIT>", destInput="<STR_LIT>")<EOL>spatialPoolerRegion = network.regions["<STR_LIT>"]<EOL>spatialPoolerRegion.setParameter("<STR_LIT>", True)<EOL>spatialPoolerRegion.setParameter("<STR_LIT>", False)<EOL>temporalPoolerRegion = network.regions["<STR_LIT>"]<EOL>temporalPoolerRegion.setParameter("<STR_LIT>", True)<EOL>temporalPoolerRegion.setParameter("<STR_LIT>", True)<EOL>temporalPoolerRegion.setParameter("<STR_LIT>", True)<EOL>temporalPoolerRegion.setParameter("<STR_LIT>", True)<EOL>return network<EOL>
Generates a Network with connected RecordSensor, SP, TM.

    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 TMRegion.

    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.

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