bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
intro_example_4::LogisticRegressionModelImpl Class Reference
Inheritance diagram for intro_example_4::LogisticRegressionModelImpl:
Collaboration diagram for intro_example_4::LogisticRegressionModelImpl:

Public Member Functions

 LogisticRegressionModelImpl (uint_t input_size, uint_t output_size)
torch_tensor_t forward (torch_tensor_t input)
void test_model (const std::string &test_path, uint_t batch_size, torch::Device device)
void train_model (const std::string &train_path, uint_t batch_size, uint_t n_epochs, real_t lr, torch::Device device)

Constructor & Destructor Documentation

◆ LogisticRegressionModelImpl()

intro_example_4::LogisticRegressionModelImpl::LogisticRegressionModelImpl ( uint_t input_size,
uint_t output_size )

Member Function Documentation

◆ forward()

torch_tensor_t intro_example_4::LogisticRegressionModelImpl::forward ( torch_tensor_t input)

◆ test_model()

void intro_example_4::LogisticRegressionModelImpl::test_model ( const std::string & test_path,
uint_t batch_size,
torch::Device device )

◆ train_model()

void intro_example_4::LogisticRegressionModelImpl::train_model ( const std::string & train_path,
uint_t batch_size,
uint_t n_epochs,
real_t lr,
torch::Device device )

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