MCPcopy Create free account
hub / github.com/apple/coremltools / setDefaultPredictionValue

Method setDefaultPredictionValue

mlmodel/src/transforms/TreeEnsemble.cpp:53–57  ·  view source on GitHub ↗

* All of the leaf values are added to this value to form the base prediction * value. */

Source from the content-addressed store, hash-verified

51 * value.
52 */
53 void TreeEnsembleBase::setDefaultPredictionValue(double v) {
54 tree_parameters->clear_basepredictionvalue();
55 tree_parameters->add_basepredictionvalue(v);
56 tree_parameters->set_numpredictiondimensions(1);
57 }
58
59
60 /**

Callers 1

testTreeEnsembleBasicFunction · 0.80

Calls 1

sizeMethod · 0.65

Tested by 1

testTreeEnsembleBasicFunction · 0.64