Commands\ShowSchemaCommand.cs (5)
139var name = schema[col].Name;
191foreach (var metaColumn in schema[col].Annotations.Schema.OrderBy(mcol => mcol.Name))
194itw.Write("Metadata '{0}': {1}", metaColumn.Name, type);
198ShowMetadataValue(itw, schema, col, metaColumn.Name, type);
200ShowMetadataValueVec(itw, schema, col, metaColumn.Name, vectorType);
DataLoadSave\Binary\BinarySaver.cs (10)
283_host.Check(!string.IsNullOrEmpty(metaColumn.Name), "Metadata with null or empty kind detected, disallowed");
285if (!kinds.Add(metaColumn.Name))
286throw _host.Except("Metadata with duplicate kind '{0}' encountered, disallowed", metaColumn.Name, schema[col].Name);
287args[3] = metaColumn.Name;
294metaColumn.Type, schema[col].Name, col, metaColumn.Name);
299metadataInfos.Add(Tuple.Create(metaColumn.Name, codec, (CompressionKind)args[5]));
515string name = sourceSchema[active.SourceIndex].Name;
721throw _host.Except("Could not get codec for requested column {0} of type {1}", schema[c].Name, type);
DataView\Transposer.cs (10)
114_nameToICol[(_cols[c] = schema[columns[c]]).Name] = c;
141throw ch.ExceptParam(nameof(view), "Column named '{0}' is not serializable by the transposer", _cols[c].Name);
143throw ch.ExceptParam(nameof(view), "Column named '{0}' is vector, but not of known size, and so cannot be transposed", _cols[c].Name);
242throw _host.ExceptParam(nameof(col), "Bad call to GetSlotCursor on untransposable column '{0}'", _tview.Schema[col].Name);
766nameToCol[_input.Schema[toSlice[c]].Name] = outputColumnCount - 1;
1018schemaBuilder.AddColumn(selectedColumn.Name, selectedColumn.Type, selectedColumn.Annotations);
1112schemaBuilder.AddColumn(selectedColumn.Name, _types[c]);
1348throw Contracts.Except("Could not get single value on column '{0}' because there are no slots", view.Schema[col].Name);
1351throw Contracts.Except("Could not get single value on column '{0}' because there is more than one slot", view.Schema[col].Name);
1437builder.AddColumn(_data.Schema[_col].Name, _type);
Evaluators\BinaryClassifierEvaluator.cs (7)
132throw host.ExceptSchemaMismatch(nameof(schema), "score", score.Name, "Single", t.ToString());
148throw host.ExceptSchemaMismatch(nameof(schema), "probability", prob[0].Name, "Single", probType.ToString());
198var probCol = Utils.Size(probInfos) > 0 ? probInfos[0].Name : null;
199return new BinaryPerInstanceEvaluator(Host, schema.Schema, scoreInfo.Name, probCol, schema.Label.Value.Name, _threshold, _useRaw);
1351cols = AnnotationUtils.Prepend(cols, RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Probability, probCol.Value.Name));
1481yield return scoreCol.Name;
1487yield return probCol.Value.Name;
Evaluators\MultiOutputRegressionEvaluator.cs (4)
55return new MultiOutputRegressionPerInstanceEvaluator(Host, schema.Schema, scoreCol.Name, schema.Label.Value.Name);
63throw Host.ExceptSchemaMismatch(nameof(schema), "score", score.Name, "known-size vector of Single", score.Type.ToString());
652yield return scoreCol.Name;
756sb.AppendFormat("{0}{1,12}:", isWeighted ? "Weighted " : "", fold.Schema[i].Name);