io-chess
UCI chess engine
Loading...
Searching...
No Matches
LabelWriter Class Reference

#include <Writers.hpp>

Public Member Functions

 LabelWriter (const std::string &fname, size_t batch_capacity=1000)
 ~LabelWriter ()
void add (float label)
void flush ()

Private Attributes

std::string filename
std::vector< float > buffer
size_t batch_size

Constructor & Destructor Documentation

◆ LabelWriter()

LabelWriter::LabelWriter ( const std::string & fname,
size_t batch_capacity = 1000 )

◆ ~LabelWriter()

LabelWriter::~LabelWriter ( )
Here is the call graph for this function:

Member Function Documentation

◆ add()

void LabelWriter::add ( float label)
Here is the call graph for this function:

◆ flush()

void LabelWriter::flush ( )
Here is the caller graph for this function:

Member Data Documentation

◆ batch_size

size_t LabelWriter::batch_size
private

◆ buffer

std::vector<float> LabelWriter::buffer
private

◆ filename

std::string LabelWriter::filename
private

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