36 references to FieldNames
Microsoft.ML.Data (36)
EntryPoints\EntryPointNode.cs (27)
770
result[
FieldNames
.Name] = _entryPoint.Name;
771
result[
FieldNames
.Inputs] = _inputBuilder.GetJsonObject(_inputBuilder.GetInstance(), _inputBindingMap, _inputMap);
772
result[
FieldNames
.Outputs] = _outputHelper.GetJsonObject(_outputMap);
774
result[
FieldNames
.StageId] = StageId;
776
result[
FieldNames
.Checkpoint] = Checkpoint;
778
result[
FieldNames
.Cost] = Cost;
897
string nodeName = node[
FieldNames
.Name].Value<string>();
898
var inputs = node[
FieldNames
.Inputs] as JObject;
899
if (inputs == null && node[
FieldNames
.Inputs] != null)
900
throw env.Except("Unexpected {0} token: '{1}'",
FieldNames
.Inputs, node[
FieldNames
.Inputs]);
902
var outputs = node[
FieldNames
.Outputs] as JObject;
903
if (outputs == null && node[
FieldNames
.Outputs] != null)
904
throw env.Except("Unexpected {0} token: '{1}'",
FieldNames
.Outputs, node[
FieldNames
.Outputs]);
908
x => x.Name !=
FieldNames
.Name && x.Name !=
FieldNames
.Inputs && x.Name !=
FieldNames
.Outputs
909
&& x.Name !=
FieldNames
.StageId && x.Name !=
FieldNames
.Checkpoint && x.Name !=
FieldNames
.Cost);
911
var stageId = node[
FieldNames
.StageId] == null ? "" : node[
FieldNames
.StageId].Value<string>();
912
var checkpoint = node[
FieldNames
.Checkpoint] == null ? false : node[
FieldNames
.Checkpoint].Value<bool>();
913
var cost = node[
FieldNames
.Cost] == null ? float.NaN : node[
FieldNames
.Cost].Value<float>();
EntryPoints\InputBuilder.cs (9)
369
{
FieldNames
.Name, new JValue(instanceInfo.Name) }
372
jcomponent.Add(
FieldNames
.Settings, instSettings);
486
var jName = jo[
FieldNames
.Name];
487
ectx.Check(jName != null, "Field '" +
FieldNames
.Name + "' is required for component.");
488
ectx.Check(jName is JValue, "Expected '" +
FieldNames
.Name + "' field to be a string.");
490
ectx.Check(jo[
FieldNames
.Settings] == null || jo[
FieldNames
.Settings] is JObject,
491
"Expected '" +
FieldNames
.Settings + "' field to be an object");
492
return GetComponentJson(ectx, type, name, jo[
FieldNames
.Settings] as JObject, catalog);