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

Function testLinearModelBasic

mlmodel/tests/LinearModelTests.cpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13using namespace CoreML;
14
15int testLinearModelBasic() {
16 LinearModel lr("foo", "Linear regression model to predict Foo");
17 ML_ASSERT_GOOD(lr.addInput("x", FeatureType::Int64()));
18 ML_ASSERT_GOOD(lr.addInput("y", FeatureType::Double()));
19 ML_ASSERT_GOOD(lr.addInput("z", FeatureType::Int64()));
20 ML_ASSERT_GOOD(lr.addOutput("foo", FeatureType::Double()));
21 return 0;
22}

Callers

nothing calls this directly

Calls 4

DoubleClass · 0.85
addOutputMethod · 0.80
Int64Class · 0.50
addInputMethod · 0.45

Tested by

no test coverage detected