mirror of
https://github.com/Relintai/MLPP.git
synced 2025-03-30 20:15:29 +02:00
commit
d2ab86f2d9
@ -221,7 +221,7 @@ namespace MLPP{
|
|||||||
|
|
||||||
double Activation::logit(double z, bool deriv){
|
double Activation::logit(double z, bool deriv){
|
||||||
if(deriv) { return 1/z - 1/(z-1); }
|
if(deriv) { return 1/z - 1/(z-1); }
|
||||||
return std::log(z / (1 + z));
|
return std::log(z / (1 - z));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<double> Activation::logit(std::vector<double> z, bool deriv){
|
std::vector<double> Activation::logit(std::vector<double> z, bool deriv){
|
||||||
|
Loading…
Reference in New Issue
Block a user