Merge pull request #10 from SmartAI/main

fix logit funciton error
This commit is contained in:
marc 2022-02-18 13:23:45 -08:00 committed by GitHub
commit d2ab86f2d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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){