INNER CODE UNIT · Python

__init__

ikatsov/tensor-house · supply-chain/world_of_supply/world_of_supply_environment.py:12

    def __init__(self, x, y):
        self.x = x
        self.y = y
    
    def __repr__(self):
        return f"{self.__class__.__name__} ({self.x}, {self.y})"
    
class Agent(ABC):
    def act(self, control):
        pass
    
@dataclass
class BalanceSheet:
    profit: int = 0
    loss: int = 0
        
    def total(self) -> int:
        return self.profit + self.loss

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…