mirror of
https://github.com/Relintai/MLPP.git
synced 2024-11-12 10:15:01 +01:00
so
This commit is contained in:
parent
f441780e8a
commit
90f29f8a89
@ -8,6 +8,7 @@
|
||||
#include "LinAlg/LinAlg.hpp"
|
||||
#include "Activation.hpp"
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
|
||||
namespace MLPP{
|
||||
|
||||
@ -80,7 +81,7 @@ namespace MLPP{
|
||||
std::vector<double> Activation::adjSoftmax(std::vector<double> z){
|
||||
LinAlg alg;
|
||||
std::vector<double> a;
|
||||
double C = -*max_element(z.begin(), z.end());
|
||||
double C = -*std::max_element(z.begin(), z.end());
|
||||
z = alg.scalarAdd(C, z);
|
||||
|
||||
return softmax(z);
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <cmath>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
namespace MLPP{
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "Utilities/Utilities.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#include <random>
|
||||
|
||||
namespace MLPP{
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "LinAlg/LinAlg.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#include <random>
|
||||
|
||||
namespace MLPP{
|
||||
|
Loading…
Reference in New Issue
Block a user