3 writes to Columns
Microsoft.ML.Data (3)
Transforms\Normalizer.cs (3)
527Columns = ImmutableArray.Create(columns); 631Columns = ImmutableArray.Create(cols); 652Columns = ImmutableArray.Create(cols);
24 references to Columns
Microsoft.ML.Data (24)
Transforms\Normalizer.cs (24)
501/// <summary>An accessor of the column functions within <see cref="Columns"/>.</summary> 518string errMsg = "Not valid. Valid range is from 0 (inclusive) to " + Columns.Length + " (exclusive) but got " + index + "."; 519Contracts.CheckUserArg(index >= 0 && index < Columns.Length, nameof(index), errMsg); 521return Columns[index].ModelParameters; 528ColumnFunctions = new ColumnFunctionAccessor(Columns); 622ColumnFunctions = new ColumnFunctionAccessor(Columns); 643ColumnFunctions = new ColumnFunctionAccessor(Columns); 693for (int iinfo = 0; iinfo < Columns.Length; iinfo++) 695ColumnOptions.SaveType(ctx, Columns[iinfo].InputType); 697ctx.SaveSubModel(dir, Columns[iinfo].ColumnFunction.Save); 735var result = new DataViewSchema.DetachedColumn[_parent.Columns.Length]; 736for (int i = 0; i < _parent.Columns.Length; i++) 737result[i] = new DataViewSchema.DetachedColumn(_parent.Columns[i].Name, _parent.Columns[i].InputType, MakeMetadata(i)); 743var colInfo = _parent.Columns[iinfo]; 759return _parent.Columns[iinfo].ColumnFunction.GetGetter(input, ColMapNewToOld[iinfo]); 766for (int iinfo = 0; iinfo < _parent.Columns.Length; ++iinfo) 768var info = _parent.Columns[iinfo]; 791for (int iinfo = 0; iinfo < _parent.Columns.Length; ++iinfo) 793var info = _parent.Columns[iinfo]; 816Contracts.Assert(0 <= iinfo && iinfo < _parent.Columns.Length); 817Contracts.Assert(_parent.Columns[iinfo] == info); 826Contracts.Assert(0 <= iinfo && iinfo < _parent.Columns.Length); 827Contracts.Assert(_parent.Columns[iinfo] == info);