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