pub struct PairAggregator {
pub target: String,
pub num_chunks: u64,
pub avg_count: u64,
pub val_map_str: HashMap<String, i32>,
pub cols: Vec<usize>,
pub vals_map_avg: HashMap<(i32, i32), f32>,
pub avg_outcome: f32,
pub col_array: Vec<usize>,
/* private fields */
}Fields§
§target: String§num_chunks: u64§avg_count: u64§val_map_str: HashMap<String, i32>§cols: Vec<usize>§vals_map_avg: HashMap<(i32, i32), f32>§avg_outcome: f32§col_array: Vec<usize>Implementations§
Source§impl PairAggregator
impl PairAggregator
pub fn new() -> Self
pub fn with_activation(activation: ActivationConfig) -> Self
pub fn vals_map_len(&self) -> usize
pub fn initialize_inputs( &mut self, col_info: &ColGraph, target: &str, column_order: &[String], ) -> Result<(), String>
pub fn make_col_combos(&mut self)
pub fn vals_map_updating( &mut self, x_processed: &HashMap<String, ColumnVec>, outcomes: &OutcomesRef<'_>, ) -> Result<(), String>
pub fn finish_map(&mut self)
pub fn use_map( &mut self, x_processed: HashMap<String, ColumnVec>, y: Vec<f32>, outcomes: Vec<f32>, ) -> Result<HashMap<String, ColumnVec>, String>
Trait Implementations§
Source§impl Clone for PairAggregator
impl Clone for PairAggregator
Source§fn clone(&self) -> PairAggregator
fn clone(&self) -> PairAggregator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PairAggregator
impl Debug for PairAggregator
Auto Trait Implementations§
impl Freeze for PairAggregator
impl RefUnwindSafe for PairAggregator
impl Send for PairAggregator
impl Sync for PairAggregator
impl Unpin for PairAggregator
impl UnsafeUnpin for PairAggregator
impl UnwindSafe for PairAggregator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more