Vowpal Wabbit
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
VW::LEARNER::reduction_learner_builder< DataT, ExampleT > Class Template Reference

#include <learner.h>

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

Public Types

using FluentBuilderT = reduction_learner_builder< DataT, ExampleT >
 
using super = common_learner_builder< reduction_learner_builder< DataT, ExampleT >, DataT, ExampleT >
 

Public Member Functions

 reduction_learner_builder (std::unique_ptr< DataT > &&data, std::shared_ptr< learner > base, const std::string &name)
 
FluentBuilderTset_predict (void(*fn_ptr)(DataT &, learner &, ExampleT &)) &
 
FluentBuilderT && set_predict (void(*fn_ptr)(DataT &, learner &, ExampleT &)) &&
 
FluentBuilderTset_learn (void(*fn_ptr)(DataT &, learner &, ExampleT &)) &
 
FluentBuilderT && set_learn (void(*fn_ptr)(DataT &, learner &, ExampleT &)) &&
 
FluentBuilderTset_multipredict (void(*fn_ptr)(DataT &, learner &, ExampleT &, size_t, size_t, polyprediction *, bool)) &
 
FluentBuilderT && set_multipredict (void(*fn_ptr)(DataT &, learner &, ExampleT &, size_t, size_t, polyprediction *, bool)) &&
 
FluentBuilderTset_update (void(*fn_ptr)(DataT &data, learner &, ExampleT &)) &
 
FluentBuilderT && set_update (void(*fn_ptr)(DataT &data, learner &, ExampleT &)) &&
 
FluentBuilderTset_sensitivity (float(*fn_ptr)(DataT &data, learner &, example &)) &
 
FluentBuilderT && set_sensitivity (float(*fn_ptr)(DataT &data, learner &, example &)) &&
 
FluentBuilderTset_feature_width (size_t feature_width) &
 
FluentBuilderT && set_feature_width (size_t feature_width) &&
 
FluentBuilderTset_merge (void(*fn_ptr)(const std::vector< float > &, const std::vector< const DataT * > &, DataT &)) &
 
FluentBuilderT && set_merge (void(*fn_ptr)(const std::vector< float > &, const std::vector< const DataT * > &, DataT &)) &&
 
FluentBuilderTset_add (void(*fn_ptr)(const DataT &, const DataT &, DataT &)) &
 
FluentBuilderT && set_add (void(*fn_ptr)(const DataT &, const DataT &, DataT &)) &&
 
FluentBuilderTset_subtract (void(*fn_ptr)(const DataT &, const DataT &, DataT &)) &
 
FluentBuilderT && set_subtract (void(*fn_ptr)(const DataT &, const DataT &, DataT &)) &&
 
std::shared_ptr< learnerbuild ()
 
- Public Member Functions inherited from VW::LEARNER::common_learner_builder< reduction_learner_builder< DataT, ExampleT >, DataT, ExampleT >
 common_learner_builder (std::shared_ptr< learner > input_learner, std::unique_ptr< DataT > &&data, const std::string &name)
 
 common_learner_builder (const common_learner_builder &)=delete
 
 common_learner_builder (common_learner_builder &&) noexcept=default
 
common_learner_builderoperator= (const common_learner_builder &)=delete
 
common_learner_builderoperator= (common_learner_builder &&) noexcept=default
 
reduction_learner_builder< DataT, ExampleT > & set_learn_returns_prediction (bool learn_returns_prediction) &
 
reduction_learner_builder< DataT, ExampleT > && set_learn_returns_prediction (bool learn_returns_prediction) &&
 
reduction_learner_builder< DataT, ExampleT > & set_save_load (void(*fn_ptr)(DataT &, io_buf &, bool, bool)) &
 
reduction_learner_builder< DataT, ExampleT > && set_save_load (void(*fn_ptr)(DataT &, io_buf &, bool, bool)) &&
 
reduction_learner_builder< DataT, ExampleT > & set_finish (void(*fn_ptr)(DataT &)) &
 
reduction_learner_builder< DataT, ExampleT > && set_finish (void(*fn_ptr)(DataT &)) &&
 
reduction_learner_builder< DataT, ExampleT > & set_end_pass (void(*fn_ptr)(DataT &)) &
 
reduction_learner_builder< DataT, ExampleT > && set_end_pass (void(*fn_ptr)(DataT &)) &&
 
reduction_learner_builder< DataT, ExampleT > & set_end_examples (void(*fn_ptr)(DataT &)) &
 
reduction_learner_builder< DataT, ExampleT > && set_end_examples (void(*fn_ptr)(DataT &)) &&
 
reduction_learner_builder< DataT, ExampleT > & set_init_driver (void(*fn_ptr)(DataT &)) &
 
reduction_learner_builder< DataT, ExampleT > && set_init_driver (void(*fn_ptr)(DataT &)) &&
 
reduction_learner_builder< DataT, ExampleT > & set_finish_example (void(*fn_ptr)(VW::workspace &all, DataT &, ExampleT &)) &
 
reduction_learner_builder< DataT, ExampleT > && set_finish_example (void(*fn_ptr)(VW::workspace &all, DataT &, ExampleT &)) &&
 
reduction_learner_builder< DataT, ExampleT > & set_update_stats (learner_update_stats_func< DataT, ExampleT > *fn_ptr) &
 
reduction_learner_builder< DataT, ExampleT > && set_update_stats (learner_update_stats_func< DataT, ExampleT > *fn_ptr) &&
 
reduction_learner_builder< DataT, ExampleT > & set_output_example_prediction (learner_output_example_prediction_func< DataT, ExampleT > *fn_ptr) &
 
reduction_learner_builder< DataT, ExampleT > && set_output_example_prediction (learner_output_example_prediction_func< DataT, ExampleT > *fn_ptr) &&
 
reduction_learner_builder< DataT, ExampleT > & set_print_update (learner_print_update_func< DataT, ExampleT > *fn_ptr) &
 
reduction_learner_builder< DataT, ExampleT > && set_print_update (learner_print_update_func< DataT, ExampleT > *fn_ptr) &&
 
reduction_learner_builder< DataT, ExampleT > & set_cleanup_example (learner_cleanup_example_func< DataT, ExampleT > *fn_ptr) &
 
reduction_learner_builder< DataT, ExampleT > && set_cleanup_example (learner_cleanup_example_func< DataT, ExampleT > *fn_ptr) &&
 
reduction_learner_builder< DataT, ExampleT > & set_persist_metrics (void(*fn_ptr)(DataT &, metric_sink &)) &
 
reduction_learner_builder< DataT, ExampleT > && set_persist_metrics (void(*fn_ptr)(DataT &, metric_sink &)) &&
 
reduction_learner_builder< DataT, ExampleT > & set_pre_save_load (void(*fn_ptr)(VW::workspace &all, DataT &)) &
 
reduction_learner_builder< DataT, ExampleT > && set_pre_save_load (void(*fn_ptr)(VW::workspace &all, DataT &)) &&
 
reduction_learner_builder< DataT, ExampleT > & set_input_label_type (label_type_t label_type) &
 
reduction_learner_builder< DataT, ExampleT > && set_input_label_type (label_type_t label_type) &&
 
reduction_learner_builder< DataT, ExampleT > & set_output_label_type (label_type_t label_type) &
 
reduction_learner_builder< DataT, ExampleT > && set_output_label_type (label_type_t label_type) &&
 
reduction_learner_builder< DataT, ExampleT > & set_input_prediction_type (prediction_type_t pred_type) &
 
reduction_learner_builder< DataT, ExampleT > && set_input_prediction_type (prediction_type_t pred_type) &&
 
reduction_learner_builder< DataT, ExampleT > & set_output_prediction_type (prediction_type_t pred_type) &
 
reduction_learner_builder< DataT, ExampleT > && set_output_prediction_type (prediction_type_t pred_type) &&
 

Additional Inherited Members

- Public Attributes inherited from VW::LEARNER::common_learner_builder< reduction_learner_builder< DataT, ExampleT >, DataT, ExampleT >
std::shared_ptr< learnerlearner_ptr
 
std::shared_ptr< DataT > learner_data
 

Member Typedef Documentation

◆ FluentBuilderT

template<class DataT , class ExampleT >
using VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::FluentBuilderT = reduction_learner_builder<DataT, ExampleT>

◆ super

template<class DataT , class ExampleT >
using VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::super = common_learner_builder<reduction_learner_builder<DataT, ExampleT>, DataT, ExampleT>

Constructor & Destructor Documentation

◆ reduction_learner_builder()

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

Member Function Documentation

◆ build()

template<class DataT , class ExampleT >
std::shared_ptr< learner > VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::build ( )
inline

◆ set_add() [1/2]

template<class DataT , class ExampleT >
FluentBuilderT & VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_add ( void(*)(const DataT &, const DataT &, DataT &)  fn_ptr) &
inline

◆ set_add() [2/2]

template<class DataT , class ExampleT >
FluentBuilderT && VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_add ( void(*)(const DataT &, const DataT &, DataT &)  fn_ptr) &&
inline

◆ set_feature_width() [1/2]

template<class DataT , class ExampleT >
FluentBuilderT & VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_feature_width ( size_t  feature_width) &
inline

◆ set_feature_width() [2/2]

template<class DataT , class ExampleT >
FluentBuilderT && VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_feature_width ( size_t  feature_width) &&
inline

◆ set_learn() [1/2]

template<class DataT , class ExampleT >
FluentBuilderT & VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_learn ( void(*)(DataT &, learner &, ExampleT &)  fn_ptr) &
inline

◆ set_learn() [2/2]

template<class DataT , class ExampleT >
FluentBuilderT && VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_learn ( void(*)(DataT &, learner &, ExampleT &)  fn_ptr) &&
inline

◆ set_merge() [1/2]

template<class DataT , class ExampleT >
FluentBuilderT & VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_merge ( void(*)(const std::vector< float > &, const std::vector< const DataT * > &, DataT &)  fn_ptr) &
inline

◆ set_merge() [2/2]

template<class DataT , class ExampleT >
FluentBuilderT && VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_merge ( void(*)(const std::vector< float > &, const std::vector< const DataT * > &, DataT &)  fn_ptr) &&
inline

◆ set_multipredict() [1/2]

template<class DataT , class ExampleT >
FluentBuilderT & VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_multipredict ( void(*)(DataT &, learner &, ExampleT &, size_t, size_t, polyprediction *, bool)  fn_ptr) &
inline

◆ set_multipredict() [2/2]

template<class DataT , class ExampleT >
FluentBuilderT && VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_multipredict ( void(*)(DataT &, learner &, ExampleT &, size_t, size_t, polyprediction *, bool)  fn_ptr) &&
inline

◆ set_predict() [1/2]

template<class DataT , class ExampleT >
FluentBuilderT & VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_predict ( void(*)(DataT &, learner &, ExampleT &)  fn_ptr) &
inline

◆ set_predict() [2/2]

template<class DataT , class ExampleT >
FluentBuilderT && VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_predict ( void(*)(DataT &, learner &, ExampleT &)  fn_ptr) &&
inline

◆ set_sensitivity() [1/2]

template<class DataT , class ExampleT >
FluentBuilderT & VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_sensitivity ( float(*)(DataT &data, learner &, example &)  fn_ptr) &
inline

◆ set_sensitivity() [2/2]

template<class DataT , class ExampleT >
FluentBuilderT && VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_sensitivity ( float(*)(DataT &data, learner &, example &)  fn_ptr) &&
inline

◆ set_subtract() [1/2]

template<class DataT , class ExampleT >
FluentBuilderT & VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_subtract ( void(*)(const DataT &, const DataT &, DataT &)  fn_ptr) &
inline

◆ set_subtract() [2/2]

template<class DataT , class ExampleT >
FluentBuilderT && VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_subtract ( void(*)(const DataT &, const DataT &, DataT &)  fn_ptr) &&
inline

◆ set_update() [1/2]

template<class DataT , class ExampleT >
FluentBuilderT & VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_update ( void(*)(DataT &data, learner &, ExampleT &)  fn_ptr) &
inline

◆ set_update() [2/2]

template<class DataT , class ExampleT >
FluentBuilderT && VW::LEARNER::reduction_learner_builder< DataT, ExampleT >::set_update ( void(*)(DataT &data, learner &, ExampleT &)  fn_ptr) &&
inline

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