77 for (
int in = 0; in < from_cnt; in++) {
78 fan_in_.push_back(neurons + in);
86 if (activation <= -10.0f) {
88 }
else if (activation >= 10.0f) {
91 return kSigmoidTable[
static_cast<int>(100 * (activation + 10.0))];
void AddFromConnection(Neuron *neuron_vec, float *wts_offset, int from_cnt)
static const float kSigmoidTable[]
vector< float * > fan_in_weights_
bool ReadBinary(BuffType *input_buff)
vector< Neuron * > fan_in_
static float Sigmoid(float activation)
void set_node_type(NeuronTypes type)