MCPcopy Create free account
hub / github.com/chrxh/alien / binaryStep

Method binaryStep

source/EngineTests/NeuronTests.cpp:20–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18protected:
19 float scaledSigmoid(float value) const { return 2.0f / (1.0f + std::exp(-value)) - 1.0f; }
20 float binaryStep(float value) const { return value >= NEAR_ZERO ? 1.0f : 0.0f; }
21};
22
23TEST_F(NeuronTests, bias)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected