示例#1
0
    def getFieldInfo(self):
        fieldTypes = self._encoder.getDecoderOutputFieldTypes()
        assert len(self._fieldNames) == len(fieldTypes)

        return tuple(
            field_meta.FieldMetaInfo(*args) for args in zip(
                self._fieldNames, fieldTypes,
                itertools.repeat(field_meta.FieldMetaSpecial.none)))
示例#2
0
  def getFieldInfo(self):
    """Returns the metadata specifying the format of the model's output.

    The result may be different than the list of
    nupic.data.fieldmeta.FieldMetaInfo objects supplied at initialization due
    to the transcoding of some input fields into meta- fields, such as
    datetime -> dayOfWeek, timeOfDay, etc.
    """
    return tuple(field_meta.FieldMetaInfo(*args) for args in
                 itertools.izip(
                     self._fieldNames, self._fieldTypes,
                     itertools.repeat(field_meta.FieldMetaSpecial.none)))
 def getFieldInfo(self):
   return tuple(field_meta.FieldMetaInfo(*args) for args in
                itertools.izip(
                    self._fieldNames, self._fieldTypes,
                    itertools.repeat(field_meta.FieldMetaSpecial.none)))