26 references to Usage
Microsoft.ML.TestFramework (26)
TestCommandBase.cs (26)
102return new PathArgument(this, PathArgument.Usage.Both, PathArgument.Usage.None, false, Append(name, names)); 110return new PathArgument(this, PathArgument.Usage.None, PathArgument.Usage.Both, false); 118return new PathArgument(this, PathArgument.Usage.Both, PathArgument.Usage.Both, false, Append(name, names)); 126return new PathArgument(this, PathArgument.Usage.Both, PathArgument.Usage.Both, true, Append(name, names)); 166public readonly Usage ArgUsage; 168public readonly Usage CmpUsage; 178if (ArgUsage == Usage.None) 204public PathArgument(OutputPath path, Usage argUsage, Usage cmpUsage, bool normalized, params string[] names) 208Contracts.Assert((argUsage == Usage.None) != (Utils.Size(names) >= 1)); 364private bool TestCoreCore(RunContextBase ctx, string cmdName, string dataPath, PathArgument.Usage situation, 370private bool TestCoreCore(RunContextBase ctx, string cmdName, string dataPath, PathArgument.Usage situation, 391if ((pa.ArgUsage & situation) != PathArgument.Usage.None) 401var paths = toCompare.Where(pa => (pa.CmpUsage & situation) != PathArgument.Usage.None).ToArray(); 421return TestCoreCore(ctx, cmdName, dataPath, PathArgument.Usage.DataModel, null, ctx.ModelPath(), loaderArgs, extraArgs, toCompare); 426return TestCoreCore(ctx, cmdName, dataPath, PathArgument.Usage.DataModel, null, ctx.ModelPath(), loaderArgs, extraArgs, digitsOfPrecision, parseOption, toCompare); 443return TestCoreCore(ctx, cmdName, dataPath, PathArgument.Usage.Loader, modelPath, null, null, extraArgs, toCompare); 448return TestCoreCore(ctx, cmdName, dataPath, PathArgument.Usage.Loader, modelPath, null, null, extraArgs, digitsOfPrecision, parseOption, toCompare); 465return TestCoreCore(ctx, cmdName, dataPath, PathArgument.Usage.Both, modelPath, ctx.ModelPath(), null, extraArgs, toCompare); 482return TestCoreCore(ctx, cmdName, dataPath, PathArgument.Usage.Both, modelPath, ctx.ModelPath(), null, extraArgs, digitsOfPrecision, parseOption, toCompare); 514return TestCoreCore(ctx, cmdName, dataPath, PathArgument.Usage.DataModel, null, dmPath, loaderArgs, extraArgs, toCompare) 515&& TestCoreCore(ctx, cmdName, dataPath, PathArgument.Usage.Loader, dmPath, null, null, extraArgs, toCompare);