Vowpal Wabbit
Public Member Functions | List of all members
VW::LEARNER::reduction_learner_builder< DataT, ExampleT, BaseLearnerT > Struct Template Reference

#include <learner.h>

Inheritance diagram for VW::LEARNER::reduction_learner_builder< DataT, ExampleT, BaseLearnerT >:
VW::LEARNER::common_learner_builder< reduction_learner_builder< DataT, ExampleT, BaseLearnerT >, DataT, ExampleT, BaseLearnerT >

Public Member Functions

 reduction_learner_builder (std::unique_ptr< DataT > &&data, BaseLearnerT *base, const std::string &name)
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_prediction_type (prediction_type_t pred_type)
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_label_type (label_type_t label_type)
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_params_per_weight (size_t params_per_weight)
 
learner< DataT, ExampleT > * build ()
 
- Public Member Functions inherited from VW::LEARNER::common_learner_builder< reduction_learner_builder< DataT, ExampleT, BaseLearnerT >, DataT, ExampleT, BaseLearnerT >
 common_learner_builder (learner< DataT, ExampleT > *learner, std::unique_ptr< DataT > &&data, const std::string &name)
 
 common_learner_builder (std::unique_ptr< DataT > &&data, const std::string &name)
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_predict (void(*fn_ptr)(DataT &, BaseLearnerT &, ExampleT &))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_learn (void(*fn_ptr)(DataT &, BaseLearnerT &, ExampleT &))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_multipredict (void(*fn_ptr)(DataT &, BaseLearnerT &, ExampleT &, size_t, size_t, polyprediction *, bool))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_update (void(*u)(DataT &data, BaseLearnerT &base, ExampleT &))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_sensitivity (float(*fn_ptr)(DataT &data, base_learner &base, example &))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_learn_returns_prediction (bool learn_returns_prediction)
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_save_load (void(*fn_ptr)(DataT &, io_buf &, bool, bool))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_finish (void(*fn_ptr)(DataT &))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_end_pass (void(*fn_ptr)(DataT &))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_end_examples (void(*fn_ptr)(DataT &))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_init_driver (void(*fn_ptr)(DataT &))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_finish_example (void(*fn_ptr)(vw &all, DataT &, ExampleT &))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_print_example (void(*fn_ptr)(vw &all, DataT &, ExampleT &))
 
reduction_learner_builder< DataT, ExampleT, BaseLearnerT > & set_persist_metrics (void(*fn_ptr)(DataT &, metric_sink &))
 

Additional Inherited Members

- Public Types inherited from VW::LEARNER::common_learner_builder< reduction_learner_builder< DataT, ExampleT, BaseLearnerT >, DataT, ExampleT, BaseLearnerT >
using end_fptr_type = void(*)(vw &, void *, void *)
 
using finish_fptr_type = void(*)(void *)
 
- Public Attributes inherited from VW::LEARNER::common_learner_builder< reduction_learner_builder< DataT, ExampleT, BaseLearnerT >, DataT, ExampleT, BaseLearnerT >
learner< DataT, ExampleT > * _learner
 

Constructor & Destructor Documentation

template<class DataT, class ExampleT, class BaseLearnerT>
VW::LEARNER::reduction_learner_builder< DataT, ExampleT, BaseLearnerT >::reduction_learner_builder ( std::unique_ptr< DataT > &&  data,
BaseLearnerT *  base,
const std::string &  name 
)
inline

Member Function Documentation

template<class DataT, class ExampleT, class BaseLearnerT>
learner<DataT, ExampleT>* VW::LEARNER::reduction_learner_builder< DataT, ExampleT, BaseLearnerT >::build ( )
inline
template<class DataT, class ExampleT, class BaseLearnerT>
reduction_learner_builder<DataT, ExampleT, BaseLearnerT>& VW::LEARNER::reduction_learner_builder< DataT, ExampleT, BaseLearnerT >::set_label_type ( label_type_t  label_type)
inline
template<class DataT, class ExampleT, class BaseLearnerT>
reduction_learner_builder<DataT, ExampleT, BaseLearnerT>& VW::LEARNER::reduction_learner_builder< DataT, ExampleT, BaseLearnerT >::set_params_per_weight ( size_t  params_per_weight)
inline
template<class DataT, class ExampleT, class BaseLearnerT>
reduction_learner_builder<DataT, ExampleT, BaseLearnerT>& VW::LEARNER::reduction_learner_builder< DataT, ExampleT, BaseLearnerT >::set_prediction_type ( prediction_type_t  pred_type)
inline

The documentation for this struct was generated from the following file: