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.
42 lines
1021 B
42 lines
1021 B
4 years ago
|
from abc import ABC, abstractmethod
|
||
4 years ago
|
|
||
4 years ago
|
import sys
|
||
|
sys.path.append('../')
|
||
|
|
||
|
import utility.abstract_importer as ai
|
||
4 years ago
|
|
||
|
|
||
|
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
|