4 writes to _transformers
Microsoft.ML.Data (4)
DataLoadSave\TransformerChain.cs (4)
89
_transformers
= transformers?.ToArray() ?? new ITransformer[0];
108
_transformers
= new ITransformer[0];
114
_transformers
= transformers.ToArray();
208
_transformers
= new ITransformer[len];
16 references to _transformers
Microsoft.ML.Data (16)
DataLoadSave\TransformerChain.cs (16)
62
bool ITransformer.IsRowToRowMapper =>
_transformers
.All(t => t.IsRowToRowMapper);
64
ITransformer[] ITransformerChainAccessor.Transformers =>
_transformers
;
93
Contracts.Check((
_transformers
.Length > 0) == (LastTransformer != null));
94
Contracts.Check(
_transformers
.Length == _scopes.Length);
169
for (int i = 0; i <
_transformers
.Length; i++)
173
xfs.Add(
_transformers
[i]);
184
return new TransformerChain<TNewLast>(
_transformers
.AppendElement(transformer), _scopes.AppendElement(scope));
192
ctx.Writer.Write(
_transformers
.Length);
194
for (int i = 0; i <
_transformers
.Length; i++)
198
ctx.SaveModel(
_transformers
[i], dirName);
214
ctx.LoadModel<ITransformer, SignatureLoadModel>(env, out
_transformers
[i], dirName);
217
LastTransformer =
_transformers
[len - 1] as TLastTransformer;
236
public IEnumerator<ITransformer> GetEnumerator() => ((IEnumerable<ITransformer>)
_transformers
).GetEnumerator();
246
IRowToRowMapper[] mappers = new IRowToRowMapper[
_transformers
.Length];
250
mappers[i] =
_transformers
[i].GetRowToRowMapper(schema);
264
foreach (var transformer in
_transformers
)