コード例 #1
0
 def novel(self, record):
     """Return True if this record exhibits some behaviour that no previous
     record passed in to novel has shown"""
     if array_contained(record.labels, self.data):
         return False
     self.merge_record(record)
     return True
コード例 #2
0
ファイル: record.py プロジェクト: DRMacIver/glassbox
    def contained_in(self, other):
        """Return True if every behaviour observed by this record is also
        observed in the other"""

        return array_contained(self.labels, other.labels)
コード例 #3
0
    def contained_in(self, other):
        """Return True if every behaviour observed by this record is also
        observed in the other"""

        return array_contained(self.labels, other.labels)