added Perceptron network
This commit is contained in:
1 parent
3c924d01f3
commit
c130e55f4d
2 files changed
+58
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "./Network.h"
|
||||
#include <NeuralNetwork/ActivationFunction/Heaviside.h>
|
||||
|
||||
namespace NeuralNetwork {
|
||||
namespace FeedForward {
|
||||
class Perceptron : private Network{
|
||||
public:
|
||||
inline Perceptron(size_t _inputSize,size_t _outputSize):Network(_inputSize) {
|
||||
appendLayer(_outputSize,ActivationFunction::Heaviside(0.0));
|
||||
};
|
||||
|
||||
using Network::computeOutput;
|
||||
using Network::randomizeWeights;
|
||||
using Network::operator[];
|
||||
protected:
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user