From 54524ba72ce752e81cab4db46922cacf01c01c31 Mon Sep 17 00:00:00 2001 From: relf Date: Thu, 25 Jan 2024 16:26:55 +0100 Subject: [PATCH] Fix feature activation --- Cargo.toml | 2 +- src/gp_mix.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 014699ab..60d12d00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ default = [] nlopt = ["egobox-ego/nlopt", "egobox-gp/nlopt"] serializable-gp = ["egobox-gp/serializable"] -persistent-moe = ["egobox-moe/persistent", "serializable-gp"] +persistent-moe = ["egobox-moe/persistent"] blas = ["ndarray/blas", "egobox-gp/blas", "egobox-moe/blas", "egobox-ego/blas"] [dependencies] diff --git a/src/gp_mix.rs b/src/gp_mix.rs index e0f10b14..4afb04e8 100644 --- a/src/gp_mix.rs +++ b/src/gp_mix.rs @@ -10,7 +10,8 @@ //! See the [tutorial notebook](https://github.com/relf/egobox/doc/Gpx_Tutorial.ipynb) for usage. //! use crate::types::*; -use egobox_moe::{GpMixture, GpSurrogate}; +#[allow(unused_imports)] // Avoid linting problem +use egobox_moe::{FullGpSurrogate, GpMixture, GpSurrogate}; use linfa::{traits::Fit, Dataset}; use ndarray_rand::rand::SeedableRng; use numpy::{IntoPyArray, PyArray2, PyReadonlyArray2};