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

Method addInput

mlmodel/src/Model.cpp:246–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 }
245
246 Result Model::addInput(const std::string& featureName,
247 FeatureType featureType) {
248 Specification::ModelDescription* interface = m_spec->mutable_description();
249 Specification::FeatureDescription *arg = interface->add_input();
250 arg->set_name(featureName);
251 arg->set_allocated_type(featureType.allocateCopy());
252 return Result();
253 }
254
255 Result Model::addOutput(const std::string& targetName,
256 FeatureType targetType) {

Callers 5

testLinearModelBasicFunction · 0.45
testTreeEnsembleBasicFunction · 0.45
testOneHotEncoderBasicFunction · 0.45
testBasicSaveLoadFunction · 0.45
_clone_blockMethod · 0.45

Calls 3

ResultClass · 0.85
allocateCopyMethod · 0.80
set_nameMethod · 0.45

Tested by 4

testLinearModelBasicFunction · 0.36
testTreeEnsembleBasicFunction · 0.36
testOneHotEncoderBasicFunction · 0.36
testBasicSaveLoadFunction · 0.36