1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Common public types and functions grouped by feature.
//!
//! Import the root to use every enabled category, or select a category submodule.
//! The root resolves the shared `Average` name to the metrics enum when metrics are enabled.
//!
//! # Examples
//!
//! ```rust
//! // Bring every enabled category's items into scope at once:
//! use rustyml::prelude::*;
//!
//! // Or import a single category:
//! // `use rustyml::prelude::machine_learning::*;` for the machine learning models.
//! // `use rustyml::prelude::utils::*;` for the utility functions.
//! // `use rustyml::prelude::metrics::*;` for the metric functions.
//! ```
/// Prelude re-exports for the machine learning estimators, traits, and shared enums
/// Prelude re-exports for evaluation metrics
/// Prelude re-exports for the neural network framework: tensors, layers, losses, optimizers,
/// and models
/// Prelude re-exports for the utils module: preprocessing, dataset splitting, and shared
/// estimator traits
// Flatten every category into the prelude root
pub use *;
pub use *;
pub use *;
pub use *;
// `Average` names 2 different items: the metrics averaging mode and the neural network merge
// layer. Both globs above export it, so this explicit re-export breaks the tie and keeps the
// averaging mode at the root. The layer stays reachable as `neural_network::layers::Average`
pub use crateAverage;