mirror of
https://github.com/Relintai/MLPP.git
synced 2024-11-20 10:47:17 +01:00
commit
d2ab86f2d9
@ -221,7 +221,7 @@ namespace MLPP{
|
||||
|
||||
double Activation::logit(double z, bool deriv){
|
||||
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){
|
||||
@ -881,4 +881,4 @@ namespace MLPP{
|
||||
}
|
||||
return a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user