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