77 references to All
Microsoft.ML.Core (1)
CommandLine\CmdParser.cs (1)
1424
Contracts.Check(nicks == null || nicks.
All
(nick => !string.IsNullOrWhiteSpace(nick)));
Microsoft.ML.Data (11)
Data\DataViewUtils.cs (2)
802
Contracts.Assert(batchColumns.
All
(bc => bc.Count == count));
1039
Ch.Assert(pipes.
All
(p => p != null));
DataLoadSave\Text\TextLoader.cs (1)
549
return Utils.Size(Columns) == 0 || Columns.
All
(x => x.IsValid());
DataLoadSave\TransformerChain.cs (1)
62
bool ITransformer.IsRowToRowMapper => _transformers.
All
(t => t.IsRowToRowMapper);
DataView\AppendRowsDataView.cs (2)
61
env.CheckParam(sources.
All
(s => s != null), nameof(sources));
113
_host.Check(_sources.
All
(source => source.Schema.Count == colCount), errMsg);
Prediction\Calibrator.cs (1)
1238
_host.CheckDecode(_binProbs.
All
(x => (0 <= x && x <= 1)));
Transforms\ColumnBindingsBase.cs (2)
151
return Source.
All
(s => !string.IsNullOrEmpty(s));
194
return Source.
All
(s => !string.IsNullOrEmpty(s));
Transforms\ColumnConcatenatingTransformer.cs (1)
823
Contracts.Assert(srcTokens.
All
(tok => tok != null));
Transforms\ValueToKeyMappingTransformer.cs (1)
645
ch.Assert(termMap.
All
(tm => tm != null));
Microsoft.ML.FastTree (10)
Dataset\Dataset.cs (2)
48
Contracts.Assert(flocks.
All
(f => f.Examples == datasetSkeleton.NumDocs));
836
if (arrays.
All
(x => x == null))
Dataset\FeatureFlock.cs (1)
1181
Contracts.Assert(AllBinUpperBounds.
All
(x => Utils.Size(x) >= 1));
FastTree.cs (5)
944
Host.Assert(binUpperBounds.
All
(b => b != null));
1090
Contracts.Assert(flockBits == IntArrayBits.Bits32 || binnedValues.
All
(b => b < limBin));
1164
Contracts.Assert(flockBits == IntArrayBits.Bits32 || binnedValues.
All
(b => b < limBin));
1634
Host.Assert(features.
All
(f => f != null));
2697
Contracts.Assert(features.
All
(i => values[i] != null));
TreeEnsemble\InternalRegressionTree.cs (2)
461
checker(CategoricalSplitFeatureRanges.
All
(x => x == null || x.Length == 0 || x.Length == 2),
1247
CategoricalSplitFeatures.
All
(val => val == null))
Microsoft.ML.OnnxTransformer (1)
OnnxUtils.cs (1)
326
if (shapeDictionary[name].
All
(value => value > 0))
Microsoft.ML.PCA (3)
PcaTrainer.cs (3)
464
Host.CheckParam(_eigenVectors[i].GetValues().
All
(FloatUtils.IsFinite),
495
Host.CheckDecode(meanArray.
All
(FloatUtils.IsFinite));
510
Host.CheckDecode(vi.
All
(FloatUtils.IsFinite));
Microsoft.ML.Predictor.Tests (1)
TestPredictors.cs (1)
946
if (scores.
All
(s => !float.IsNaN(s)))
Microsoft.ML.StandardTrainers (19)
LdSvm\LdSvmModelParameters.cs (12)
62
Host.Assert(w.
All
(v => v.IsDense));
63
Host.Assert(w.
All
(v => v.Length == w[0].Length));
65
Host.Assert(thetaPrime.
All
(v => v.IsDense));
66
Host.Assert(thetaPrime.
All
(v => v.Length == thetaPrime[0].Length));
68
Host.Assert(theta.
All
(v => v.IsDense));
69
Host.Assert(theta.
All
(v => v.Length == theta[0].Length));
130
Host.Assert(_w.
All
(v => v.IsDense));
131
Host.Assert(_w.
All
(v => v.Length == _w[0].Length));
133
Host.Assert(_thetaPrime.
All
(v => v.IsDense));
134
Host.Assert(_thetaPrime.
All
(v => v.Length == _thetaPrime[0].Length));
136
Host.Assert(_theta.
All
(v => v.IsDense));
137
Host.Assert(_theta.
All
(v => v.Length == _theta[0].Length));
Standard\LinearModelParameters.cs (1)
195
Host.CheckDecode(Utils.Size(weights) == 0 || weights.
All
(x => FloatUtils.IsFinite(x)));
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
475
if (Weights.
All
(v => v.IsDense))
520
if (Weights.
All
(v => v.IsDense))
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
297
Host.Assert(featureHistogram.
All
(h => h == null || h.Length == featureCount));
Standard\MulticlassClassification\OneVersusAllTrainer.cs (3)
509
public bool CanSaveOnnx(OnnxContext ctx) => Predictors.
All
(pred => (pred as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true);
615
CanSavePfa = Predictors.
All
(m => (m as ISingleCanSavePfa)?.CanSavePfa == true);
699
CanSavePfa = Predictors.
All
(m => (m as IDistCanSavePfa)?.CanSavePfa == true);
Microsoft.ML.Sweeper.Tests (2)
TestSweeper.cs (2)
534
Assert.True(gridPoint.
All
(bArray => bArray.
All
(b => b)));
Microsoft.ML.TestFramework (1)
TestCommandBase.cs (1)
380
Contracts.Assert(Utils.Size(toCompare) == 0 || toCompare.
All
(x => x != null));
Microsoft.ML.Transforms (28)
Dracula\CMCountTable.cs (3)
58
Contracts.Check(tables.
All
(x => Utils.Size(x) == Depth), "Depth must be the same for all labels");
62
Contracts.Check(tables.
All
(t => t.
All
(t2 => t2.Max(kvp => kvp.Key) < Width)), "Keys must be between 0 and Width - 1");
Dracula\CountTable.cs (6)
51
Contracts.Check(priorCounts.
All
(x => x >= 0));
59
Contracts.Check(garbageCounts.
All
(x => x >= 0));
98
env.CheckDecode(_priorFrequencies.
All
(x => x >= 0));
109
env.CheckDecode(_garbageCounts.
All
(x => x >= 0));
129
Contracts.Assert(_priorFrequencies.
All
(x => x >= 0));
140
Contracts.Assert(_garbageCounts.
All
(x => x >= 0));
Dracula\CountTableTransformer.cs (2)
122
_host.CheckParam(columns.
All
(col => col.PriorCoefficient > 0), nameof(ColumnOptionsBase.PriorCoefficient), "Must be greater than zero");
123
_host.CheckParam(columns.
All
(col => col.LaplaceScale >= 0), nameof(ColumnOptionsBase.LaplaceScale), "Must be greater than or equal to zero.");
Dracula\CountTargetEncodingTransformer.cs (2)
406
return columns.
All
(c => HashingTransformer.Columns.Select(hc => hc.InputColumnName).Contains(c.InputColumnName))
407
&& columns.
All
(c => HashingTransformer.Columns.Select(hc => hc.Name).Contains(c.OutputColumnName));
Dracula\DictCountTable.cs (1)
52
Contracts.Check(counts.
All
(x => x != null), "Count dictionaries must all exist");
Dracula\Featurizer.cs (2)
90
_host.CheckDecode(PriorCoef.
All
(x => x > 0));
93
_host.CheckDecode(LaplaceScale.
All
(x => x >= 0));
Expression\BuiltinFunctions.cs (1)
373
Contracts.CheckParam(!values.
All
(x => x != null), nameof(values), "Expected values to contain at least one null");
ExpressionTransformer.cs (4)
79
_host.Check(columns.
All
(col => !string.IsNullOrWhiteSpace(col.Expression)));
80
_host.Check(columns.
All
(col => !string.IsNullOrWhiteSpace(col.Name)));
81
_host.Check(columns.
All
(col => Utils.Size(col.InputColumnNames) > 0));
82
_host.CheckParam(columns.
All
(col => Utils.Size(col.InputColumnNames) <= 5), nameof(ColumnOptions.InputColumnNames), "maximum number of inputs exceeded");
HashJoiningTransform.cs (2)
267
slotMap[j].
All
(slot => 0 <= slot && slot < Infos[i].TypeSrc.GetValueCount()));
324
Host.Assert(ex.SlotMap[i].
All
(slot => 0 <= slot && slot < Infos[iColumn].TypeSrc.GetValueCount()));
Text\NgramTransform.cs (1)
1058
Contracts.CheckUserArg(Utils.Size(maximumNgramsCounts) == 0 || maximumNgramsCounts.
All
(i => i >= 0) && maximumNgramsCounts[maximumNgramsCounts.Length - 1] > 0, nameof(maximumNgramsCounts));
Text\WordBagTransform.cs (3)
146
h.CheckUserArg(column.Source.
All
(src => !string.IsNullOrWhiteSpace(src)), nameof(column.Source));
688
env.CheckUserArg(col.Source.
All
(src => !string.IsNullOrWhiteSpace(src)), nameof(col.Source));
713
col.Source.
All
(src => !string.IsNullOrWhiteSpace(src)), nameof(col.Source));
Text\WordHashBagProducingTransform.cs (1)
347
column.Source.
All
(src => !string.IsNullOrWhiteSpace(src)), nameof(column.Source));