|
|
|
|
|
|
public void TestVectorObsSpec() |
|
|
|
{ |
|
|
|
var obsSpec = ObservationSpec.Vector(5); |
|
|
|
Assert.AreEqual(1, obsSpec.NumDimensions); |
|
|
|
Assert.AreEqual(1, obsSpec.Rank); |
|
|
|
|
|
|
|
var shape = obsSpec.Shape; |
|
|
|
Assert.AreEqual(1, shape.Length); |
|
|
|
|
|
|
public void TestVariableLengthObsSpec() |
|
|
|
{ |
|
|
|
var obsSpec = ObservationSpec.VariableLength(5, 6); |
|
|
|
Assert.AreEqual(2, obsSpec.NumDimensions); |
|
|
|
Assert.AreEqual(2, obsSpec.Rank); |
|
|
|
|
|
|
|
var shape = obsSpec.Shape; |
|
|
|
Assert.AreEqual(2, shape.Length); |
|
|
|
|
|
|
public void TestVisualObsSpec() |
|
|
|
{ |
|
|
|
var obsSpec = ObservationSpec.Visual(5, 6, 7); |
|
|
|
Assert.AreEqual(3, obsSpec.NumDimensions); |
|
|
|
Assert.AreEqual(3, obsSpec.Rank); |
|
|
|
|
|
|
|
var shape = obsSpec.Shape; |
|
|
|
Assert.AreEqual(3, shape.Length); |
|
|
|