Tenncor
Classes | Namespaces | Typedefs | Functions
err_approx.hpp File Reference
#include <unordered_map>
#include "eteq/generated/pyapi.hpp"
#include "eteq/constant.hpp"
#include "eteq/variable.hpp"
#include "eteq/session.hpp"
Include dependency graph for err_approx.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  layr::VarAssign
 Variable and error approximation assignment encapsulation. More...
 

Namespaces

 layr
 

Typedefs

using layr::VarErrsT = std::vector< std::pair< eteq::VarptrT< PybindT >, NodeptrT > >
 Ordered association between variable and error. More...
 
using layr::AssignsT = std::vector< VarAssign >
 One batch of assignments. More...
 
using layr::AssignGroupsT = std::vector< AssignsT >
 All batches of assignments. More...
 
using layr::ApproxF = std::function< AssignGroupsT(const VarErrsT &)>
 
using layr::UpdateStepF = std::function< void(teq::TensSetT &)>
 

Functions

AssignGroupsT layr::sgd (const VarErrsT &leaves, PybindT learning_rate=0.5, std::string root_label="")
 
AssignGroupsT layr::rms_momentum (const VarErrsT &leaves, PybindT learning_rate=0.5, PybindT discount_factor=0.99, PybindT epsilon=std::numeric_limits< PybindT >::epsilon(), std::string root_label="")
 
void layr::assign_groups (const AssignGroupsT &groups, UpdateStepF update_step)
 Apply all batches of assignments with update_step applied after each batch. More...
 
void layr::assign_groups_preupdate (const AssignGroupsT &groups, UpdateStepF update_step)
 Apply all batches of assignments with update_step applied before each batch. More...