88 references to CheckParam
Microsoft.ML.Core (4)
Data\ModelSaveContext.cs (1)
223
_ectx.
CheckParam
(!string.IsNullOrEmpty(str), nameof(str));
Data\Repository.cs (3)
238
_ectx.
CheckParam
(dir == null || !dir.Contains(".."), nameof(dir));
239
_ectx.
CheckParam
(!string.IsNullOrWhiteSpace(name), nameof(name));
240
_ectx.
CheckParam
(!name.Contains(".."), nameof(name));
Microsoft.ML.Data (40)
Commands\CrossValidationCommand.cs (3)
405
env.
CheckParam
(args.NumFolds > 1, nameof(args.NumFolds));
412
env.
CheckParam
(args.MaxCalibrationExamples > 0, nameof(args.MaxCalibrationExamples));
413
env.
CheckParam
(getValidationDataView == null || applyTransformsToValidationData != null, nameof(applyTransformsToValidationData));
Commands\TrainCommand.cs (1)
322
ch.
CheckParam
(output != null && output.CanWrite, nameof(output));
Data\DataViewUtils.cs (3)
260
provider.
CheckParam
(batchSize >= 0, nameof(batchSize));
1112
Ch.
CheckParam
(column.Index < _colToActive.Length, nameof(column));
1303
Ch.
CheckParam
(column.Index < _colToActive.Length, nameof(column));
Data\RowCursorUtils.cs (2)
572
Ch.
CheckParam
(column.Index < Schema.Count, nameof(column));
589
Ch.
CheckParam
(column.Index < Schema.Count, nameof(column));
DataLoadSave\Binary\BinaryLoader.cs (1)
1969
Ch.
CheckParam
(column.Index < _colToActivesIndex.Length, nameof(column));
DataLoadSave\LegacyCompositeDataLoader.cs (1)
605
_host.
CheckParam
(0 <= col && col < Schema.Count, nameof(col));
DataLoadSave\Transpose\TransposeLoader.cs (3)
639
_host.
CheckParam
(0 <= col && col < _header.ColumnCount, nameof(col));
646
_host.
CheckParam
(0 <= col && col < _header.ColumnCount, nameof(col));
871
Ch.
CheckParam
(column.Index <= _colToActivesIndex.Length, nameof(column));
DataView\AppendRowsDataView.cs (1)
61
env.
CheckParam
(sources.All(s => s != null), nameof(sources));
DataView\ArrayDataViewBuilder.cs (8)
69
_host.
CheckParam
(type != null && type.RawType == typeof(T), nameof(type));
86
_host.
CheckParam
(keyCount > 0, nameof(keyCount));
100
_host.
CheckParam
(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
113
_host.
CheckParam
(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
125
_host.
CheckParam
(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
138
_host.
CheckParam
(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
149
_host.
CheckParam
(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
161
_host.
CheckParam
(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
DataView\CacheDataView.cs (1)
1186
Ch.
CheckParam
(column.Index < _colToActivesIndex.Length, nameof(column));
DataView\Transposer.cs (6)
235
_host.
CheckParam
(0 <= col && col < _view.Schema.Count, nameof(col));
1429
_host.
CheckParam
(0 <= col && col < data.Schema.Count, nameof(col));
1489
Ch.
CheckParam
(column.Index == 0, nameof(column));
1502
Ch.
CheckParam
(column.Index == 0, nameof(column));
1550
Ch.
CheckParam
(column.Index == 0, nameof(column));
1563
Ch.
CheckParam
(column.Index == 0, nameof(column));
Evaluators\EvaluatorUtils.cs (5)
170
ectx.
CheckParam
(0 <= colScore && colScore < schema.Count, nameof(colScore));
219
ectx.
CheckParam
(0 <= col && col < schema.Count, nameof(col));
394
env.
CheckParam
(curFold >= 0, nameof(curFold));
435
env.
CheckParam
(curFold >= 0, nameof(curFold));
436
env.
CheckParam
(numFolds > 0, nameof(numFolds));
Scorers\PredictionTransformer.cs (1)
87
Host.
CheckParam
(model is IPredictor, nameof(model));
Transforms\GenerateNumberTransform.cs (1)
395
Ch.
CheckParam
(active == null || active.Length == bindings.ColumnCount, nameof(active));
Transforms\RowShufflingTransformer.cs (2)
671
Ch.
CheckParam
(column.Index < _colToActivesIndex.Length, nameof(column));
714
Ch.
CheckParam
(column.Index < _colToActivesIndex.Length, nameof(column));
Transforms\TransformBase.cs (1)
780
Host.
CheckParam
(0 <= col && col < _bindings.ColumnCount, nameof(col));
Microsoft.ML.Ensemble (8)
Selector\SubsetSelector\BaseSubsetSelector.cs (1)
46
Host.
CheckParam
(size > 0, nameof(size));
Trainer\Binary\EnsembleTrainer.cs (3)
78
Host.
CheckParam
(predictionKind == PredictionKind.BinaryClassification, nameof(PredictionKind));
98
Host.
CheckParam
(models.All(m => m is TDistPredictor), nameof(models));
103
Host.
CheckParam
(models.All(m => m is TScalarPredictor), nameof(models));
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (2)
85
Host.
CheckParam
(predictionKind == PredictionKind.MulticlassClassification, nameof(PredictionKind));
98
Host.
CheckParam
(models.All(m => m is TVectorPredictor), nameof(models));
Trainer\Regression\RegressionEnsembleTrainer.cs (2)
73
Host.
CheckParam
(predictionKind == PredictionKind.Regression, nameof(PredictionKind));
86
Host.
CheckParam
(models.All(m => m is TScalarPredictor), nameof(models));
Microsoft.ML.FastTree (2)
GamModelParameters.cs (2)
235
Host.
CheckParam
(features.Length == _numInputFeatures, nameof(features));
236
Host.
CheckParam
(Utils.Size(bins) == NumberOfShapeFunctions, nameof(bins));
Microsoft.ML.Mkl.Components (1)
SymSgdClassificationTrainer.cs (1)
253
Host.
CheckParam
(weights.Length > 0, nameof(weights));
Microsoft.ML.OnnxConverter (1)
OnnxContextImpl.cs (1)
246
_host.
CheckParam
(IsVariableDefined(variableName), nameof(variableName));
Microsoft.ML.Parquet (3)
ParquetLoader.cs (3)
491
Ch.
CheckParam
(IsColumnActive(Schema[col]), nameof(col));
539
Ch.
CheckParam
(IsColumnActive(Schema[col]), nameof(col));
627
Ch.
CheckParam
(column.Index < _colToActivesIndex.Length, nameof(column));
Microsoft.ML.StandardTrainers (16)
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
433
Host.
CheckParam
(context.InitialPredictor == null || context.InitialPredictor is IPredictor, nameof(context.InitialPredictor));
Standard\ModelStatistics.cs (1)
462
Env.
CheckParam
(paramCountCap >= 0, nameof(paramCountCap));
Standard\SdcaBinary.cs (7)
1527
Host.
CheckParam
(Utils.Size(weights) == 1, nameof(weights));
1528
Host.
CheckParam
(Utils.Size(bias) == 1, nameof(bias));
1529
Host.
CheckParam
(weights[0].Length > 0, nameof(weights));
1815
Host.
CheckParam
(Utils.Size(weights) == 1, nameof(weights));
1816
Host.
CheckParam
(Utils.Size(bias) == 1, nameof(bias));
1817
Host.
CheckParam
(weights[0].Length > 0, nameof(weights));
2219
Host.
CheckParam
(weights.Length > 0, nameof(weights));
Standard\SdcaMulticlass.cs (4)
558
Host.
CheckParam
(weights.Length > 0, nameof(weights));
559
Host.
CheckParam
(weights.Length == bias.Length, nameof(weights));
655
Host.
CheckParam
(weights.Length > 0, nameof(weights));
656
Host.
CheckParam
(weights.Length == bias.Length, nameof(weights));
Standard\SdcaRegression.cs (3)
146
Host.
CheckParam
(Utils.Size(weights) == 1, nameof(weights));
147
Host.
CheckParam
(Utils.Size(bias) == 1, nameof(bias));
148
Host.
CheckParam
(weights[0].Length > 0, nameof(weights));
Microsoft.ML.TimeSeries (2)
PredictionEngine.cs (2)
88
env.
CheckParam
(!string.IsNullOrEmpty(modelPath), nameof(modelPath));
111
env.
CheckParam
(stream != null, nameof(stream));
Microsoft.ML.Transforms (11)
CountFeatureSelection.cs (1)
297
env.
CheckParam
(Utils.Size(columns) > 0, nameof(columns));
GroupTransform.cs (1)
568
Ch.
CheckParam
(column.Index < _active.Length, nameof(column));
OptionalColumnTransform.cs (1)
445
Ch.
CheckParam
(active == null || active.Length == bindings.ColumnCount, nameof(active));
ProduceIdTransform.cs (3)
193
Ch.
CheckParam
(column.Index < _bindings.ColumnCount, nameof(column));
211
Ch.
CheckParam
(column.Index < _bindings.ColumnCount, nameof(column));
212
Ch.
CheckParam
(IsColumnActive(column), nameof(column.Index));
SvmLight\SvmLightLoader.cs (2)
481
Ch.
CheckParam
(column.Index == 0, nameof(column));
503
Ch.
CheckParam
(column.Index == 0, nameof(column));
Text\TextFeaturizingEstimator.cs (2)
419
_host.
CheckParam
(source.Any(), nameof(source));
420
_host.
CheckParam
(!source.Any(string.IsNullOrWhiteSpace), nameof(source));
UngroupTransform.cs (1)
614
Ch.
CheckParam
(column.Index < _ungroupBinding.InputColumnCount, nameof(column));