[−][src]Struct sparrow::scanner::booster::Boosting
The boosting algorithm. It contains two functions, one for starting the network communication, the other for starting the training procedure.
Methods
impl Boosting
[src]
pub fn new(
exp_name: String,
init_model: Tree,
num_trees: usize,
num_splits: usize,
num_features: usize,
min_gamma: f32,
training_loader: BufferLoader,
bins: Vec<Bins>,
max_sample_size: usize,
default_gamma: f32,
save_process: bool,
save_interval: usize
) -> Boosting
[src]
exp_name: String,
init_model: Tree,
num_trees: usize,
num_splits: usize,
num_features: usize,
min_gamma: f32,
training_loader: BufferLoader,
bins: Vec<Bins>,
max_sample_size: usize,
default_gamma: f32,
save_process: bool,
save_interval: usize
) -> Boosting
Create a boosting training class.
num_trees
: the number of boosting iteration. If it equals to 0, then the algorithm runs indefinitely.training_loader
: the double-buffered data loader that provides examples to the algorithm. over multiple workers, it might be a subset of the full feature set.max_sample_size
: the number of examples to scan for determining the percentiles for the features.default_gamma
: the initial value of the edgegamma
of the candidate valid weak rules.
pub fn enable_network(&mut self, name: String, port: u16)
[src]
Enable network communication. name
is the name of this worker, which can be arbitrary
and is only used for debugging purpose.
port
is the port number that used for network communication.
pub fn training(&mut self, prep_time: f32)
[src]
Start training the boosting algorithm.
Auto Trait Implementations
impl !RefUnwindSafe for Boosting
impl Send for Boosting
impl !Sync for Boosting
impl Unpin for Boosting
impl !UnwindSafe for Boosting
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,