12 if (loss ==
"logistic")
13 return std::make_unique<Logistic>();
14 else if (loss ==
"poisson")
15 return std::make_unique<Poisson>();
16 else if (loss ==
"multinomial")
17 return std::make_unique<Multinomial>();
20 return std::make_unique<Quadratic>();
Logistic loss function implementation for SLOPE algorithm.
Multinomial loss function implementation for SLOPE algorithm.
Namespace containing SLOPE regression implementation.
std::unique_ptr< Loss > setupLoss(const std::string &loss)
Factory function to create the appropriate loss function based on the distribution family.
Poisson loss function implementation for SLOPE algorithm.
Quadratic loss function implementation for SLOPE algorithm.
Factory function to create the appropriate loss function based on.