25 references to Context
Microsoft.ML.Data (4)
EntryPoints\EntryPointNode.cs (2)
968Context.AddInputVariable(varBinding, typeof(T)); 972if (value != null && Context.TryGetVariable(varBinding.VariableName, out var variable))
Transforms\NormalizeUtils.cs (2)
158var entryPointNode = EntryPointNode.Create(env, "Transforms.NoOperation", new NopTransform.NopInput(), node.Context, node.InputBindingMap, node.InputMap, node.OutputMap); 164var entryPointNode = EntryPointNode.Create(env, "Transforms.MinMaxNormalizer", input, node.Context, node.InputBindingMap, node.InputMap, node.OutputMap);
Microsoft.ML.EntryPoints (21)
CrossValidationMacro.cs (9)
191node.Context, inputBindingMap, inputMap, outputMap); 272node.Context, inputBindingMap, inputMap, outputMap); 289subGraphNodes.Add(EntryPointNode.Create(env, trainTestEvaluatorMacroEntryPoint, args, node.Context, inputBindingMap, inputMap, outputMap)); 293MacroUtils.ConvertIPredictorModelsToArray(env, node.Context, subGraphNodes, predModelVars, node.GetOutputVariableName(nameof(Output.PredictorModel))); 300MacroUtils.ConvertIdataViewsToArray(env, node.Context, subGraphNodes, warningsVars, warningsArrayVar.VarName); 301MacroUtils.ConvertIdataViewsToArray(env, node.Context, subGraphNodes, overallMetricsVars, overallArrayVar.VarName); 302MacroUtils.ConvertIdataViewsToArray(env, node.Context, subGraphNodes, instanceMetricsVars, instanceArrayVar.VarName); 307MacroUtils.ConvertIdataViewsToArray(env, node.Context, subGraphNodes, confusionMatrixVars, confusionMatrixArrayVar.VarName); 354combineArgs, node.Context, combineInputBindingMap, combineInputMap, combineOutputMap);
OneVersusAllMacro.cs (5)
69var labelIndicatorNode = EntryPointNode.Create(env, "Transforms.LabelIndicator", labelIndicatorArgs, node.Context, 100entryPointNode.SetContext(node.Context); 104node.Context.AddContextVariables(subGraphRunContext); 160MacroUtils.ConvertIPredictorModelsToArray(env, node.Context, macroNodes, predModelVars, modelsArray.VarName); 185combineArgs, node.Context, inputBindingMap, inputMap, outputMap);
TrainTestMacro.cs (7)
149node.Context.AddContextVariables(subGraphRunContext); 153subGraphNode.SetContext(node.Context); 185node.Context, inputBindingMap, inputMap, outputMap); 208node.Context, inputBindingMap, inputMap, outputMap); 242node.Context, inputBindingMap, inputMap, outputMap); 264EntryPointNode evalTrainingNode = EntryPointNode.Create(env, evalTrainingEntryPointName, evalTrainingArgs, node.Context, inputBindingMap, inputMap, outputMap); 286EntryPointNode evalNode = EntryPointNode.Create(env, evalEntryPointName, evalArgs, node.Context, inputBindingMap, inputMap, outputMap);