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;
66 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);