From df99a2cf3ebbe8e9bed3c4c7de5e4d4696de3618 Mon Sep 17 00:00:00 2001 From: AlessandroBregoli Date: Thu, 22 Sep 2022 09:35:04 +0200 Subject: [PATCH] cargo workspace --- Cargo.toml | 21 ++++--------------- reCTBN/Cargo.toml | 18 ++++++++++++++++ {src => reCTBN/src}/ctbn.rs | 0 {src => reCTBN/src}/lib.rs | 0 {src => reCTBN/src}/network.rs | 0 {src => reCTBN/src}/parameter_learning.rs | 0 {src => reCTBN/src}/params.rs | 0 {src => reCTBN/src}/sampling.rs | 0 {src => reCTBN/src}/structure_learning.rs | 0 .../constraint_based_algorithm.rs | 0 .../structure_learning/hypothesis_test.rs | 0 .../score_based_algorithm.rs | 0 .../src}/structure_learning/score_function.rs | 0 {src => reCTBN/src}/tools.rs | 0 {tests => reCTBN/tests}/ctbn.rs | 0 {tests => reCTBN/tests}/parameter_learning.rs | 0 {tests => reCTBN/tests}/params.rs | 0 {tests => reCTBN/tests}/structure_learning.rs | 0 {tests => reCTBN/tests}/tools.rs | 0 {tests => reCTBN/tests}/utils.rs | 0 20 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 reCTBN/Cargo.toml rename {src => reCTBN/src}/ctbn.rs (100%) rename {src => reCTBN/src}/lib.rs (100%) rename {src => reCTBN/src}/network.rs (100%) rename {src => reCTBN/src}/parameter_learning.rs (100%) rename {src => reCTBN/src}/params.rs (100%) rename {src => reCTBN/src}/sampling.rs (100%) rename {src => reCTBN/src}/structure_learning.rs (100%) rename {src => reCTBN/src}/structure_learning/constraint_based_algorithm.rs (100%) rename {src => reCTBN/src}/structure_learning/hypothesis_test.rs (100%) rename {src => reCTBN/src}/structure_learning/score_based_algorithm.rs (100%) rename {src => reCTBN/src}/structure_learning/score_function.rs (100%) rename {src => reCTBN/src}/tools.rs (100%) rename {tests => reCTBN/tests}/ctbn.rs (100%) rename {tests => reCTBN/tests}/parameter_learning.rs (100%) rename {tests => reCTBN/tests}/params.rs (100%) rename {tests => reCTBN/tests}/structure_learning.rs (100%) rename {tests => reCTBN/tests}/tools.rs (100%) rename {tests => reCTBN/tests}/utils.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 547a8b8..53c74f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,18 +1,5 @@ -[package] -name = "reCTBN" -version = "0.1.0" -edition = "2021" +[workspace] -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -ndarray = {version="*", features=["approx-0_5"]} -thiserror = "*" -rand = "*" -bimap = "*" -enum_dispatch = "*" -statrs = "*" -rand_chacha = "*" - -[dev-dependencies] -approx = { package = "approx", version = "0.5" } +members = [ + "reCTBN", +] diff --git a/reCTBN/Cargo.toml b/reCTBN/Cargo.toml new file mode 100644 index 0000000..547a8b8 --- /dev/null +++ b/reCTBN/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "reCTBN" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +ndarray = {version="*", features=["approx-0_5"]} +thiserror = "*" +rand = "*" +bimap = "*" +enum_dispatch = "*" +statrs = "*" +rand_chacha = "*" + +[dev-dependencies] +approx = { package = "approx", version = "0.5" } diff --git a/src/ctbn.rs b/reCTBN/src/ctbn.rs similarity index 100% rename from src/ctbn.rs rename to reCTBN/src/ctbn.rs diff --git a/src/lib.rs b/reCTBN/src/lib.rs similarity index 100% rename from src/lib.rs rename to reCTBN/src/lib.rs diff --git a/src/network.rs b/reCTBN/src/network.rs similarity index 100% rename from src/network.rs rename to reCTBN/src/network.rs diff --git a/src/parameter_learning.rs b/reCTBN/src/parameter_learning.rs similarity index 100% rename from src/parameter_learning.rs rename to reCTBN/src/parameter_learning.rs diff --git a/src/params.rs b/reCTBN/src/params.rs similarity index 100% rename from src/params.rs rename to reCTBN/src/params.rs diff --git a/src/sampling.rs b/reCTBN/src/sampling.rs similarity index 100% rename from src/sampling.rs rename to reCTBN/src/sampling.rs diff --git a/src/structure_learning.rs b/reCTBN/src/structure_learning.rs similarity index 100% rename from src/structure_learning.rs rename to reCTBN/src/structure_learning.rs diff --git a/src/structure_learning/constraint_based_algorithm.rs b/reCTBN/src/structure_learning/constraint_based_algorithm.rs similarity index 100% rename from src/structure_learning/constraint_based_algorithm.rs rename to reCTBN/src/structure_learning/constraint_based_algorithm.rs diff --git a/src/structure_learning/hypothesis_test.rs b/reCTBN/src/structure_learning/hypothesis_test.rs similarity index 100% rename from src/structure_learning/hypothesis_test.rs rename to reCTBN/src/structure_learning/hypothesis_test.rs diff --git a/src/structure_learning/score_based_algorithm.rs b/reCTBN/src/structure_learning/score_based_algorithm.rs similarity index 100% rename from src/structure_learning/score_based_algorithm.rs rename to reCTBN/src/structure_learning/score_based_algorithm.rs diff --git a/src/structure_learning/score_function.rs b/reCTBN/src/structure_learning/score_function.rs similarity index 100% rename from src/structure_learning/score_function.rs rename to reCTBN/src/structure_learning/score_function.rs diff --git a/src/tools.rs b/reCTBN/src/tools.rs similarity index 100% rename from src/tools.rs rename to reCTBN/src/tools.rs diff --git a/tests/ctbn.rs b/reCTBN/tests/ctbn.rs similarity index 100% rename from tests/ctbn.rs rename to reCTBN/tests/ctbn.rs diff --git a/tests/parameter_learning.rs b/reCTBN/tests/parameter_learning.rs similarity index 100% rename from tests/parameter_learning.rs rename to reCTBN/tests/parameter_learning.rs diff --git a/tests/params.rs b/reCTBN/tests/params.rs similarity index 100% rename from tests/params.rs rename to reCTBN/tests/params.rs diff --git a/tests/structure_learning.rs b/reCTBN/tests/structure_learning.rs similarity index 100% rename from tests/structure_learning.rs rename to reCTBN/tests/structure_learning.rs diff --git a/tests/tools.rs b/reCTBN/tests/tools.rs similarity index 100% rename from tests/tools.rs rename to reCTBN/tests/tools.rs diff --git a/tests/utils.rs b/reCTBN/tests/utils.rs similarity index 100% rename from tests/utils.rs rename to reCTBN/tests/utils.rs -- 2.36.3