def __createHTMNetwork(self, sensorParams, spEnable, spParams, tmEnable,<EOL>tmParams, clEnable, clParams, anomalyParams):
<EOL>n = Network()<EOL>n.addRegion("<STR_LIT>", "<STR_LIT>", json.dumps(dict(verbosity=sensorParams['<STR_LIT>'])))<EOL>sensor = n.regions['<STR_LIT>'].getSelf()<EOL>enabledEncoders = copy.deepcopy(sensorParams['<STR_LIT>'])<EOL>for name, params in enabledEncoders.items():<EOL><INDENT>if params is not None:<EOL><INDENT>classifierOnly = params.pop('<STR_LIT>', False)<EOL>if classifierOnly:<EOL><INDENT>enabledEncoders.pop(name)<EOL><DEDENT><DEDENT><DEDENT>disabledEncoders = copy.deepcopy(sensorParams['<STR_LIT>'])<EOL>for name, params in disabledEncoders.items():<EOL><INDENT>if params is None:<EOL><INDENT>disabledEncoders.pop(name)<EOL><DEDENT>else:<EOL><INDENT>classifierOnly = params.pop('<STR_LIT>', False)<EOL>if not classifierOnly:<EOL><INDENT>disabledEncoders.pop(name)<EOL><DEDENT><DEDENT><DEDENT>encoder = MultiEncoder(enabledEncoders)<EOL>sensor.encoder = encoder<EOL>sensor.disabledEncoder = MultiEncoder(disabledEncoders)<EOL>sensor.dataSource = DataBuffer()<EOL>prevRegion = "<STR_LIT>"<EOL>prevRegionWidth = encoder.getWidth()<EOL>if spEnable:<EOL><INDENT>spParams = spParams.copy()<EOL>spParams['<STR_LIT>'] = prevRegionWidth<EOL>self.__logger.debug("<STR_LIT>" % spParams)<EOL>n.addRegion("<STR_LIT>", "<STR_LIT>", json.dumps(spParams))<EOL>n.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>")<EOL>n.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", srcOutput="<STR_LIT>",<EOL>destInput="<STR_LIT>")<EOL>n.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", srcOutput="<STR_LIT>",<EOL>destInput="<STR_LIT>")<EOL>n.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", srcOutput="<STR_LIT>",<EOL>destInput="<STR_LIT>")<EOL>prevRegion = "<STR_LIT>"<EOL>prevRegionWidth = spParams['<STR_LIT>']<EOL><DEDENT>if tmEnable:<EOL><INDENT>tmParams = tmParams.copy()<EOL>if prevRegion == '<STR_LIT>':<EOL><INDENT>tmParams['<STR_LIT>'] = tmParams['<STR_LIT>'] = prevRegionWidth<EOL><DEDENT>else:<EOL><INDENT>assert tmParams['<STR_LIT>'] == prevRegionWidth<EOL>tmParams['<STR_LIT>'] = tmParams['<STR_LIT>']<EOL><DEDENT>self.__logger.debug("<STR_LIT>" % tmParams)<EOL>n.addRegion("<STR_LIT>", "<STR_LIT>", json.dumps(tmParams))<EOL>n.link(prevRegion, "<STR_LIT>", "<STR_LIT>", "<STR_LIT>")<EOL>if prevRegion != "<STR_LIT>":<EOL><INDENT>n.link("<STR_LIT>", prevRegion, "<STR_LIT>", "<STR_LIT>", srcOutput="<STR_LIT>",<EOL>destInput="<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>n.link("<STR_LIT>", prevRegion, "<STR_LIT>", "<STR_LIT>", srcOutput="<STR_LIT>",<EOL>destInput="<STR_LIT>")<EOL><DEDENT>n.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", srcOutput="<STR_LIT>",<EOL>destInput="<STR_LIT>")<EOL>prevRegion = "<STR_LIT>"<EOL>prevRegionWidth = tmParams['<STR_LIT>']<EOL><DEDENT>if clEnable and clParams is not None:<EOL><INDENT>clParams = clParams.copy()<EOL>clRegionName = clParams.pop('<STR_LIT>')<EOL>self.__logger.debug("<STR_LIT>" % (clRegionName,<EOL>clParams))<EOL>n.addRegion("<STR_LIT>", "<STR_LIT>" % str(clRegionName), json.dumps(clParams))<EOL>if str(clRegionName) == "<STR_LIT>":<EOL><INDENT>n.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", srcOutput="<STR_LIT>",<EOL>destInput="<STR_LIT>")<EOL>n.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", srcOutput="<STR_LIT>",<EOL>destInput="<STR_LIT>")<EOL><DEDENT>n.link("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", srcOutput="<STR_LIT>",<EOL>destInput="<STR_LIT>")<EOL>n.link(prevRegion, "<STR_LIT>", "<STR_LIT>", "<STR_LIT>")<EOL><DEDENT>if self.getInferenceType() == InferenceType.TemporalAnomaly:<EOL><INDENT>anomalyClParams = dict(<EOL>trainRecords=anomalyParams.get('<STR_LIT>', None),<EOL>cacheSize=anomalyParams.get('<STR_LIT>', None)<EOL>)<EOL>self._addAnomalyClassifierRegion(n, anomalyClParams, spEnable, tmEnable)<EOL><DEDENT>n.initialize()<EOL>return NetworkInfo(net=n, statsCollectors=[])<EOL>
Create a CLA network and return it.

        description:  HTMPredictionModel description dictionary (TODO: define schema)
        Returns:      NetworkInfo instance;