Merge pull request #58 from AlessandroBregoli/37-refactor-approx

Replaced `approx` with `approx-0_5`
pull/61/head
Meliurwen 2 years ago committed by GitHub
commit 66661495aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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