Code cleanup

This commit is contained in:
Brandon Rozek 2024-05-28 16:05:06 -04:00
parent 6b4d5828c8
commit 6bb863da97
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
3 changed files with 57 additions and 33 deletions

View file

@ -13,7 +13,8 @@ from itertools import combinations_with_replacement, permutations, product
from typing import Dict, List, Set, Tuple
__all__ = ['ModelValue', 'ModelFunction', 'Model']
__all__ = ['ModelValue', 'ModelFunction', 'Model', 'Interpretation']
class ModelValue:
def __init__(self, name):
@ -63,6 +64,8 @@ class ModelFunction:
def __call__(self, *args):
return self.mapping[args]
Interpretation = Dict[Operation, ModelFunction]
class Model:
def __init__(
self,