From a6c8d3e16d18d6383139acf0884ea467c791c837 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Fri, 15 Apr 2022 09:32:21 +0200 Subject: [PATCH] Changed the name from `rustyCTBN` to `reCTBN` (Rust Engine for Continuous Time Bayesian Networks) --- Cargo.toml | 2 +- README.md | 2 +- src/ctbn.rs | 8 ++++---- tests/ctbn.rs | 8 ++++---- tests/parameter_learning.rs | 12 ++++++------ tests/params.rs | 2 +- tests/structure_learning.rs | 14 +++++++------- tests/tools.rs | 10 +++++----- tests/utils.rs | 4 ++-- 9 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7214634..4779b47 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "rustyCTBN" +name = "reCTBN" version = "0.1.0" edition = "2021" diff --git a/README.md b/README.md index be62df2..36009cf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
-# rustyCTBN +# reCTBN
diff --git a/src/ctbn.rs b/src/ctbn.rs index 620e9e9..69196f8 100644 --- a/src/ctbn.rs +++ b/src/ctbn.rs @@ -18,10 +18,10 @@ use std::collections::BTreeSet; ///``` /// /// use std::collections::BTreeSet; -/// use rustyCTBN::network::Network; -/// use rustyCTBN::node; -/// use rustyCTBN::params; -/// use rustyCTBN::ctbn::*; +/// use reCTBN::network::Network; +/// use reCTBN::node; +/// use reCTBN::params; +/// use reCTBN::ctbn::*; /// /// //Create the domain for a discrete node /// let mut domain = BTreeSet::new(); diff --git a/tests/ctbn.rs b/tests/ctbn.rs index c7d33ec..1458637 100644 --- a/tests/ctbn.rs +++ b/tests/ctbn.rs @@ -1,10 +1,10 @@ mod utils; use utils::generate_discrete_time_continous_node; -use rustyCTBN::network::Network; -use rustyCTBN::node; -use rustyCTBN::params; +use reCTBN::network::Network; +use reCTBN::node; +use reCTBN::params; use std::collections::BTreeSet; -use rustyCTBN::ctbn::*; +use reCTBN::ctbn::*; #[test] fn define_simpe_ctbn() { diff --git a/tests/parameter_learning.rs b/tests/parameter_learning.rs index a17c925..4e22c14 100644 --- a/tests/parameter_learning.rs +++ b/tests/parameter_learning.rs @@ -1,12 +1,12 @@ mod utils; use utils::*; -use rustyCTBN::parameter_learning::*; -use rustyCTBN::ctbn::*; -use rustyCTBN::network::Network; -use rustyCTBN::node; -use rustyCTBN::params; -use rustyCTBN::tools::*; +use reCTBN::parameter_learning::*; +use reCTBN::ctbn::*; +use reCTBN::network::Network; +use reCTBN::node; +use reCTBN::params; +use reCTBN::tools::*; use ndarray::arr3; use std::collections::BTreeSet; diff --git a/tests/params.rs b/tests/params.rs index b049d4e..fab150b 100644 --- a/tests/params.rs +++ b/tests/params.rs @@ -1,5 +1,5 @@ use ndarray::prelude::*; -use rustyCTBN::params::*; +use reCTBN::params::*; use std::collections::BTreeSet; use rand_chacha::ChaCha8Rng; use rand_chacha::rand_core::SeedableRng; diff --git a/tests/structure_learning.rs b/tests/structure_learning.rs index 5c1ed84..42f948a 100644 --- a/tests/structure_learning.rs +++ b/tests/structure_learning.rs @@ -2,15 +2,15 @@ mod utils; use utils::*; -use rustyCTBN::ctbn::*; -use rustyCTBN::network::Network; -use rustyCTBN::tools::*; -use rustyCTBN::structure_learning::score_function::*; -use rustyCTBN::structure_learning::score_based_algorithm::*; -use rustyCTBN::structure_learning::StructureLearningAlgorithm; +use reCTBN::ctbn::*; +use reCTBN::network::Network; +use reCTBN::tools::*; +use reCTBN::structure_learning::score_function::*; +use reCTBN::structure_learning::score_based_algorithm::*; +use reCTBN::structure_learning::StructureLearningAlgorithm; use ndarray::{arr1, arr2, arr3}; use std::collections::BTreeSet; -use rustyCTBN::params; +use reCTBN::params; #[macro_use] diff --git a/tests/tools.rs b/tests/tools.rs index e5ba576..ac62288 100644 --- a/tests/tools.rs +++ b/tests/tools.rs @@ -1,9 +1,9 @@ -use rustyCTBN::tools::*; -use rustyCTBN::network::Network; -use rustyCTBN::ctbn::*; -use rustyCTBN::node; -use rustyCTBN::params; +use reCTBN::tools::*; +use reCTBN::network::Network; +use reCTBN::ctbn::*; +use reCTBN::node; +use reCTBN::params; use std::collections::BTreeSet; use ndarray::{arr1, arr2, arr3}; diff --git a/tests/utils.rs b/tests/utils.rs index be9748c..e9e5176 100644 --- a/tests/utils.rs +++ b/tests/utils.rs @@ -1,5 +1,5 @@ -use rustyCTBN::params; -use rustyCTBN::node; +use reCTBN::params; +use reCTBN::node; use std::collections::BTreeSet; pub fn generate_discrete_time_continous_node(name: String, cardinality: usize) -> node::Node {