1 write to Weight
Microsoft.ML.Core (1)
Data\RoleMappedSchema.cs (1)
186
Weight
= cols[0];
66 references to Weight
Microsoft.ML.Data (31)
Evaluators\BinaryClassifierEvaluator.cs (3)
169
return new Aggregator(Host, classNames, schema.
Weight
!= null, _aucCount, _auPrcCount, _threshold, _useRaw, _prCount, stratName);
640
Host.Assert((schema.
Weight
!= null) == Weighted);
642
_weightGetter = row.GetGetter<Single>(schema.
Weight
.Value);
Evaluators\ClusteringEvaluator.cs (3)
142
return new Aggregator(Host, schema.Feature, numClusters, _calculateDbi, schema.
Weight
!= null, stratName);
509
if (schema.
Weight
.HasValue)
510
_weightGetter = row.GetGetter<Single>(schema.
Weight
.Value);
Evaluators\EvaluatorBase.cs (3)
51
if (schema.
Weight
.HasValue)
52
EvaluateUtils.CheckWeightType(Host, schema.
Weight
.Value.Type);
95
int weight = schema.
Weight
?.Index ?? -1;
Evaluators\MamlEvaluator.cs (2)
145
string weight = EvaluateUtils.GetColName(WeightCol, schema.
Weight
, null);
257
if (perInst.Schema.
Weight
?.Name is string weightName)
Evaluators\MulticlassClassificationEvaluator.cs (3)
93
return new Aggregator(Host, classNames, numClasses, schema.
Weight
!= null, _outputTopKAcc, stratName);
424
if (schema.
Weight
.HasValue)
425
_weightGetter = row.GetGetter<float>(schema.
Weight
.Value);
Evaluators\MultiOutputRegressionEvaluator.cs (3)
75
return new Aggregator(Host, LossFunction, vectorSize, schema.
Weight
!= null, stratName);
314
if (schema.
Weight
.HasValue)
315
_weightGetter = row.GetGetter<float>(schema.
Weight
.Value);
Evaluators\QuantileRegressionEvaluator.cs (1)
77
return new Aggregator(Host, LossFunction, schema.
Weight
!= null, scoreType.Size, in slotNames, stratName);
Evaluators\RankingEvaluator.cs (3)
131
return new Aggregator(Host, _labelGains, _truncationLevel, _groupSummary, schema.
Weight
!= null, stratName);
463
if (schema.
Weight
.HasValue)
464
_weightGetter = row.GetGetter<Single>(schema.
Weight
.Value);
Evaluators\RegressionEvaluator.cs (1)
69
return new Aggregator(Host, LossFunction, schema.
Weight
!= null, stratName);
Evaluators\RegressionEvaluatorBase.cs (2)
212
if (schema.
Weight
.HasValue)
213
_weightGetter = row.GetGetter<float>(schema.
Weight
.Value);
Prediction\Calibrator.cs (1)
1024
return TrainCalibrator(env, ch, caliTrainer, scored, data.Schema.Label.Value.Name, DefaultColumnNames.Score, data.Schema.
Weight
?.Name, maxRows);
Training\TrainerUtils.cs (6)
203
if (!data.Schema.
Weight
.HasValue)
205
var col = data.Schema.
Weight
.Value;
237
if ((opt & CursOpt.Weight) != 0 && data.Schema.
Weight
.HasValue)
238
columns.Add(data.Schema.
Weight
.Value);
314
var col = schema.
Weight
;
433
if (tschema.
Weight
?.Name is string wname && wname != DefaultColumnNames.Weight)
Microsoft.ML.Ensemble (2)
PipelineEnsemble.cs (2)
178
if (!Mappers[i].InputRoleMappedSchema.
Weight
.HasValue)
184
var weightCol = Mappers[i].InputRoleMappedSchema.
Weight
.Value;
Microsoft.ML.FastTree (5)
FastTree.cs (3)
1367
int weightIdx = AddColumnIfNeeded(examples.Schema.
Weight
, toTranspose);
1771
_weights = data.Schema.
Weight
!= null ? new List<double>() : null;
1835
if (_data.Schema.
Weight
.HasValue)
RandomForestClassification.cs (1)
227
if (!trainData.Schema.
Weight
.HasValue && MLContext.OneDalDispatchingEnabled)
RandomForestRegression.cs (1)
366
if (!trainData.Schema.
Weight
.HasValue && MLContext.OneDalDispatchingEnabled)
Microsoft.ML.KMeansClustering (1)
KMeansPlusPlusTrainer.cs (1)
230
if (data.Schema.
Weight
.HasValue)
Microsoft.ML.LightGbm (2)
LightGbmTrainerBase.cs (2)
557
if (data.Schema.
Weight
.HasValue)
771
bool hasWeights = factory.Data.Schema.
Weight
!= null;
Microsoft.ML.Mkl.Components (3)
OlsLinearRegression.cs (1)
173
if (examples.Schema.
Weight
.HasValue)
SymSgdClassificationTrainer.cs (2)
210
if (examples.Schema.
Weight
.HasValue)
211
ch.Assert(examplesToFeedTrain.Schema.
Weight
.HasValue);
Microsoft.ML.PCA (1)
PcaTrainer.cs (1)
231
if (data.Schema.
Weight
.HasValue)
Microsoft.ML.StandardTrainers (21)
FactorizationMachine\FactorizationMachineTrainer.cs (7)
374
if (data.Schema.
Weight
!= null)
375
columns.Add(data.Schema.
Weight
.Value);
380
var weightGetter = data.Schema.
Weight
.HasValue ? cursor.GetGetter<float>(data.Schema.
Weight
.Value) : null;
480
if (data.Schema.
Weight
!= null)
481
columns.Add(data.Schema.
Weight
.Value);
492
var weightGetter = data.Schema.
Weight
?.Index is int weightIdx ? RowCursorUtils.GetGetterAs<float>(NumberDataViewType.Single, cursor, weightIdx) : null;
Standard\LogisticRegression\LbfgsPredictorBase.cs (3)
481
if (data.Schema.
Weight
.HasValue)
587
if (data.Schema.
Weight
!= null)
592
if (data.Schema.
Weight
.HasValue)
Standard\Online\OnlineLinear.cs (1)
324
if (data.Schema.
Weight
.HasValue)
Standard\SdcaBinary.cs (4)
121
if (examples.Schema.
Weight
.HasValue)
122
ch.Assert(examplesToFeedTrain.Schema.
Weight
.HasValue);
331
if (data.Schema.
Weight
.HasValue)
2029
if (data.Schema.
Weight
.HasValue)
Standard\Simple\SimpleTrainers.cs (4)
263
if (data.Schema.
Weight
?.Type == NumberDataViewType.Single)
264
colWeight = data.Schema.
Weight
.Value.Index;
266
var cols = colWeight > -1 ? new DataViewSchema.Column[] { labelCol, data.Schema.
Weight
.Value } : new DataViewSchema.Column[] { labelCol };
271
var getWeight = colWeight >= 0 ? cursor.GetGetter<float>(data.Schema.
Weight
.Value) : null;
Standard\StochasticTrainerBase.cs (2)
85
if (examples.Schema.
Weight
.HasValue)
86
ch.Assert(examplesToFeedTrain.Schema.
Weight
.HasValue);