#include <auto_backprop.h>
|
typedef VectorXf(* | callback) (const VectorXf &, shared_ptr< CLabels > &, const vector< float > &) |
|
|
void | print_weights (NodeVector &program) |
|
vector< Trace > | forward_prop (Individual &ind, const Data &d, MatrixXf &Phi, const Parameters ¶ms) |
| Return the f_stack. More...
|
|
void | next_branch (vector< BP_NODE > &executing, vector< Node * > &bp_program, vector< ArrayXf > &derivatives) |
| Updates stacks to have proper value on top. More...
|
|
void | backprop (Trace &f_stack, NodeVector &program, int start, int end, float Beta, shared_ptr< CLabels > &yhat, const Data &d, vector< float > sw) |
| Compute gradients and update weights. More...
|
|
void | backprop2 (Trace &f_stack, NodeVector &program, int start, int end, float Beta, const VectorXf &yhat, const Data &d, vector< float > sw) |
| Compute gradients and update weights. More...
|
|
Definition at line 62 of file auto_backprop.h.
◆ callback
typedef VectorXf(* FT::Opt::AutoBackProp::callback) (const VectorXf &, shared_ptr< CLabels > &, const vector< float > &) |
◆ AutoBackProp()
FT::Opt::AutoBackProp::AutoBackProp |
( |
string |
scorer, |
|
|
int |
iters = 1000 , |
|
|
float |
n = 0.1 , |
|
|
float |
a = 0.9 |
|
) |
| |
◆ backprop()
void FT::Opt::AutoBackProp::backprop |
( |
Trace & |
f_stack, |
|
|
NodeVector & |
program, |
|
|
int |
start, |
|
|
int |
end, |
|
|
float |
Beta, |
|
|
shared_ptr< CLabels > & |
yhat, |
|
|
const Data & |
d, |
|
|
vector< float > |
sw |
|
) |
| |
|
private |
◆ backprop2()
void FT::Opt::AutoBackProp::backprop2 |
( |
Trace & |
f_stack, |
|
|
NodeVector & |
program, |
|
|
int |
start, |
|
|
int |
end, |
|
|
float |
Beta, |
|
|
const VectorXf & |
yhat, |
|
|
const Data & |
d, |
|
|
vector< float > |
sw |
|
) |
| |
|
private |
Compute gradients and update weights.
◆ forward_prop()
◆ next_branch()
void FT::Opt::AutoBackProp::next_branch |
( |
vector< BP_NODE > & |
executing, |
|
|
vector< Node * > & |
bp_program, |
|
|
vector< ArrayXf > & |
derivatives |
|
) |
| |
|
private |
◆ print_weights()
void FT::Opt::AutoBackProp::print_weights |
( |
NodeVector & |
program | ) |
|
|
private |
◆ run()
float FT::Opt::AutoBackProp::a |
|
private |
◆ cost_func
callback FT::Opt::AutoBackProp::cost_func |
|
private |
◆ d_cost_func
callback FT::Opt::AutoBackProp::d_cost_func |
|
private |
◆ d_score_hash
std::map<string, callback> FT::Opt::AutoBackProp::d_score_hash |
◆ epk
float FT::Opt::AutoBackProp::epk |
|
private |
◆ epT
float FT::Opt::AutoBackProp::epT |
|
private |
◆ iters
int FT::Opt::AutoBackProp::iters |
|
private |
float FT::Opt::AutoBackProp::n |
|
private |
◆ score_hash
std::map<string, callback> FT::Opt::AutoBackProp::score_hash |
The documentation for this class was generated from the following files: