|
|
@ -1,6 +1,6 @@ |
|
|
|
mod utils; |
|
|
|
mod utils; |
|
|
|
|
|
|
|
|
|
|
|
use approx::{abs_diff_eq, assert_abs_diff_eq}; |
|
|
|
use approx::assert_abs_diff_eq; |
|
|
|
use ndarray::*; |
|
|
|
use ndarray::*; |
|
|
|
use reCTBN::{ |
|
|
|
use reCTBN::{ |
|
|
|
params, |
|
|
|
params, |
|
|
@ -10,7 +10,7 @@ use reCTBN::{ |
|
|
|
use utils::generate_discrete_time_continous_node; |
|
|
|
use utils::generate_discrete_time_continous_node; |
|
|
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
#[test] |
|
|
|
fn simple_factored_reward_function_binary_node_MC() { |
|
|
|
fn simple_factored_reward_function_binary_node_mc() { |
|
|
|
let mut net = CtbnNetwork::new(); |
|
|
|
let mut net = CtbnNetwork::new(); |
|
|
|
let n1 = net |
|
|
|
let n1 = net |
|
|
|
.add_node(generate_discrete_time_continous_node(String::from("n1"), 2)) |
|
|
|
.add_node(generate_discrete_time_continous_node(String::from("n1"), 2)) |
|
|
@ -50,7 +50,7 @@ fn simple_factored_reward_function_binary_node_MC() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
#[test] |
|
|
|
fn simple_factored_reward_function_chain_MC() { |
|
|
|
fn simple_factored_reward_function_chain_mc() { |
|
|
|
let mut net = CtbnNetwork::new(); |
|
|
|
let mut net = CtbnNetwork::new(); |
|
|
|
let n1 = net |
|
|
|
let n1 = net |
|
|
|
.add_node(generate_discrete_time_continous_node(String::from("n1"), 2)) |
|
|
|
.add_node(generate_discrete_time_continous_node(String::from("n1"), 2)) |
|
|
|