Crate sklears_naive_bayes

Crate sklears_naive_bayes 

Source
Expand description

Naive Bayes classifiers

This module provides various Naive Bayes classifiers for different types of features, compatible with scikit-learn’s naive_bayes module.

Modules§

advanced_numerical_stability
Numerical stability improvements
cache_optimization
Cache-friendly data layouts and operations
const_utils
Const generic utilities for fixed-size models
cv_utils
Utility functions for image processing and computer vision
distribution_types
Distribution type markers
feature_types
Feature type markers
memory_efficient
Memory-efficient operations
numerical_stability
Extended numerical stability utilities for Naive Bayes computations
parallel
Parallel parameter estimation
prob_utils
Type-safe probability computation utilities
profile_guided_optimization
Profile-guided optimization for adaptive performance tuning
simd
SIMD-optimized probability computations
unsafe_optimizations
Unsafe performance optimizations for critical paths

Structs§

AdaBoostNaiveBayes
Adaptive Boosting (AdaBoost) for Naive Bayes classifiers
AdaptiveSmoothing
Adaptive smoothing implementation
AdvancedChainClassifier
Advanced chain classifier with sophisticated label ordering
AdvancedKDE
Kernel Density Estimator for non-parametric probability estimation
AutoFeatureTransformer
Core auto feature transformer
AutoPipelineConfig
Configuration for automated preprocessing pipelines
AutoTransformConfig
Configuration for automated transformations
AutomatedPreprocessingPipeline
Automated preprocessing pipeline
AveragingNaiveBayes
Model averaging ensemble
BANConfig
Configuration for Bayesian Network Augmented Naive Bayes
BaggedNaiveBayes
Bagged Naive Bayes ensemble
BaseDistributionParams
Base distribution parameters for Dirichlet Process
BayesianNetwork
Bayesian network structure for feature dependencies
BayesianNetworkAugmentedNB
Bayesian Network Augmented Naive Bayes classifier
BayesianUncertainty
Bayesian uncertainty quantification using Monte Carlo sampling
BenchmarkConfig
Benchmark configuration
BenchmarkResults
Benchmark results comparing sklears and scikit-learn
BernoulliNB
Bernoulli Naive Bayes classifier
BetaNB
Beta Naive Bayes classifier
BiomarkerDiscoveryNB
Biomarker discovery using Naive Bayes
BootstrapConfig
Bootstrap sampling strategy for bagging
CSVChunkReader
Out-of-core data reader that reads data from a CSV file in chunks
CalibrationMethod
Calibration methods for improving probability estimates
CalibrationMetrics
Calibration metrics for probabilistic predictions
CategoricalNB
Categorical Naive Bayes classifier
CausalDiscovery
Causal discovery algorithms
CausalDiscoveryConfig
CausalGraph
Causal graph representation
CausalNaiveBayes
Causal Naive Bayes integrating all causal inference methods
ClassHierarchy
Class hierarchy structure
ComplementNB
Complement Naive Bayes classifier
CompressedNBModel
Compressed model representation for memory-efficient storage
CompressionMetadata
Metadata for compression parameters
ConceptDriftDetector
Concept drift detector
CounterfactualReasoning
Counterfactual reasoning
CrossValidationSelector
Cross-validation for hyperparameter selection
DataCharacteristics
DataValidationConfig
Configuration for data validation
DeepGenerativeConfig
DeepGenerativeNaiveBayes
Deep Generative Naive Bayes combining all methods
DependencyTree
Tree structure for feature dependencies
DirichletComponent
Component in the Dirichlet Process mixture
DirichletProcessConfig
Configuration for Dirichlet Process Naive Bayes
DirichletProcessNB
Dirichlet Process Naive Bayes classifier
DoCalculus
Do-calculus operations
ELBOComponents
Evidence Lower Bound (ELBO) components
EmpiricalBayesEstimator
Empirical Bayes estimation for hyperparameters
EnsemblePredictions
Ensemble predictions with uncertainty estimates
EstimationResult
ExponentialFamilyNB
Exponential Family Naive Bayes classifier
ExponentialFamilyNBConfig
Configuration for Exponential Family Naive Bayes
FeatureDependency
Feature dependency representation
FeatureInteractionDetector
Core feature interaction detector
FeatureSelectionResults
Results from feature selection process
FixedSizeModel
Fixed-size model configuration using const generics
FlexibleNB
Flexible Naive Bayes classifier with adaptive distributions
FlexibleNBConfig
Configuration for Flexible Naive Bayes
FlowConfig
FluentBernoulliNB
Fluent wrapper for Bernoulli Naive Bayes
FluentCategoricalNB
Fluent wrapper for Categorical Naive Bayes
FluentComplementNB
Fluent wrapper for Complement Naive Bayes
FluentGaussianNB
Fluent wrapper for Gaussian Naive Bayes
FluentMultinomialNB
Fluent wrapper for Multinomial Naive Bayes
FluentPoissonNB
Fluent wrapper for Poisson Naive Bayes
GammaNB
Gamma Naive Bayes classifier
GaussianEstimator
Gaussian distribution parameter estimator
GaussianNB
Gaussian Naive Bayes classifier
GaussianProcess
Gaussian Process for probabilistic modeling
GeneExpressionConfig
GeneExpressionNB
Gene expression analysis using Naive Bayes
GenomicNBConfig
Configuration for genomic sequence classification
GenomicNaiveBayes
Genomic sequence Naive Bayes classifier
GenomicSequence
Genomic sequence representation
GoodnessOfFitResults
Goodness-of-fit test results
HMMConfig
Hidden Markov Model configuration for time series classification
HMMNaiveBayes
Hidden Markov Model integrated with Naive Bayes for time series classification
HierarchicalConfig
Configuration for Hierarchical Naive Bayes
HierarchicalNB
Hierarchical Naive Bayes classifier
HierarchyNode
Node in the class hierarchy
HyperparameterOptimizer
Hyperparameter optimization for multiple smoothing methods
ImageData
Image representation and preprocessing utilities
ImageMetadata
ImageNBConfig
Configuration for image-based Naive Bayes classifiers
ImageNaiveBayes
Image classification Naive Bayes classifier
InstrumentalVariables
Instrumental Variables estimation
InteractionResults
Results from feature interaction detection
KDEConfig
Configuration for kernel density estimation
KernelDensityEstimator
Kernel density estimator for a single feature
KernelNaiveBayes
Kernel-based Naive Bayes classifier
KernelParameterLearner
Kernel parameter learning through cross-validation
LDATopicModel
Simple Latent Dirichlet Allocation (LDA) topic model for feature extraction
LabelCorrelationAnalysis
Label correlation analysis for understanding relationships between labels
LabelDependencyGraph
Label dependency modeling
LabelHierarchy
Hierarchical label structure
LazyLoadedModel
Lazy-loading wrapper for large models
MemoryChunkIterator
Memory-based chunk iterator for testing
MemoryMappedNBModel
Memory-mapped parameter storage for very large models
MemoryOptimizedOps
Memory-efficient operations for large datasets
MemoryStats
Memory usage statistics
MixedNB
Mixed Naive Bayes classifier
ModelCandidate
ModelCriticismResults
Model criticism metrics
ModelDegradationMetrics
Model degradation monitoring metrics
ModelUncertaintyPropagation
Model uncertainty propagation methods
MultiLabelNB
Multi-label Naive Bayes classifier
MultinomialEstimator
Multinomial distribution parameter estimator
MultinomialNB
Multinomial Naive Bayes classifier
NGramExtractor
N-gram feature extractor for text
NPEConfig
NaiveBayesBenchmark
Comprehensive benchmark suite
NaiveBayesBuilder
Enhanced fluent API builder for Naive Bayes models
NeighborhoodStats
NetworkEdge
Edge in the Bayesian network representing conditional dependencies
NeuralLayer
Neural network layer
NeuralNBBuilder
Builder for Neural Naive Bayes configuration
NeuralNBConfig
Neural Naive Bayes network configuration
NeuralNaiveBayes
Neural Naive Bayes classifier
NeuralPosteriorEstimator
Neural Posterior Estimation
NonparametricNB
Non-parametric Naive Bayes classifier
NonparametricNBConfig
Configuration for Non-parametric Naive Bayes
NormalizingFlow
Normalizing Flow for distribution learning
OnlineGaussianStats
Online Gaussian Naive Bayes statistics
OnlineLearningConfig
Configuration for online learning
OnlineMultinomialStats
Online Multinomial Naive Bayes statistics
OnlineNaiveBayes
Online/Streaming Naive Bayes classifier
OutOfCoreNaiveBayes
Out-of-core Naive Bayes classifier
PPCResults
Posterior predictive checking results
PhylogeneticConfig
PhylogeneticNB
Phylogenetic classification using Naive Bayes
PluginRegistry
Registry for managing pluggable components
PoissonNB
Poisson Naive Bayes classifier
PredictionContext
PredictionStabilityMetrics
Prediction stability metrics
PredictiveAccuracyAssessment
Predictive accuracy assessment metrics
PredictiveAccuracyAssessor
Predictive accuracy assessor
ProbabilisticValidator
Probabilistic model validator
ProteinStructureConfig
ProteinStructureNB
Protein structure prediction using Naive Bayes
RKHSFeatureSelector
RKHS-based feature selection using kernel methods
ReliabilityTests
Statistical tests for model reliability
ReproducingKernelHilbertSpace
Reproducing Kernel Hilbert Space (RKHS) implementation
ResidualAnalysis
Residual analysis for probabilistic models
SemiNaiveBayes
Semi-Naive Bayes classifier
SemiNaiveBayesConfig
Configuration for Semi-Naive Bayes
SequenceMetadata
SerializableNBParams
Serializable model parameters for all Naive Bayes variants
SparseMatrix
Sparse matrix representation for efficient computation
SparseRow
Sparse row representation
SpatialModel
SpatialNBConfig
SpatialNaiveBayes
Spatial Naive Bayes for analyzing spatial relationships in images
StackingNaiveBayes
Stacking ensemble for Naive Bayes classifiers
StandardUncertainty
Standard uncertainty quantification implementation
StickBreaking
Stick-breaking representation for Dirichlet Process
StreamingBuffer
Streaming data buffer for managing incoming samples
StreamingTemporalNB
Streaming Temporal Naive Bayes for online classification
SufficientStatistics
Sufficient statistics for exponential family distributions
TANConfig
Configuration for Tree-Augmented Naive Bayes
TemporalConfig
Configuration for temporal Naive Bayes models
TemporalFeatureExtractor
Temporal feature extractor for time series data
TemporalNaiveBayes
Temporal Naive Bayes classifier for time series
TemporalValidationResults
Temporal validation results for time-dependent data
TextMultinomialNB
Text-optimized Multinomial Naive Bayes
TextMultinomialNBConfig
Configuration for TextMultinomialNB
TextPreprocessor
Text preprocessing pipeline for Naive Bayes
TfIdfTransformer
TF-IDF (Term Frequency-Inverse Document Frequency) transformer
TopicAugmentedConfig
Configuration for TopicAugmentedTextClassifier
TopicAugmentedTextClassifier
Text classifier with topic model features
TreeAugmentedNB
Tree-Augmented Naive Bayes classifier
TreeEdge
Edge in the dependency tree representing feature dependencies
TypedProbability
Probability wrapper with compile-time type safety
UncertaintyDecomposition
Uncertainty decomposition into epistemic and aleatoric components
UncertaintyMeasures
Uncertainty types for Naive Bayes predictions
VAEConfig
ValidationCVResults
Cross-validation results for probabilistic models
VariationalAutoencoder
Variational Autoencoder for generative Naive Bayes
VariationalBayesConfig
Configuration for Variational Bayes Naive Bayes
VariationalBayesNB
Variational Bayes Naive Bayes classifier
VariationalParameters
Variational parameters for different distributions
VectorizedOps
Vectorized operations for probability computations
VotingNaiveBayes
Voting ensemble for Naive Bayes classifiers

Enums§

ActivationFunction
Activation functions for neural networks
AdaptiveInformationCriterion
Information criteria for model selection
AdaptiveSmoothingMethod
Adaptive smoothing method that selects optimal smoothing parameters
AdvancedKernelType
Kernel types for kernel-based Naive Bayes methods
AminoAcid
Amino acid encoding for protein sequences
AutoFeatureType
Enumeration of feature types
BANError
BandwidthMethod
Bandwidth selection methods
BioinformaticsError
BoostingStrategy
Boosting strategy for Naive Bayes ensembles
CausalDiscoveryAlgorithm
CausalInferenceError
ChainOrderingStrategy
Strategy for ordering labels in classifier chains
ColorSpace
ComputerVisionError
CovarianceType
Covariance type for HMM emission probabilities
DataType
Supporting types and structures
DeepGenerativeError
DependencySelectionMethod
Method for selecting feature dependencies
DirichletProcessError
Distribution
Supported distributions for adaptive selection
DistributionParams
Distribution parameters for flexible NB
ExponentialFamily
Exponential family distribution types
FeatureDistribution
Feature distribution type for Mixed Naive Bayes
FeatureSelectionMethod
Supported feature selection methods
FeatureType
HierarchicalError
ImbalanceHandlingMethod
Supported imbalance handling methods
InferenceMethod
InteractionMethod
Supported interaction detection methods
KernelBandwidthMethod
Methods for automatic bandwidth selection
KernelError
KernelScoringMetric
KernelType
Kernel types for density estimation
MissingValueStrategy
Supported missing value imputation strategies
MultiLabelStrategy
Strategy for multi-label classification
NaiveBayesPreset
Configuration presets for common use cases
NaturalParameters
Natural parameters for exponential family distributions
NeuralNBError
Nucleotide
Nucleotide encoding for DNA/RNA sequences
OnlineLearningError
OutlierDetectionMethod
Supported outlier detection methods
ParameterEstimationMethod
Method for estimating natural parameters
PredictionStrategy
ScoringMethod
SecondaryStructure
Protein secondary structure: Helix, Sheet, Coil
SelectionCriterion
SelectionMethod
Method for selecting the best distribution
SequenceType
Sequence types for bioinformatics analysis
SmoothingMethod
Smoothing method enumeration
StatisticalTest
Supported statistical tests
StructureLearningMethod
TANError
TransformMethod
Supported transformation methods
ValidationCVStrategy
Cross-validation strategy for probabilistic models
ValidationError
ValidationScoringMetric
VariationalError
VariationalInferenceMethod
VotingStrategy
Voting strategy for ensemble methods

Traits§

ComposableSmoothingMethod
Trait for composable smoothing methods
DataChunkIterator
Trait for data sources that can provide chunks of data
ExtensibleParameterEstimator
Trait for extensible parameter estimation methods
FlexibleModelSelector
Trait for flexible model selection systems
FluentNaiveBayesModel
Common trait for all fluent Naive Bayes models
NaiveBayesEstimator
Trait for Naive Bayes estimators that can be used in ensembles
NaiveBayesMixin
Base trait for Naive Bayes classifiers
ParameterEstimator
Trait for parameter estimation
PluggableDistribution
Trait for probability distributions that can be plugged into Naive Bayes models
PredictionMiddleware
Trait for middleware components in prediction pipelines
ProbabilisticModel
Trait for probabilistic models that can be validated
TypeSafeProbabilisticModel
Zero-cost probabilistic abstractions
TypedProbabilityOps
Type-safe probability operations
UncertaintyQuantification
Uncertainty quantification methods
ValidateFeatureType
Compile-time feature type validation

Functions§

enhanced_log
Enhanced logarithm function with better numerical stability
get_global_registry
Get a reference to the global plugin registry
log_sum_exp
Log-sum-exp function for numerical stability in probability computations
naive_bayes
Convenience function to create a new Naive Bayes builder
naive_bayes_preset
Convenience function to create a new Naive Bayes builder with preset
normalize_log_probs
Normalize log probabilities to probabilities with numerical stability
register_distribution
Register a custom distribution globally
register_middleware
Register middleware globally
register_model_selector
Register a custom model selector globally
register_parameter_estimator
Register a custom parameter estimator globally
register_smoothing_method
Register a custom smoothing method globally