NumRec Fixes
This commit is contained in:
parent
90ce453b60
commit
4804e51ad7
5 changed files with 181 additions and 148 deletions
|
|
@ -4,7 +4,8 @@
|
|||
#include "DataAnalysisCommon.hpp"
|
||||
|
||||
namespace tp {
|
||||
class FullyConnectedNN {
|
||||
// Fully connected neural network
|
||||
class FCNN {
|
||||
|
||||
struct Layer {
|
||||
|
||||
|
|
@ -32,12 +33,15 @@ namespace tp {
|
|||
};
|
||||
|
||||
public:
|
||||
FullyConnectedNN() = default;
|
||||
FCNN() = default;
|
||||
explicit FCNN(const Buffer<halni>& description);
|
||||
|
||||
void initializeRandom(const Buffer<halni>& description);
|
||||
void evaluate(const Buffer<halnf>& input, Buffer<halnf>& output);
|
||||
|
||||
halnf calcCost(const Buffer<halnf>& output);
|
||||
|
||||
void clearGrad();
|
||||
void calcGrad(const Buffer<halnf>& output);
|
||||
void applyGrad(halnf step);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue