1 write to _host
Microsoft.ML.Data (1)
EntryPoints\EntryPointNode.cs (1)
474
_host
= env.Register(id);
43 references to _host
Microsoft.ML.Data (43)
EntryPoints\EntryPointNode.cs (43)
442
throw
_host
.Except("Stage ID must be alphanumeric.");
462
throw
_host
.Except("Cost cannot be negative.");
475
_host
.AssertValue(context);
476
_host
.AssertNonEmpty(entryPointName);
477
_host
.AssertValueOrNull(inputs);
478
_host
.AssertValueOrNull(outputs);
484
throw
_host
.Except($"Entry point '{entryPointName}' not found");
489
_inputBuilder = new InputBuilder(
_host
, _entryPoint.InputType, env.ComponentCatalog);
500
throw
_host
.Except($"The following required inputs were not provided: {String.Join(", ", missing)}");
509
_outputHelper = new OutputHelper(
_host
, _entryPoint.OutputType);
629
throw
_host
.Except($"Unexpected input name: '{pair.Key}'");
631
throw
_host
.Except($"Unexpected input variable type: {valueType}");
633
var varBinding = VariableBinding.Create(
_host
, pair.Value.Value<string>());
647
throw
_host
.Except($"Input {pair.Key} may ONLY contain variables.");
651
throw
_host
.Except($"Unexpected input name: '{pair.Key}'");
657
var varBinding = VariableBinding.Create(
_host
, varName.Value<string>());
673
throw
_host
.Except($"Unexpected input: '{pair.Key}'");
685
throw
_host
.Except("Only variables allowed as outputs");
688
var varBinding = VariableBinding.Create(
_host
, pair.Value.Value<string>());
690
throw
_host
.Except($"Output '{pair.Key}' can only be bound to a variable");
694
throw
_host
.Except($"Unexpected output name: '{pair.Key}");
697
throw
_host
.Except($"Output '{pair.Key}' has invalid type");
795
_host
.Assert(CanStart());
803
_host
.Assert(success);
806
_host
.Assert(_inputBuilder.GetMissingValues().Length == 0);
811
output = _entryPoint.Method.Invoke(null, new object[] {
_host
, _inputBuilder.GetInstance(), this });
813
_host
.AssertValue(macroResult);
818
output = _entryPoint.Method.Invoke(null, new object[] {
_host
, _inputBuilder.GetInstance() });
826
_host
.Assert(good);
842
public ComponentCatalog Catalog =>
_host
.ComponentCatalog;
851
_host
.AssertNonEmpty(bindings);
854
_host
.Assert(bindings.Skip(1).All(binding => binding.GetType().Equals(firstBinding.GetType())));
858
_host
.Assert(bindings.Count == 1);
864
_host
.AssertValue(type);
874
throw
_host
.ExceptNotImpl("Dictionary variable binding is not currently supported");
877
_host
.Assert(false);
878
throw
_host
.ExceptNotImpl("Unsupported ParameterBinding");
929
_host
.CheckValue(context, nameof(context));
938
throw
_host
.Except($"Invalid parameter '{paramName}': parameter does not exist.");
940
throw
_host
.Except($"Invalid parameter '{paramName}': only simple parameters are supported.");
943
_host
.Assert(success && variableBinding != null);
952
throw
_host
.Except($"Invalid parameter '{paramName}': parameter does not exist.");
960
throw
_host
.Except($"Key {uniqueName} already exists in binding map.");