Evaluators\MulticlassClassificationEvaluator.cs (15)
78var scoreType = score.Type as VectorDataViewType;
80throw Host.ExceptSchemaMismatch(nameof(schema), "score", score.Name, "vector of two or more items of type Single", score.Type.ToString());
90int numClasses = score.Type.GetVectorSize();
101var mdType = schema.Schema[scoreInfo.Index].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
113int numClasses = score[0].Type.GetVectorSize();
124int numClasses = scoreInfo.Type.GetVectorSize();
418Host.Assert(score.Type.GetVectorSize() == _scoresArr.Length);
619_numClasses = scoreColumn.Type.GetVectorSize();
860var scoreType = schema[ScoreIndex].Type as VectorDataViewType;
862throw Host.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol, "Vector of two or more items of type Single", schema[ScoreIndex].Type.ToString());
863var labelType = schema[LabelIndex].Type;
1060var labelType = labelCol.Type;
1064labelName, labelCol.Type, NumberDataViewType.Double,
1071var type = perInstSchema[sortedClassesIndex].Type;
1080var type = perInst.Schema[sortedScoresIndex].Type;
Evaluators\MultiOutputRegressionEvaluator.cs (10)
61var t = score.Type as VectorDataViewType;
63throw Host.ExceptSchemaMismatch(nameof(schema), "score", score.Name, "known-size vector of Single", score.Type.ToString());
73int vectorSize = score.Type.GetVectorSize();
549var t = schema[LabelIndex].Type as VectorDataViewType;
551throw Host.ExceptSchemaMismatch(nameof(schema), "label", LabelCol, "known-size vector of Single or Double", schema[LabelIndex].Type.ToString());
558t = schema[ScoreIndex].Type as VectorDataViewType;
560throw Host.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol, "known-size vector of Single", schema[ScoreIndex].Type.ToString());
595var type = schema[column].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type;
691var type = cursor.Schema[stratCol].Type;
707var type = fold.Schema[i].Type as VectorDataViewType;
Utilities\ColumnCursor.cs (4)
40var colType = column.Type;
45if (data.Schema[colIndex].Name != colName || data.Schema[colIndex].Type != colType)
74throw Contracts.ExceptParam(nameof(column), string.Format("Cannot load vector type, {0}, specified in {1} to the user-defined type, {2}.", column.Type, nameof(column), typeof(T)));
95column.Name, column.Type, nameof(data), typeof(T)));