Skip to content

Commit

Permalink
Adding serialization test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craigacp committed Jul 20, 2023
1 parent 5bb7fbb commit c339ec7
Show file tree
Hide file tree
Showing 18 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public void serialization431Test() throws URISyntaxException, IOException {
public void generateProtobuf() throws IOException {
DenseMatrix aMatrix = DenseMatrixTest.generateA();
ShrinkingMatrix shMatrix = new ShrinkingMatrix(aMatrix,0.1,true);
Helpers.writeProtobuf(shMatrix, Paths.get("src","test","resources","org","tribuo","math","optimizers","util","shrinking-matrix-431.tribuo"));
Helpers.writeProtobuf(shMatrix, Paths.get("src","test","resources","org","tribuo","math","optimisers","util","shrinking-matrix-431.tribuo"));
DenseVector aVec = DenseVectorTest.generateVectorA();
ShrinkingVector shVec = new ShrinkingVector(aVec,0.1,true);
Helpers.writeProtobuf(shVec, Paths.get("src","test","resources","org","tribuo","math","optimizers","util","shrinking-vector-431.tribuo"));
Helpers.writeProtobuf(shVec, Paths.get("src","test","resources","org","tribuo","math","optimisers","util","shrinking-vector-431.tribuo"));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'org.tribuo.math.distance.CosineDistance
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#org.tribuo.math.distance.L1Distance
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#org.tribuo.math.distance.L2Distance
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.tribuo.math.kernel.Linear
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@org.tribuo.math.neighbour.bruteforce.NeighboursBruteForceFactoryh
;type.googleapis.com/tribuo.math.impl.BruteForceFactoryProto)%#org.tribuo.math.distance.L2Distance
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.org.tribuo.math.neighbour.kdtree.KDTreeFactoryd
7type.googleapis.com/tribuo.math.impl.KDTreeFactoryProto)%#org.tribuo.math.distance.L2Distance
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"org.tribuo.math.util.ExpNormalizer
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.tribuo.math.util.HeapMerger
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
%org.tribuo.math.util.MatrixHeapMerger
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#org.tribuo.math.util.NoopNormalizer
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.tribuo.math.util.Normalizer
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
&org.tribuo.math.util.SigmoidNormalizer

0 comments on commit c339ec7

Please sign in to comment.