80 references to GetVectorSize
Microsoft.ML.Core (2)
Data\ColumnTypeExtensions.cs (2)
60
/// Equivalent to <c><see cref="
GetVectorSize
"/> > 0</c>.
62
public static bool IsKnownSizeVector(this DataViewType columnType) => columnType.
GetVectorSize
() > 0;
Microsoft.ML.Data (39)
Commands\ShowSchemaCommand.cs (3)
158
if (typeNames.
GetVectorSize
() != type.
GetVectorSize
() || !(typeNames.GetItemType() is TextDataViewType))
164
if (names.Length != type.
GetVectorSize
())
DataView\ArrayDataViewBuilder.cs (1)
224
meta.AddSlotNames(_columns[i].Type.
GetVectorSize
(), slotNamesGetter);
DataView\CacheDataView.cs (1)
1352
_uniformLength = type.
GetVectorSize
();
DataView\LambdaColumnMapper.cs (1)
131
int vectorSize = _typeDst.
GetVectorSize
();
DataView\Transposer.cs (1)
925
int vectorSize = type.
GetVectorSize
();
Evaluators\ClusteringEvaluator.cs (7)
148
int numClusters = scoreInfo.Type.
GetVectorSize
();
332
_clusterCentroids[i] = VBufferUtils.CreateEmpty<Single>(features.Value.Type.
GetVectorSize
());
413
_clusterCentroids[i] = VBufferUtils.CreateEmpty<Single>(features.Value.Type.
GetVectorSize
());
500
Host.Assert(score.Type.
GetVectorSize
() == _scoresArr.Length);
727
int vectorSize = slotNamesType.
GetVectorSize
();
841
if (_numTopClusters < type.
GetVectorSize
())
848
if (_numTopClusters < type.
GetVectorSize
())
Evaluators\EvaluatorUtils.cs (3)
352
var size = schema[i].Type.
GetVectorSize
();
479
if (!idv.Schema[col].HasSlotNames(type.
GetVectorSize
()))
726
if (views[i].Schema[columnIndices[i]].HasSlotNames(type.
GetVectorSize
()))
Evaluators\MulticlassClassificationEvaluator.cs (7)
90
int numClasses = score.Type.
GetVectorSize
();
113
int numClasses = score[0].Type.
GetVectorSize
();
124
int numClasses = scoreInfo.Type.
GetVectorSize
();
418
Host.Assert(score.Type.
GetVectorSize
() == _scoresArr.Length);
619
_numClasses = scoreColumn.Type.
GetVectorSize
();
1073
if (_numTopClasses < type.
GetVectorSize
())
1081
if (_numTopClasses < type.
GetVectorSize
())
Evaluators\MultiOutputRegressionEvaluator.cs (1)
73
int vectorSize = score.Type.
GetVectorSize
();
Evaluators\QuantileRegressionEvaluator.cs (1)
46
int scoreSize = scoreInfo.Type.
GetVectorSize
();
Scorers\ClusteringScorer.cs (1)
137
return new KeyDataViewType(typeof(uint), scoreType.
GetVectorSize
());
Scorers\FeatureContributionCalculation.cs (1)
324
var featureSize = FeatureColumn.Type.
GetVectorSize
();
Scorers\MulticlassClassificationScorer.cs (3)
441
return labelNameType is VectorDataViewType vectorType && vectorType.Size == scoreType.
GetVectorSize
();
481
return labelNameType is VectorDataViewType vectorType && vectorType.Size == scoreType.
GetVectorSize
() && vectorType.ItemType == TextDataViewType.Instance;
603
private static DataViewType GetPredColType(DataViewType scoreType, ISchemaBoundRowMapper mapper) => new KeyDataViewType(typeof(uint), scoreType.
GetVectorSize
());
Scorers\SchemaBindablePredictorWrapper.cs (3)
707
typeSrc.Size == ValueMapper.InputType.
GetVectorSize
() || ValueMapper.InputType.
GetVectorSize
() == 0);
711
var featureCount = ValueMapper != null ? ValueMapper.InputType.
GetVectorSize
() : 0;
Transforms\KeyToValue.cs (1)
234
Host.Check(typeVals.
GetVectorSize
() == srcItemType.GetKeyCountAsInt32(Host), "KeyValues metadata size does not match column type key count");
Transforms\NormalizeColumn.cs (2)
498
Host.Check(typeSrc.
GetVectorSize
() == Scale.Length);
618
Host.Check(typeSrc.
GetVectorSize
() == Mean.Length);
Transforms\ValueMapping.cs (1)
101
if (Transformer.ValueColumnType.
GetVectorSize
() == 0)
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
939
int cv = info.TypeSrc.
GetVectorSize
();
Microsoft.ML.Ensemble (6)
EnsembleUtils.cs (1)
27
var typeVectorSize = type.
GetVectorSize
();
PipelineEnsemble.cs (2)
629
var classCount = vm.OutputType.
GetVectorSize
();
637
if (vm.OutputType.
GetVectorSize
() != classCount)
Selector\FeatureSelector\RandomFeatureSelector.cs (1)
53
int len = type.
GetVectorSize
();
Trainer\Multiclass\EnsembleMulticlassModelParameters.cs (2)
123
Host.Assert(_mappers[i].OutputType.
GetVectorSize
() > 0);
146
Host.Check(predictions[i].Length == _mappers[i].OutputType.
GetVectorSize
());
Microsoft.ML.FastTree (11)
FastTree.cs (2)
2922
int inputVectorSize = InputType.
GetVectorSize
();
2950
int inputVectorSize = InputType.
GetVectorSize
();
RandomForestRegression.cs (1)
234
int inputVectorSize = InputType.
GetVectorSize
();
TreeEnsembleFeaturizer.cs (8)
655
if (vm.InputType.
GetVectorSize
() != data.Schema.Feature.Value.Type.
GetVectorSize
())
659
vm.InputType.
GetVectorSize
(), data.Schema.Feature.Value.Type.
GetVectorSize
());
726
if (data != null && vm.InputType.
GetVectorSize
() != data.Schema.Feature.Value.Type.
GetVectorSize
())
730
vm.InputType.
GetVectorSize
(), data.Schema.Feature.Value.Type.
GetVectorSize
());
Microsoft.ML.LightGbm (1)
LightGbmTrainerBase.cs (1)
649
int rawNumCol = colType.
GetVectorSize
();
Microsoft.ML.Mkl.Components (1)
SymSgdClassificationTrainer.cs (1)
703
int numFeatures = data.Schema.Feature.Value.Type.
GetVectorSize
();
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
553
if (colSchemaInfo.InputType.
GetVectorSize
() != _parent._transformInfos[i].Dimension)
Microsoft.ML.StandardTrainers (9)
LdSvm\LdSvmModelParameters.cs (2)
142
Host.Assert(InputType != null && InputType.
GetVectorSize
() == _w[0].Length);
276
Host.Check(src.Length == InputType.
GetVectorSize
());
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
284
Contracts.Assert(pred.InputType.
GetVectorSize
() > 0);
287
if (pred.InputType.
GetVectorSize
() != NumFeatures)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (3)
631
int inputSize = InputType.
GetVectorSize
();
724
int inputSize = InputType.
GetVectorSize
();
880
int inputSize = InputType.
GetVectorSize
();
Standard\SdcaBinary.cs (2)
327
int numFeatures = data.Schema.Feature.Value.Type.
GetVectorSize
();
2026
int numFeatures = data.Schema.Feature.Value.Type.
GetVectorSize
();
Microsoft.ML.Transforms (10)
Dracula\CountTableTransformer.cs (2)
209
_host.Check(srcBuffer.Length == cols[i].Type.
GetVectorSize
(), "value count mismatch");
624
builder.AddSlotNames(type.
GetVectorSize
(), getSlotNames);
HashJoiningTransform.cs (1)
419
bool useDefaultSlotNames = !Source.Schema[Infos[iinfo].Source].HasSlotNames(Infos[iinfo].TypeSrc.
GetVectorSize
());
KeyToVectorMapping.cs (1)
286
var srcVectorSize = typeSrc.
GetVectorSize
();
MissingValueReplacing.cs (1)
369
Host.Assert(values.Length == type.
GetVectorSize
());
OptionalColumnTransform.cs (1)
550
size = columnType.
GetVectorSize
();
PermutationFeatureImportance.cs (1)
52
int numSlots = featuresColumn.Type.
GetVectorSize
();
RandomFourierFeaturizing.cs (1)
248
if (_transformInfos[col].SrcDim != type.
GetVectorSize
())
Text\TokenizingByCharacters.cs (1)
508
int cv = input.Schema[ColMapNewToOld[iinfo]].Type.
GetVectorSize
();
Text\WordTokenizing.cs (1)
279
int cv = input.Schema[ColMapNewToOld[iinfo]].Type.
GetVectorSize
();