11 writes to Max
Microsoft.ML.AutoML (1)
ColumnInference\ColumnGroupingInference.cs (1)
140currRange.Max++;
Microsoft.ML.Data (5)
DataLoadSave\Text\TextLoader.cs (4)
279Max = index; 295Max = max; 368Max = Min; 400Max = tmp;
DataLoadSave\Text\TextSaver.cs (1)
513range = new TextLoader.Range { Min = minValue, Max = minValue + vectorType.Size - 1, ForceVector = true };
Microsoft.ML.PerformanceTests (5)
KMeansAndLogisticRegressionBench.cs (2)
28new TextLoader.Range() { Min = 1, Max = 8 }, 32new TextLoader.Range() { Min = 9, Max = 14 },
RffTransform.cs (1)
37new TextLoader.Column("Features", DataKind.Single, new[] {new TextLoader.Range() {Min = 0, Max = 63}})
StochasticDualCoordinateAscentClassifierBench.cs (2)
93new TextLoader.Column("Label", DataKind.Single, new[] { new TextLoader.Range() { Min = 0, Max = 0 } }), 94new TextLoader.Column("SentimentText", DataKind.String, new[] { new TextLoader.Range() { Min = 1, Max = 1 } })
21 references to Max
Microsoft.ML.AutoML (1)
ColumnInference\ColumnGroupingInference.cs (1)
138if (indices[i] == currRange.Max + 1)
Microsoft.ML.AutoML.Tests (3)
ColumnInferenceTests.cs (3)
36Assert.False(col.Source.Length > 1 || col.Source[0].Min != col.Source[0].Max); 62var labelCol = result.TextLoaderOptions.Columns.First(c => c.Source[0].Min == 14 && c.Source[0].Max == 14); 73c.Source[0].Max == DatasetUtil.IrisDatasetLabelColIndex);
Microsoft.ML.CodeGenerator (2)
Utils.cs (2)
268int range = (column.Source[0].Max - column.Source[0].Min).Value; 292result.Add($"[ColumnName(\"{columnName}\"),LoadColumn({column.Source[0].Min}, {column.Source[0].Max}) VectorType({(range + 1)})]");
Microsoft.ML.Data (15)
DataLoadSave\Database\DatabaseLoader.cs (2)
335Contracts.Assert(range.Max.HasValue); 337var dbRange = new Range(range.Min, range.Max.Value);
DataLoadSave\Text\TextLoader.cs (13)
244if (first.Min < 0 || first.Min > first.Max) 250if (cur.Min > cur.Max) 254if (prev.Max == null && (prev.AutoEnd || prev.VariableEnd)) 256if (cur.Min <= prev.Max) 319/// If <see cref="Max"/> is specified, the fields <see cref="AutoEnd"/> and <see cref="VariableEnd"/> are ignored. 328/// If <see cref="Max"/> is specified, the fields <see cref="AutoEnd"/> and <see cref="VariableEnd"/> are ignored. 411if (Max != null) 413if (Max != Min || ForceVector || AllOther) 414sb.Append(dash).Append(Max); 720if (!needInputSize && col.Source.Any(r => r.AutoEnd && r.Max == null)) 804if (range.Max != null) 806int max = range.Max.Value; 807ch.CheckUserArg(min <= max && max < SrcLim - 1, nameof(range.Max));