added Perceptron network
This commit is contained in:
20
include/NeuralNetwork/FeedForward/Perceptron.h
Normal file
20
include/NeuralNetwork/FeedForward/Perceptron.h
Normal file
@@ -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