Replaced `approx` with `approx-0_5`

pull/58/head
Meliurwen 2 years ago
parent 68b2afff59
commit 23d25be4bd
  1. 4
      Cargo.toml
  2. 1
      tests/parameter_learning.rs

@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
ndarray = {version="*", features=["approx"]} ndarray = {version="*", features=["approx-0_5"]}
thiserror = "*" thiserror = "*"
rand = "*" rand = "*"
bimap = "*" bimap = "*"
@ -15,4 +15,4 @@ statrs = "*"
rand_chacha = "*" rand_chacha = "*"
[dev-dependencies] [dev-dependencies]
approx = "*" approx = { package = "approx", version = "0.5" }

@ -10,6 +10,7 @@ use reCTBN::tools::*;
use utils::*; use utils::*;
extern crate approx; extern crate approx;
use crate::approx::AbsDiffEq;
fn learn_binary_cim<T: ParameterLearning>(pl: T) { fn learn_binary_cim<T: ParameterLearning>(pl: T) {
let mut net = CtbnNetwork::new(); let mut net = CtbnNetwork::new();

Loading…
Cancel
Save