Backup Save
This commit is contained in:
@@ -323,7 +323,7 @@ struct model{
|
||||
*
|
||||
*
|
||||
*/
|
||||
bool add_optimizer_sgd(const panic::types::real_t learning_rate = static_cast<panic::types::real_t>(1e-3));
|
||||
bool add_optimizer_sgd(const panic::types::real_t learning_rate = static_cast<panic::types::real_t>(1));
|
||||
|
||||
|
||||
|
||||
@@ -337,6 +337,22 @@ struct model{
|
||||
*/
|
||||
bool finalize();
|
||||
|
||||
|
||||
/**
|
||||
* @brief Optimizes the model with parameters on trainable layers
|
||||
*
|
||||
* Computes:
|
||||
* @code
|
||||
* model.optimize()
|
||||
* @endcode
|
||||
*
|
||||
* @return true if optimization is done correctly.
|
||||
*
|
||||
*/
|
||||
bool optimize();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @brief Trains the model with input data
|
||||
*
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
* Module Name: neural_network
|
||||
* File Name: optimizer.hpp
|
||||
* Revision: 0.1.0
|
||||
* Date: 23-06-2026
|
||||
* Date: 06-08-2026
|
||||
* Author: Michelle Bausager
|
||||
*
|
||||
* Description:
|
||||
|
||||
@@ -52,7 +52,6 @@ struct optimizer_sgd: optimizer{
|
||||
|
||||
panic::types::real_t learning_rate;
|
||||
|
||||
|
||||
/**
|
||||
* @brief Constructor
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user