2 writes to One
Microsoft.ML.Core.Tests (2)
UnitTests\TestCustomTypeRegister.cs (2)
96
One
= new AlienBody(0, 0, 0, 0);
105
One
= new AlienBody(age, height, weight, handCount);
18 references to One
Microsoft.ML.Core.Tests (18)
UnitTests\TestCustomTypeRegister.cs (18)
79
/// <see cref="
One
"/> and <see cref="Two"/> would be mapped to different types inside ML.NET type system because they
80
/// have different <see cref="AlienTypeAttributeAttribute"/>s. For example, the column type of <see cref="
One
"/> would
163
output.Merged.Age = input.
One
.Age + input.Two.Age;
164
output.Merged.Height = input.
One
.Height + input.Two.Height;
165
output.Merged.Weight = input.
One
.Weight + input.Two.Weight;
166
output.Merged.HandCount = input.
One
.HandCount + input.Two.HandCount;
199
Assert.Equal(tribeEnumerable[0].Merged.Age, tribe[0].
One
.Age + tribe[0].Two.Age);
200
Assert.Equal(tribeEnumerable[0].Merged.Height, tribe[0].
One
.Height + tribe[0].Two.Height);
201
Assert.Equal(tribeEnumerable[0].Merged.Weight, tribe[0].
One
.Weight + tribe[0].Two.Weight);
202
Assert.Equal(tribeEnumerable[0].Merged.HandCount, tribe[0].
One
.HandCount + tribe[0].Two.HandCount);
211
Assert.Equal(superAlien.Merged.Age, alien.
One
.Age + alien.Two.Age);
212
Assert.Equal(superAlien.Merged.Height, alien.
One
.Height + alien.Two.Height);
213
Assert.Equal(superAlien.Merged.Weight, alien.
One
.Weight + alien.Two.Weight);
214
Assert.Equal(superAlien.Merged.HandCount, alien.
One
.HandCount + alien.Two.HandCount);
234
Assert.Equal(superAlien.Merged.Age, alien.
One
.Age + alien.Two.Age);
235
Assert.Equal(superAlien.Merged.Height, alien.
One
.Height + alien.Two.Height);
236
Assert.Equal(superAlien.Merged.Weight, alien.
One
.Weight + alien.Two.Weight);
237
Assert.Equal(superAlien.Merged.HandCount, alien.
One
.HandCount + alien.Two.HandCount);