Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
VW::parameters Class Reference

#include <array_parameters.h>

Public Member Functions

VW::weightoperator[] (size_t i)
 
VW::weightget (size_t i)
 
template<typename Lambda >
void set_default (Lambda &&default_func)
 
uint32_t stride_shift () const
 
uint64_t stride () const
 
uint64_t mask () const
 
void shallow_copy (const parameters &input)
 
void set_zero (size_t offset)
 
void share (size_t length)
 
void stride_shift (uint32_t stride_shift)
 
VW::weightstrided_index (size_t index)
 
bool not_null ()
 

Public Attributes

bool adaptive
 
bool normalized
 
bool sparse
 
dense_parameters dense_weights
 
sparse_parameters sparse_weights
 

Member Function Documentation

◆ get()

VW::weight & VW::parameters::get ( size_t  i)
inline

◆ mask()

uint64_t VW::parameters::mask ( ) const
inline

◆ not_null()

bool VW::parameters::not_null ( )
inline

◆ operator[]()

VW::weight & VW::parameters::operator[] ( size_t  i)
inline

◆ set_default()

template<typename Lambda >
void VW::parameters::set_default ( Lambda &&  default_func)
inline

◆ set_zero()

void VW::parameters::set_zero ( size_t  offset)
inline

◆ shallow_copy()

void VW::parameters::shallow_copy ( const parameters input)
inline

◆ share()

void VW::parameters::share ( size_t  length)
inline

◆ stride()

uint64_t VW::parameters::stride ( ) const
inline

◆ stride_shift() [1/2]

uint32_t VW::parameters::stride_shift ( ) const
inline

◆ stride_shift() [2/2]

void VW::parameters::stride_shift ( uint32_t  stride_shift)
inline

◆ strided_index()

VW::weight & VW::parameters::strided_index ( size_t  index)
inline

Member Data Documentation

◆ adaptive

bool VW::parameters::adaptive

◆ dense_weights

dense_parameters VW::parameters::dense_weights

◆ normalized

bool VW::parameters::normalized

◆ sparse

bool VW::parameters::sparse

◆ sparse_weights

sparse_parameters VW::parameters::sparse_weights

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