21 #ifndef SNABSUITE_SNABS_MAX_INTER_NEURON_HPP 22 #define SNABSUITE_SNABS_MAX_INTER_NEURON_HPP 24 #include <cypress/cypress.hpp> 29 using cypress::NeuronParameter;
40 cypress::PopulationBase m_pop_single, m_pop_group;
41 cypress::Real m_simulation_length = 150;
42 cypress::Real m_start_time = 50;
43 NeuronParameter m_group_params;
48 void run_netw(cypress::Network &netw)
override;
49 std::vector<std::array<cypress::Real, 4>>
evaluate()
override;
50 std::shared_ptr<SNABBase>
clone()
override 65 cypress::Real m_simulation_length = 150;
66 cypress::Real m_start_time = 50;
77 std::initializer_list<std::string> indicator_units,
78 std::initializer_list<std::string> required_parameters,
85 std::vector<std::array<cypress::Real, 4>>
evaluate()
override;
86 virtual std::shared_ptr<SNABBase>
clone()
override 101 std::shared_ptr<SNABBase>
clone()
override 103 return std::make_shared<GroupMaxFreqToGroupAllToAll>(
m_backend,
116 std::shared_ptr<SNABBase>
clone()
override 118 return std::make_shared<GroupMaxFreqToGroupProb>(
m_backend,
std::shared_ptr< SNABBase > clone() override
Virtual method cloning the SNAB without knowing which SNAB it is.
std::shared_ptr< SNABBase > clone() override
Virtual method cloning the SNAB without knowing which SNAB it is.
std::string m_backend
String which contains the name of the simulation backend.
SingleMaxFreqToGroup(const std::string backend, size_t bench_index)
Virtual Base class for SNABs(Benchmarks). All SNABs should have seperate building of networks...
void run_netw(cypress::Network &netw) override
cypress::Network & build_netw(cypress::Network &netw) override
Building the neural network for benchmarking. If you want to use an external network, you should use the first version of building (and the corresponding run function), for the member network use the second function. The implementation is contained in the first one.
virtual std::shared_ptr< SNABBase > clone() override
Virtual method cloning the SNAB without knowing which SNAB it is.
const std::vector< std::string > & indicator_measures() const
Getter for SNABSSuite::m_indicator_measures.
const std::vector< std::string > & indicator_names() const
Getter for SNABSSuite::m_indicator_names.
const std::vector< std::string > & indicator_types() const
Getter for SNABSSuite::m_indicator_types.
std::vector< std::array< cypress::Real, 4 > > evaluate() override
This should contain the evaluation process and return the result in order of those in names()...
const size_t m_bench_index
NeuronParameter m_retr_params
std::shared_ptr< SNABBase > clone() override
Virtual method cloning the SNAB without knowing which SNAB it is.
cypress::PopulationBase m_pop_retr