From 8d8efbf21e8df34b4bbfe333c3736b1095d9e54d Mon Sep 17 00:00:00 2001 From: faradaym Date: Wed, 10 Oct 2018 02:48:46 -0500 Subject: [PATCH] Rename files -- cleanup --- README.md | 16 ++++++++-------- .../scala/lantern/{dslapi.scala => DslAPI.scala} | 0 .../scala/lantern/{future.scala => Future.scala} | 0 .../lantern/{nnModule.scala => NNModule.scala} | 0 .../lantern/{onnxLib.scala => ONNXLib.scala} | 0 ...{ad_lms.scala => ScalarDifferentiation.scala} | 0 .../lantern/{scanner.scala => Scanner.scala} | 0 ..._vector.scala => TensorDifferentiation.scala} | 0 .../scala/lantern/{LSTM.scala => LSTMTest.scala} | 0 .../{mnistCNN.scala => MnistCNNTest.scala} | 0 ...ntimentLSTM.scala => SentimentLSTMTest.scala} | 0 ...sentimentRNN.scala => SentimentRNNTest.scala} | 0 ...reeLSTM.scala => SentimentTreeLSTMTest.scala} | 0 .../{ad_hessian.scala => TestAdHessian.scala} | 0 .../{ad_jacobian.scala => TestAdJacobian.scala} | 0 ...d_shiftreset.scala => TestAdShiftReset.scala} | 2 +- ...{test_broadcast.scala => TestBroadcast.scala} | 0 .../{test_future.scala => TestFuture.scala} | 0 ...nFunSuite.scala => TestLanternFunSuite.scala} | 0 .../{test_nnmodule.scala => TestNNModule.scala} | 0 .../lantern/{test_onnx.scala => TestONNX.scala} | 0 ...lms.scala => TestScalarDifferentiation.scala} | 0 ...tor.scala => TestTensorDifferentiation.scala} | 0 .../{vanillaRNN.scala => TestVanillaRNN.scala} | 0 ...llaRNNList.scala => TestVanillaRNNList.scala} | 0 25 files changed, 9 insertions(+), 9 deletions(-) rename src/main/scala/lantern/{dslapi.scala => DslAPI.scala} (100%) rename src/main/scala/lantern/{future.scala => Future.scala} (100%) rename src/main/scala/lantern/{nnModule.scala => NNModule.scala} (100%) rename src/main/scala/lantern/{onnxLib.scala => ONNXLib.scala} (100%) rename src/main/scala/lantern/{ad_lms.scala => ScalarDifferentiation.scala} (100%) rename src/main/scala/lantern/{scanner.scala => Scanner.scala} (100%) rename src/main/scala/lantern/{ad_lms_vector.scala => TensorDifferentiation.scala} (100%) rename src/test/scala/lantern/{LSTM.scala => LSTMTest.scala} (100%) rename src/test/scala/lantern/{mnistCNN.scala => MnistCNNTest.scala} (100%) rename src/test/scala/lantern/{sentimentLSTM.scala => SentimentLSTMTest.scala} (100%) rename src/test/scala/lantern/{sentimentRNN.scala => SentimentRNNTest.scala} (100%) rename src/test/scala/lantern/{sentimentTreeLSTM.scala => SentimentTreeLSTMTest.scala} (100%) rename src/test/scala/lantern/{ad_hessian.scala => TestAdHessian.scala} (100%) rename src/test/scala/lantern/{ad_jacobian.scala => TestAdJacobian.scala} (100%) rename src/test/scala/lantern/{ad_shiftreset.scala => TestAdShiftReset.scala} (99%) rename src/test/scala/lantern/{test_broadcast.scala => TestBroadcast.scala} (100%) rename src/test/scala/lantern/{test_future.scala => TestFuture.scala} (100%) rename src/test/scala/lantern/{LanternFunSuite.scala => TestLanternFunSuite.scala} (100%) rename src/test/scala/lantern/{test_nnmodule.scala => TestNNModule.scala} (100%) rename src/test/scala/lantern/{test_onnx.scala => TestONNX.scala} (100%) rename src/test/scala/lantern/{test_ad_lms.scala => TestScalarDifferentiation.scala} (100%) rename src/test/scala/lantern/{test_ad_lms_vector.scala => TestTensorDifferentiation.scala} (100%) rename src/test/scala/lantern/{vanillaRNN.scala => TestVanillaRNN.scala} (100%) rename src/test/scala/lantern/{vanillaRNNList.scala => TestVanillaRNNList.scala} (100%) diff --git a/README.md b/README.md index d6506c3a..54496c7b 100644 --- a/README.md +++ b/README.md @@ -168,15 +168,15 @@ These instructions will get you a copy of the project up and running on your loc ### Directory Organization * [root directory for Lantern](./src) * [Lantern code directory](./src/main/scala/lantern) - * [code for AD on scalar variable](./src/main/scala/lantern/ad_lms.scala) - * [code for AD on vector and tensor](./src/main/scala/lantern/ad_lms_vector.scala) - * [LMS framework code](./src/main/scala/lantern/dslapi.scala) - * [data loader](./src/main/scala/lantern/scanner.scala) + * [code for AD on scalar variable](src/main/scala/lantern/ScalarDifferentiation.scala) + * [code for AD on vector and tensor](src/main/scala/lantern/TensorDifferentiation.scala) + * [LMS framework code](src/main/scala/lantern/DslAPI.scala) + * [data loader](src/main/scala/lantern/Scanner.scala) * [Lantern test directory](./src/test/scala/lantern) - * [ScalaTest instance of RNN evaluation](./src/test/scala/lantern/vanillaRNN.scala) - * [ScalaTest instance of LSTM evaluation](./src/test/scala/lantern/LSTM.scala) - * [ScalaTest instance of TreeLSTM evaluation](./src/test/scala/lantern/sentimentTreeLSTM.scala) - * [ScalaTest instance of CNN evaluation](./src/test/scala/lantern/mnistCNN.scala) + * [ScalaTest instance of RNN evaluation](src/test/scala/lantern/TestVanillaRNN.scala) + * [ScalaTest instance of LSTM evaluation](src/test/scala/lantern/LSTMTest.scala) + * [ScalaTest instance of TreeLSTM evaluation](src/test/scala/lantern/SentimentTreeLSTMTest.scala) + * [ScalaTest instance of CNN evaluation](src/test/scala/lantern/MnistCNNTest.scala) * [directory for evaluation code](./src/out/ICFP18evaluation) * [directory for RNN evaluation code](./src/out/ICFP18evaluation/evaluationRNN) * [directory for LSTM evaluation code](./src/out/ICFP18evaluation/evaluationLSTM) diff --git a/src/main/scala/lantern/dslapi.scala b/src/main/scala/lantern/DslAPI.scala similarity index 100% rename from src/main/scala/lantern/dslapi.scala rename to src/main/scala/lantern/DslAPI.scala diff --git a/src/main/scala/lantern/future.scala b/src/main/scala/lantern/Future.scala similarity index 100% rename from src/main/scala/lantern/future.scala rename to src/main/scala/lantern/Future.scala diff --git a/src/main/scala/lantern/nnModule.scala b/src/main/scala/lantern/NNModule.scala similarity index 100% rename from src/main/scala/lantern/nnModule.scala rename to src/main/scala/lantern/NNModule.scala diff --git a/src/main/scala/lantern/onnxLib.scala b/src/main/scala/lantern/ONNXLib.scala similarity index 100% rename from src/main/scala/lantern/onnxLib.scala rename to src/main/scala/lantern/ONNXLib.scala diff --git a/src/main/scala/lantern/ad_lms.scala b/src/main/scala/lantern/ScalarDifferentiation.scala similarity index 100% rename from src/main/scala/lantern/ad_lms.scala rename to src/main/scala/lantern/ScalarDifferentiation.scala diff --git a/src/main/scala/lantern/scanner.scala b/src/main/scala/lantern/Scanner.scala similarity index 100% rename from src/main/scala/lantern/scanner.scala rename to src/main/scala/lantern/Scanner.scala diff --git a/src/main/scala/lantern/ad_lms_vector.scala b/src/main/scala/lantern/TensorDifferentiation.scala similarity index 100% rename from src/main/scala/lantern/ad_lms_vector.scala rename to src/main/scala/lantern/TensorDifferentiation.scala diff --git a/src/test/scala/lantern/LSTM.scala b/src/test/scala/lantern/LSTMTest.scala similarity index 100% rename from src/test/scala/lantern/LSTM.scala rename to src/test/scala/lantern/LSTMTest.scala diff --git a/src/test/scala/lantern/mnistCNN.scala b/src/test/scala/lantern/MnistCNNTest.scala similarity index 100% rename from src/test/scala/lantern/mnistCNN.scala rename to src/test/scala/lantern/MnistCNNTest.scala diff --git a/src/test/scala/lantern/sentimentLSTM.scala b/src/test/scala/lantern/SentimentLSTMTest.scala similarity index 100% rename from src/test/scala/lantern/sentimentLSTM.scala rename to src/test/scala/lantern/SentimentLSTMTest.scala diff --git a/src/test/scala/lantern/sentimentRNN.scala b/src/test/scala/lantern/SentimentRNNTest.scala similarity index 100% rename from src/test/scala/lantern/sentimentRNN.scala rename to src/test/scala/lantern/SentimentRNNTest.scala diff --git a/src/test/scala/lantern/sentimentTreeLSTM.scala b/src/test/scala/lantern/SentimentTreeLSTMTest.scala similarity index 100% rename from src/test/scala/lantern/sentimentTreeLSTM.scala rename to src/test/scala/lantern/SentimentTreeLSTMTest.scala diff --git a/src/test/scala/lantern/ad_hessian.scala b/src/test/scala/lantern/TestAdHessian.scala similarity index 100% rename from src/test/scala/lantern/ad_hessian.scala rename to src/test/scala/lantern/TestAdHessian.scala diff --git a/src/test/scala/lantern/ad_jacobian.scala b/src/test/scala/lantern/TestAdJacobian.scala similarity index 100% rename from src/test/scala/lantern/ad_jacobian.scala rename to src/test/scala/lantern/TestAdJacobian.scala diff --git a/src/test/scala/lantern/ad_shiftreset.scala b/src/test/scala/lantern/TestAdShiftReset.scala similarity index 99% rename from src/test/scala/lantern/ad_shiftreset.scala rename to src/test/scala/lantern/TestAdShiftReset.scala index 61c79456..e1d84d32 100644 --- a/src/test/scala/lantern/ad_shiftreset.scala +++ b/src/test/scala/lantern/TestAdShiftReset.scala @@ -119,7 +119,7 @@ object ShiftReset { assert (gradient_if == gfif(2.4, 3.9)) println("Step 2b") - // Function with if-statement (like the one in ad_lms.scala) + // Function with if-statement (like the one in ScalarDifferentiation.scala) def fif2(x: Num): Num @diff = { if (x > 0.0) x * x else -1.0 * x * x } diff --git a/src/test/scala/lantern/test_broadcast.scala b/src/test/scala/lantern/TestBroadcast.scala similarity index 100% rename from src/test/scala/lantern/test_broadcast.scala rename to src/test/scala/lantern/TestBroadcast.scala diff --git a/src/test/scala/lantern/test_future.scala b/src/test/scala/lantern/TestFuture.scala similarity index 100% rename from src/test/scala/lantern/test_future.scala rename to src/test/scala/lantern/TestFuture.scala diff --git a/src/test/scala/lantern/LanternFunSuite.scala b/src/test/scala/lantern/TestLanternFunSuite.scala similarity index 100% rename from src/test/scala/lantern/LanternFunSuite.scala rename to src/test/scala/lantern/TestLanternFunSuite.scala diff --git a/src/test/scala/lantern/test_nnmodule.scala b/src/test/scala/lantern/TestNNModule.scala similarity index 100% rename from src/test/scala/lantern/test_nnmodule.scala rename to src/test/scala/lantern/TestNNModule.scala diff --git a/src/test/scala/lantern/test_onnx.scala b/src/test/scala/lantern/TestONNX.scala similarity index 100% rename from src/test/scala/lantern/test_onnx.scala rename to src/test/scala/lantern/TestONNX.scala diff --git a/src/test/scala/lantern/test_ad_lms.scala b/src/test/scala/lantern/TestScalarDifferentiation.scala similarity index 100% rename from src/test/scala/lantern/test_ad_lms.scala rename to src/test/scala/lantern/TestScalarDifferentiation.scala diff --git a/src/test/scala/lantern/test_ad_lms_vector.scala b/src/test/scala/lantern/TestTensorDifferentiation.scala similarity index 100% rename from src/test/scala/lantern/test_ad_lms_vector.scala rename to src/test/scala/lantern/TestTensorDifferentiation.scala diff --git a/src/test/scala/lantern/vanillaRNN.scala b/src/test/scala/lantern/TestVanillaRNN.scala similarity index 100% rename from src/test/scala/lantern/vanillaRNN.scala rename to src/test/scala/lantern/TestVanillaRNN.scala diff --git a/src/test/scala/lantern/vanillaRNNList.scala b/src/test/scala/lantern/TestVanillaRNNList.scala similarity index 100% rename from src/test/scala/lantern/vanillaRNNList.scala rename to src/test/scala/lantern/TestVanillaRNNList.scala