#include "components/assist_ranker/generic_logistic_regression_inference.h"
#include <cmath>
#include "base/logging.h"
#include "components/assist_ranker/example_preprocessing.h"
#include "components/assist_ranker/ranker_example_util.h"
namespace assist_ranker {
const float kDefaultThreshold = …;
float Sigmoid(float x) { … }
GenericLogisticRegressionInference::GenericLogisticRegressionInference(
GenericLogisticRegressionModel model_proto)
: … { … }
float GenericLogisticRegressionInference::PredictScore(
const RankerExample& example) { … }
bool GenericLogisticRegressionInference::Predict(const RankerExample& example) { … }
float GenericLogisticRegressionInference::GetThreshold() { … }
}