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