1pub mod backends;
49pub mod error;
50pub mod evaluate;
51pub mod frame;
52pub mod logistic;
53pub mod pipeline;
54pub mod traits;
55pub mod transform;
56
57#[cfg(feature = "anomaly")]
58pub mod anomaly;
59#[cfg(feature = "automl")]
60pub mod automl;
61#[cfg(feature = "preprocessing")]
62pub mod balance;
63#[cfg(feature = "calibration")]
64pub mod calibration;
65#[cfg(feature = "diagnostics")]
66pub mod diagnostics;
67#[cfg(feature = "ensemble")]
68pub mod ensemble;
69#[cfg(feature = "explain")]
70pub mod explain;
71#[cfg(feature = "monitor")]
72pub mod monitor;
73#[cfg(feature = "onnx")]
74pub mod onnx;
75#[cfg(feature = "eda")]
76pub mod profile;
77#[cfg(feature = "registry")]
78pub mod registry;
79#[cfg(feature = "model-selection")]
80pub mod selection;
81#[cfg(feature = "serve")]
82pub mod serve;
83#[cfg(feature = "eda")]
84pub mod table;
85#[cfg(feature = "viz")]
86pub mod viz;
87
88#[cfg(any(feature = "model-selection", feature = "ensemble", feature = "explain"))]
89mod rng;
90
91#[cfg(feature = "python")]
92mod python;
93
94pub use error::{Error, Result};
95
96pub mod prelude {
98 pub use crate::error::{Error, Result};
99 pub use crate::evaluate::{Evaluate, Report, Task};
100 pub use crate::frame::{Dataset, Dtype, Frame};
101 pub use crate::logistic::LogisticRegression;
102 pub use crate::pipeline::Pipeline;
103 pub use crate::traits::{
104 Balancer, Clusterer, Estimator, Forecaster, Model, ParamValue, PartialFit, Predictor,
105 ProbaPredictor, Transformer,
106 };
107 pub use crate::transform::{
108 ColumnTransformer, ImputeStrategy, MinMaxScaler, OneHotEncoder, PowerTransform,
109 SimpleImputer, StandardScaler, TargetEncoder, Winsorize,
110 };
111
112 #[cfg(feature = "smartcore-backend")]
113 pub use crate::backends::smartcore::{Knn, LinearRegression, NaiveBayes, RandomForest, Svc};
114
115 #[cfg(feature = "linfa-backend")]
116 pub use crate::backends::linfa::{Dbscan, GaussianMixture, KMeans, Pca};
117
118 #[cfg(feature = "timeseries")]
119 pub use crate::backends::chronos::AutoArima;
120
121 #[cfg(feature = "incremental")]
122 pub use crate::backends::incremental::IncrementalLinear;
123
124 #[cfg(feature = "preprocessing")]
125 pub use crate::balance::{RandomOverSampler, Smote};
126
127 #[cfg(feature = "model-selection")]
128 pub use crate::selection::{
129 CrossValidator, GridSearch, KFold, Metric, ParamGrid, RandomSearch, SearchResult,
130 StratifiedKFold,
131 };
132
133 #[cfg(feature = "hpo")]
134 pub use crate::selection::{BayesSearch, SearchSpace};
135
136 #[cfg(feature = "diagnostics")]
137 pub use crate::diagnostics::Diagnostics;
138
139 #[cfg(feature = "calibration")]
140 pub use crate::calibration::{
141 reliability_curve, CalibratedClassifier, CalibrationMethod, IsotonicRegression,
142 PlattScaling, ReliabilityBin,
143 };
144
145 #[cfg(feature = "anomaly")]
146 pub use crate::anomaly::{KnnScore, Mahalanobis, OutlierDetector};
147
148 #[cfg(feature = "eda")]
149 pub use crate::profile::{Alert, ColumnProfile, Profile, TargetKind, TargetProfile};
150 #[cfg(feature = "eda")]
151 pub use crate::table::{CategoryEncoding, ColKind, Table};
152
153 #[cfg(feature = "explain")]
154 pub use crate::explain::{permutation_importance, Explain, Explainer, Explanation};
155
156 #[cfg(feature = "viz")]
157 pub use crate::viz;
158
159 #[cfg(feature = "onnx")]
160 pub use crate::onnx::{ExportOnnx, InferenceModel};
161
162 #[cfg(feature = "registry")]
163 pub use crate::registry::{Metadata, Registry, Version};
164
165 #[cfg(feature = "monitor")]
166 pub use crate::monitor::{DriftMonitor, DriftStatus};
167
168 #[cfg(feature = "serve")]
169 pub use crate::serve::Server;
170
171 #[cfg(feature = "ensemble")]
172 pub use crate::ensemble::{Bagging, Boosting, Voting, VotingKind};
173
174 #[cfg(feature = "automl")]
175 pub use crate::automl::{AutoML, AutoMLResult, Budget};
176 #[cfg(all(feature = "ensemble", feature = "model-selection"))]
177 pub use crate::ensemble::Stacking;
178}