Old engine for Continuous Time Bayesian Networks. Superseded by reCTBN. 🐍
https://github.com/madlabunimib/PyCTBN
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1011 B
41 lines
1011 B
|
|
from abc import ABC, abstractmethod
|
|
|
|
import abstract_importer as ai
|
|
|
|
import sys
|
|
sys.path.append('.')
|
|
|
|
class AbstractSamplePath(ABC):
|
|
|
|
def __init__(self, importer: ai.AbstractImporter):
|
|
self.importer = importer
|
|
self._trajectories = None
|
|
self._structure = None
|
|
super().__init__()
|
|
|
|
@abstractmethod
|
|
def build_trajectories(self):
|
|
"""
|
|
Builds the Trajectory object that will contain all the trajectories.
|
|
Assigns the Trajectoriy object to the instance attribute _trajectories
|
|
Clears all the unused dataframes in Importer Object
|
|
|
|
Parameters:
|
|
void
|
|
Returns:
|
|
void
|
|
"""
|
|
pass
|
|
|
|
@abstractmethod
|
|
def build_structure(self):
|
|
"""
|
|
Builds the Structure object that aggregates all the infos about the net.
|
|
Assigns the Structure object to the instance attribuite _structure
|
|
Parameters:
|
|
void
|
|
Returns:
|
|
void
|
|
"""
|
|
pass
|
|
|