diff --git a/src/cluster/kmeans.rs b/src/cluster/kmeans.rs index c542ae2..144f8c5 100644 --- a/src/cluster/kmeans.rs +++ b/src/cluster/kmeans.rs @@ -469,6 +469,7 @@ mod tests { all(target_arch = "wasm32", not(target_os = "wasi")), wasm_bindgen_test::wasm_bindgen_test )] + #[cfg(feature = "datasets")] #[test] fn fit_predict_iris() { let x = DenseMatrix::from_2d_array(&[ diff --git a/src/ensemble/random_forest_classifier.rs b/src/ensemble/random_forest_classifier.rs index 3db103b..ca06e2f 100644 --- a/src/ensemble/random_forest_classifier.rs +++ b/src/ensemble/random_forest_classifier.rs @@ -634,6 +634,7 @@ mod tests { wasm_bindgen_test::wasm_bindgen_test )] #[test] + #[cfg(feature = "datasets")] fn fit_predict_iris() { let x = DenseMatrix::from_2d_array(&[ &[5.1, 3.5, 1.4, 0.2], diff --git a/src/tree/decision_tree_classifier.rs b/src/tree/decision_tree_classifier.rs index a7b0228..cbce14e 100644 --- a/src/tree/decision_tree_classifier.rs +++ b/src/tree/decision_tree_classifier.rs @@ -919,6 +919,7 @@ mod tests { wasm_bindgen_test::wasm_bindgen_test )] #[test] + #[cfg(feature = "datasets")] fn fit_predict_iris() { let x: DenseMatrix = DenseMatrix::from_2d_array(&[ &[5.1, 3.5, 1.4, 0.2],