From fccfb8b46064adb2f33c9bd562dcf0016aed7530 Mon Sep 17 00:00:00 2001 From: Ola Date: Tue, 7 Jan 2025 19:44:06 -0600 Subject: [PATCH] chore: naming --- src/autoencoder.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/autoencoder.test.ts b/src/autoencoder.test.ts index 0941f289..b649add4 100644 --- a/src/autoencoder.test.ts +++ b/src/autoencoder.test.ts @@ -73,15 +73,15 @@ test('restores a net fromJSON', () => { return Math.round(net.denoise(args)[2]); } - const jsonNet = xornet.toJSON(); - const restoredNet = new AE({ - json: jsonNet, + const json = xornet.toJSON(); + const net = new AE({ + json, }); - const run1 = xor(restoredNet, 0, 0, 0); - const run2 = xor(restoredNet, 0, 1, 1); - const run3 = xor(restoredNet, 1, 0, 1); - const run4 = xor(restoredNet, 1, 1, 0); + const run1 = xor(net, 0, 0, 0); + const run2 = xor(net, 0, 1, 1); + const run3 = xor(net, 1, 0, 1); + const run4 = xor(net, 1, 1, 0); expect(run1).toBe(0); expect(run2).toBe(1);