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

#include <learner.h>

Public Types

using end_fptr_type = void(*)(vw &, void *, void *)
 
using finish_fptr_type = void(*)(void *)
 

Public Member Functions

 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)
 
FluentBuilderT & set_predict (void(*fn_ptr)(DataT &, BaseLearnerT &, ExampleT &))
 
FluentBuilderT & set_learn (void(*fn_ptr)(DataT &, BaseLearnerT &, ExampleT &))
 
FluentBuilderT & set_multipredict (void(*fn_ptr)(DataT &, BaseLearnerT &, ExampleT &, size_t, size_t, polyprediction *, bool))
 
FluentBuilderT & set_update (void(*u)(DataT &data, BaseLearnerT &base, ExampleT &))
 
FluentBuilderT & set_sensitivity (float(*fn_ptr)(DataT &data, base_learner &base, example &))
 
FluentBuilderT & set_learn_returns_prediction (bool learn_returns_prediction)
 
FluentBuilderT & set_save_load (void(*fn_ptr)(DataT &, io_buf &, bool, bool))
 
FluentBuilderT & set_finish (void(*fn_ptr)(DataT &))
 
FluentBuilderT & set_end_pass (void(*fn_ptr)(DataT &))
 
FluentBuilderT & set_end_examples (void(*fn_ptr)(DataT &))
 
FluentBuilderT & set_init_driver (void(*fn_ptr)(DataT &))
 
FluentBuilderT & set_finish_example (void(*fn_ptr)(vw &all, DataT &, ExampleT &))
 
FluentBuilderT & set_print_example (void(*fn_ptr)(vw &all, DataT &, ExampleT &))
 
FluentBuilderT & set_persist_metrics (void(*fn_ptr)(DataT &, metric_sink &))
 

Public Attributes

learner< DataT, ExampleT > * _learner = nullptr
 

Member Typedef Documentation

template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
using VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::end_fptr_type = void (*)(vw&, void*, void*)
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
using VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::finish_fptr_type = void (*)(void*)

Constructor & Destructor Documentation

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

Member Function Documentation

template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_end_examples ( void(*)(DataT &)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_end_pass ( void(*)(DataT &)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_finish ( void(*)(DataT &)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_finish_example ( void(*)(vw &all, DataT &, ExampleT &)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_init_driver ( void(*)(DataT &)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_learn ( void(*)(DataT &, BaseLearnerT &, ExampleT &)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_learn_returns_prediction ( bool  learn_returns_prediction)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_multipredict ( void(*)(DataT &, BaseLearnerT &, ExampleT &, size_t, size_t, polyprediction *, bool)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_persist_metrics ( void(*)(DataT &, metric_sink &)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_predict ( void(*)(DataT &, BaseLearnerT &, ExampleT &)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_print_example ( void(*)(vw &all, DataT &, ExampleT &)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_save_load ( void(*)(DataT &, io_buf &, bool, bool)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_sensitivity ( float(*)(DataT &data, base_learner &base, example &)  fn_ptr)
inline
template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
FluentBuilderT& VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::set_update ( void(*)(DataT &data, BaseLearnerT &base, ExampleT &)  u)
inline

Member Data Documentation

template<class FluentBuilderT, class DataT, class ExampleT, class BaseLearnerT>
learner<DataT, ExampleT>* VW::LEARNER::common_learner_builder< FluentBuilderT, DataT, ExampleT, BaseLearnerT >::_learner = nullptr

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