From c7857391007363d738829398104d71250528207c Mon Sep 17 00:00:00 2001 From: AlessandroBregoli Date: Wed, 13 Apr 2022 19:44:19 +0200 Subject: [PATCH] LL test for hill climbing --- tests/structure_learning.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/structure_learning.rs b/tests/structure_learning.rs index e3a43e4..2ddd513 100644 --- a/tests/structure_learning.rs +++ b/tests/structure_learning.rs @@ -92,8 +92,16 @@ fn learn_ternary_net_2_nodes (sl: T) { assert_eq!(BTreeSet::new(), net.get_parent_set(n1)); } + +#[test] +pub fn learn_ternary_net_2_nodes_hill_climbing_ll() { + let ll = LogLikelihood::init(1, 1.0); + let hl = HillClimbing::init(ll); + learn_ternary_net_2_nodes(hl); +} + #[test] -pub fn learn_ternary_net_2_nodes_hill_climbing() { +pub fn learn_ternary_net_2_nodes_hill_climbing_bic() { let bic = BIC::init(1, 1.0); let hl = HillClimbing::init(bic); learn_ternary_net_2_nodes(hl);