DataView\Transposer.cs (24)
41private readonly DataViewSchema.Column[] _cols;
105_cols = new DataViewSchema.Column[columns.Length];
267var transposedColumn = _view.Schema[col];
287public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null)
290public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
383var currentColumn = _view.Schema[_col];
535var currentColumn = _view.Schema[_colCurr];
831public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null)
842public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
862/// <param name="pred">The predicate input into the <see cref="GetRowCursor(IEnumerable{DataViewSchema.Column}, Random)"/> method.</param>
1014var selectedColumn = _view.Schema[col];
1045public override bool IsColumnActive(DataViewSchema.Column column)
1058public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
1109var selectedColumn = _view.Schema[col];
1154public override bool IsColumnActive(DataViewSchema.Column column)
1167public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
1298public override bool IsColumnActive(DataViewSchema.Column column)
1315public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
1449public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null)
1460public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
1487public override bool IsColumnActive(DataViewSchema.Column column)
1500public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
1548public override bool IsColumnActive(DataViewSchema.Column column)
1561public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
Evaluators\EvaluatorUtils.cs (9)
108public static DataViewSchema.Column GetScoreColumn(IExceptionContext ectx, DataViewSchema schema, string name, string argName, string kind,
134var col = schema[colIdx];
150if (!string.IsNullOrWhiteSpace(defName) && schema.GetColumnOrNull(defName) is DataViewSchema.Column defCol)
163public static DataViewSchema.Column? GetOptAuxScoreColumn(IExceptionContext ectx, DataViewSchema schema, string name, string argName,
199var col = schema[colIdx];
232/// returns its <see cref="DataViewSchema.Column.Name"/>. Otherwise, returns <paramref name="def"/>.
234public static string GetColName(string str, DataViewSchema.Column? info, string def)
301var column = schema[i];
1391var countColumn = confusionDataView.Schema[MetricKinds.ColumnNames.Count];
Scorers\RowToRowScorerBase.cs (19)
86IEnumerable<DataViewSchema.Column> columns,
87out IEnumerable<DataViewSchema.Column> inputColumns,
88out IEnumerable<DataViewSchema.Column> activeRowMapperCols)
129protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null)
136out IEnumerable<DataViewSchema.Column> inputCols,
137out IEnumerable<DataViewSchema.Column> activeMapperColumns);
142public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
150out IEnumerable<DataViewSchema.Column> inputCols,
151out IEnumerable<DataViewSchema.Column> activeMapperColumns);
165protected override Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disp)
168IEnumerable<DataViewSchema.Column> inputColumns;
169GetActive(bindings, activeColumns, out inputColumns, out IEnumerable<DataViewSchema.Column> activeMapperColumns);
177protected override IEnumerable<DataViewSchema.Column> GetDependenciesCore(IEnumerable<DataViewSchema.Column> columns)
180GetActive(bindings, columns, out IEnumerable<DataViewSchema.Column> inputColumns, out IEnumerable<DataViewSchema.Column> predicateMapper);
238public Cursor(IChannelProvider provider, RowToRowScorerBase parent, DataViewRowCursor input, bool[] active, IEnumerable<DataViewSchema.Column> activeMapperColumns)
276public override bool IsColumnActive(DataViewSchema.Column column)
289public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
Transforms\TransformBase.cs (21)
65public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null)
99protected abstract DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null);
101public abstract DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null);
170IEnumerable<DataViewSchema.Column> IRowToRowMapper.GetDependencies(IEnumerable<DataViewSchema.Column> dependingColumns)
173protected abstract IEnumerable<DataViewSchema.Column> GetDependenciesCore(IEnumerable<DataViewSchema.Column> dependingColumns);
176DataViewRow IRowToRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns)
189protected abstract Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disp);
225public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
244public override bool IsColumnActive(DataViewSchema.Column column)
432public IEnumerable<DataViewSchema.Column> GetDependencies(IEnumerable<DataViewSchema.Column> columns)
437foreach (var col in columns)
734protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null)
746public sealed override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
815protected override IEnumerable<DataViewSchema.Column> GetDependenciesCore(IEnumerable<DataViewSchema.Column> dependingColumns)
818protected override Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disposer)
897public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
918public override bool IsColumnActive(DataViewSchema.Column column)
Transforms\ValueMapping.cs (28)
65/// <seealso cref="ConversionsExtensionsCatalog.MapValue(TransformsCatalog.ConversionTransforms, string, IDataView, DataViewSchema.Column, DataViewSchema.Column, string)"/>
78internal ValueMappingEstimator(IHostEnvironment env, IDataView lookupMap, DataViewSchema.Column keyColumn, DataViewSchema.Column valueColumn, params (string outputColumnName, string inputColumnName)[] columns)
177internal ValueMappingEstimator(IHostEnvironment env, IDataView lookupMap, DataViewSchema.Column keyColumn, DataViewSchema.Column valueColumn, params (string outputColumnName, string inputColumnName)[] columns)
432DataViewSchema.Column lookupKeyColumn, DataViewSchema.Column lookupValueColumn, (string outputColumnName, string inputColumnName)[] columns)
441private ValueMap CreateValueMapFromDataView(IDataView dataView, DataViewSchema.Column keyColumn, DataViewSchema.Column valueColumn)
443DataViewSchema.Column? column = null;
448var retrievedKeyColumn = column.Value;
456var retrievedValueColumn = column.Value;
560var keyColumn = idv.Schema[keyColumnName];
561var valueColumn = idv.Schema[valueColumnName];
798public DataViewSchema.Column KeyColumn { get; }
799public DataViewSchema.Column ValueColumn { get; }
801public ValueMap(DataViewSchema.Column keyColumn, DataViewSchema.Column valueColumn)
807internal static ValueMap Create(DataViewSchema.Column keyColumn, DataViewSchema.Column valueColumn)
809Func<DataViewSchema.Column, DataViewSchema.Column, ValueMap> del = CreateValueMapInvoke<int, int>;
814private static ValueMap CreateValueMapInvoke<TKey, TValue>(DataViewSchema.Column keyColumn, DataViewSchema.Column valueColumn) =>
847public ValueMap(DataViewSchema.Column keyColumn, DataViewSchema.Column valueColumn) : base(keyColumn, valueColumn)
911var column = input.Schema[index];