LL test for hill climbing

pull/42/head
AlessandroBregoli 3 years ago
parent a4b0a406f4
commit c785739100
  1. 10
      tests/structure_learning.rs

@ -92,8 +92,16 @@ fn learn_ternary_net_2_nodes<T: StructureLearningAlgorithm> (sl: T) {
assert_eq!(BTreeSet::new(), net.get_parent_set(n1)); 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] #[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 bic = BIC::init(1, 1.0);
let hl = HillClimbing::init(bic); let hl = HillClimbing::init(bic);
learn_ternary_net_2_nodes(hl); learn_ternary_net_2_nodes(hl);

Loading…
Cancel
Save