mirror of
https://github.com/Relintai/MLPP.git
synced 2025-02-08 16:00:04 +01:00
fix logit funciton error
This commit is contained in:
parent
aac9bd6479
commit
cc6e00d091
@ -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