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.
16 lines
355 B
16 lines
355 B
import pandas as pd
|
|
import numpy as np
|
|
import importer
|
|
|
|
|
|
class Trajectory():
|
|
|
|
def __init__(self, data_frame):
|
|
self.actual_trajectory = self.build_trajectory(data_frame)
|
|
|
|
|
|
def build_trajectory(self, data_frame):
|
|
return data_frame[['Time','State']].to_numpy()
|
|
|
|
def get_trajectory(self):
|
|
return self.actual_trajectory
|
|
|