66b3a4ee6b
Sync public mirror / sync (push) Successful in 27s
Fixed the loss functions for categories and is ready for accuracy calculation on page 129
17 lines
171 B
C++
17 lines
171 B
C++
#pragma once
|
|
|
|
namespace numerics{
|
|
|
|
template <typename T>
|
|
T max(const T a, const T b){
|
|
|
|
if(a < b){
|
|
return b;
|
|
}else{
|
|
return a;
|
|
}
|
|
}
|
|
|
|
} // namespace numerics
|
|
|