Implemented interface member:
property
Source
Microsoft.ML.Data.IDataTransform.Source
2 writes to Source
Microsoft.ML.Data (2)
Transforms\TransformBase.cs (2)
34Source = input; 43Source = input;
111 references to Source
Microsoft.ML.Data (66)
DataView\LambdaFilter.cs (7)
91Host.Assert(0 <= colSrc && colSrc < Source.Schema.Count); 119var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 120var input = Source.GetRowCursor(inputCols, rand); 132var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 133var inputs = Source.GetRowCursorSet(inputCols, n, rand); 146active = new bool[Source.Schema.Count]; 147bool[] activeInput = new bool[Source.Schema.Count];
DataView\RowToRowMapperTransform.cs (4)
194return new Cursor(Host, Source.GetRowCursor(inputCols, rand), this, active); 204var inputs = Source.GetRowCursorSet(inputCols, n, rand); 247public DataViewSchema InputSchema => Source.Schema; 253Host.Check(input.Schema == Source.Schema, "Schema of input row must be the same as the schema the mapper is bound to");
Dirty\ChooseColumnsByIndexTransform.cs (6)
202_bindings = new Bindings(options, Source.Schema); 212_bindings = new Bindings(ctx, Source.Schema); 253var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 254var input = Source.GetRowCursor(inputCols, rand); 267var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 268var inputs = Source.GetRowCursorSet(inputCols, n, rand);
Scorers\RowToRowScorerBase.cs (3)
138var input = Source.GetRowCursor(inputCols, rand); 152var inputs = Source.GetRowCursorSet(inputCols, n, rand); 155if (inputs.Length == 1 && n > 1 && WantParallelCursors(predicate) && (Source.GetRowCount() ?? int.MaxValue) > n)
Transforms\BootstrapSamplingTransformer.cs (1)
172var input = Source.GetRowCursor(columnsNeeded, _shuffleInput ? new TauswortheHybrid(rgen) : null);
Transforms\GenerateNumberTransform.cs (7)
284_bindings = Bindings.Create(options, Source.Schema); 297_bindings = Bindings.Create(ctx, Source.Schema); 345var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 346var input = Source.GetRowCursor(inputCols); 356var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 363var inputs = Source.GetRowCursorSet(inputCols, n); 376input = Source.GetRowCursor(inputCols);
Transforms\LabelConvertTransform.cs (1)
148using (var bldr = md.BuildMetadata(iinfo, Source.Schema, Infos[iinfo].Source, PassThrough))
Transforms\NAFilter.cs (9)
104var schema = Source.Schema; 140var schema = Source.Schema; 183ctx.SaveNonEmptyString(Source.Schema[info.Index].Name); 214var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 215var input = Source.GetRowCursor(inputCols, rand); 226var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 227var inputs = Source.GetRowCursorSet(inputCols, n, rand); 240active = new bool[Source.Schema.Count]; 241bool[] activeInput = new bool[Source.Schema.Count];
Transforms\RangeFilter.cs (9)
100var schema = Source.Schema; 150var schema = Source.Schema; 192ctx.SaveNonEmptyString(Source.Schema[_index].Name); 214var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 216var input = Source.GetRowCursor(inputCols, rand); 228var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 229var inputs = Source.GetRowCursorSet(inputCols, n, rand); 252active = new bool[Source.Schema.Count]; 253bool[] activeInput = new bool[Source.Schema.Count];
Transforms\SkipTakeFilter.cs (2)
197long? count = Source.GetRowCount(); 215var input = Source.GetRowCursor(columnsNeeded);
Transforms\TransformBase.cs (17)
52public virtual bool CanShuffle { get { return Source.CanShuffle; } } 120public sealed override long? GetRowCount() { return Source.GetRowCount(); } 143public override DataViewSchema OutputSchema => Source.Schema; 174public DataViewSchema InputSchema => Source.Schema; 180Host.Check(input.Schema == Source.Schema, "Schema of input row must be the same as the schema the mapper is bound to"); 504InputTranspose = Source as ITransposeDataView; 506_bindings = Bindings.Create(this, column, Source.Schema, InputTranspose, testType); 518InputTranspose = Source as ITransposeDataView; 520_bindings = Bindings.Create(this, column, Source.Schema, InputTranspose, testType); 532InputTranspose = Source as ITransposeDataView; 534_bindings = Bindings.Create(this, ctx, Source.Schema, InputTranspose, testType); 548InputTranspose = Source as ITransposeDataView; 554Source = transform.Source.Schema[x.Source].Name, 584var srcName = Source.Schema[info.Source].Name; 611string inputColumnName = Source.Schema[info.Source].Name; 742var input = Source.GetRowCursor(inputCols, rand); 753var inputs = Source.GetRowCursorSet(inputCols, n, rand);
Microsoft.ML.TimeSeries (7)
SequentialTransformerBase.cs (7)
595public DataViewSchema InputSchema => Source.Schema; 871var inputCols = Source.Schema.Where(x => predicateInput(x.Index)); 872return new Cursor(Host, Source.GetRowCursor(inputCols, rand), this, active); 883var inputCols = Source.Schema.Where(x => predicateInput(x.Index)); 884var inputs = Source.GetRowCursorSet(inputCols, n, rand); 926DataViewSchema IRowToRowMapper.InputSchema => Source.Schema; 932Host.Check(input.Schema == Source.Schema, "Schema of input row must be the same as the schema the mapper is bound to");
Microsoft.ML.Transforms (38)
GroupTransform.cs (7)
116_groupBinding = new GroupBinding(Host, Source.Schema, options.GroupKeys, options.Columns ?? new string[0]); 525bool[] srcActiveLeading = new bool[_parent.Source.Schema.Count]; 528var activeCols = _parent.Source.Schema.Where(x => x.Index < srcActiveLeading.Length && srcActiveLeading[x.Index]); 529_leadingCursor = parent.Source.GetRowCursor(activeCols); 531bool[] srcActiveTrailing = new bool[_parent.Source.Schema.Count]; 543activeCols = _parent.Source.Schema.Where(x => x.Index < srcActiveTrailing.Length && srcActiveTrailing[x.Index]); 544_trailingCursor = parent.Source.GetRowCursor(activeCols);
HashJoiningTransform.cs (3)
418var srcColumnName = Source.Schema[Infos[iinfo].Source].Name; 419bool useDefaultSlotNames = !Source.Schema[Infos[iinfo].Source].HasSlotNames(Infos[iinfo].TypeSrc.GetVectorSize()); 423Source.Schema[Infos[iinfo].Source].Annotations.GetValue(AnnotationUtils.Kinds.SlotNames, ref srcSlotNames);
MissingValueIndicatorTransform.cs (4)
150(typeNames = Source.Schema[Infos[iinfo].Source].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType) == null || 189var columnName = Source.Schema[Infos[iinfo].Source].Name; 199var typeNames = Source.Schema[Infos[iinfo].Source].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType; 204Source.Schema[Infos[iinfo].Source].Annotations.GetValue(AnnotationUtils.Kinds.SlotNames, ref names);
OptionalColumnTransform.cs (8)
281_bindings = Bindings.Create(args, Source.Schema, this); 291_bindings = Bindings.Create(host, ctx, Source.Schema, this); 331var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 332var input = Source.GetRowCursor(inputCols); 342var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 349var inputs = Source.GetRowCursorSet(inputCols, n); 362input = Source.GetRowCursor(inputCols); 525string inputColumnName = Source.Schema[_bindings.SrcCols[iinfo]].Name;
ProduceIdTransform.cs (6)
98public override bool CanShuffle { get { return Source.CanShuffle; } } 116_bindings = Bindings.Create(ctx, Source.Schema); 146var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 147var input = Source.GetRowCursor(inputCols, rand); 159var inputCols = Source.Schema.Where(x => inputPred(x.Index)); 160DataViewRowCursor[] cursors = Source.GetRowCursorSet(inputCols, n, rand);
StatefulCustomMappingTransformer.cs (4)
140var inputs = Source.GetRowCursorSet(inputCols, n); 153input = Source.GetRowCursor(inputCols); 226return Source.Schema.Where(col => inputPred(col.Index)); 235var input = Source.GetRowCursor(inputCols, rand);
UngroupTransform.cs (6)
117_ungroupBinding = new UngroupBinding(Host, Source.Schema, options.Mode, options.Columns); 157long? srcRowCount = Source.GetRowCount(); 185var inputCols = Source.Schema.Where(x => activeInput[x.Index]); 186var inputCursor = Source.GetRowCursor(inputCols, null); 196var inputCols = Source.Schema.Where(x => activeInput[x.Index]); 197var inputCursors = Source.GetRowCursorSet(inputCols, n, null);