This function applies a probabilizer model previously trained by a probabilizer.train
procedure type, converting a score to a probability.
It has one real-valued input value named score
, usually the output of a classifier
function type.
It outputs one value named prob
which is a real value between 0 and 1 indicating
the probability associated with the input score.
A new function of type probabilizer
named <id>
can be created as follows:
mldb.put("/v1/functions/"+<id>, {
"type": "probabilizer",
"params": {
"modelFileUrl": <Url>
}
})
with the following key-value definitions for params
:
Field, Type, Default | Description |
---|---|
modelFileUrl | URL of the model file (with extension '.prb') to load. This file is created by the |
classifier.train
procedure type trains a classifier.classifier.test
procedure type allows the accuracy of a predictor to be tested against
held-out data.probabilizer.train
procedure type trains a probabilizer.classifier
function type applies a classifier to a feature vector, producing a classification score.classifier.explain
function type explains how a classifier produced its output.probabilizer
function type works with classifier.apply to convert scores to probabilities.