From 76e0880f847c477430f6fa9e5769ad7dd1d6bd97 Mon Sep 17 00:00:00 2001 From: Aryant Tripathi Date: Fri, 25 Oct 2024 00:58:31 +0530 Subject: [PATCH] Move ML prediction logic to PredictionUtils class - Refactored `predictReadingLevel` method from core class into `PredictionUtils` to enhance reusability and separation of concerns. - The utility class no longer includes logging statements. - Add unit test cases for ReadingFileUtil class. - Create a ReadingLevelConstants class which will be responsbile for containing all constants related to Reading level. Issue #1825 --- ...stants.java => ReadingLevelConstants.java} | 0 .../ai/elimu/util/reading_level/model1.pmml | 41 ------------------- 2 files changed, 41 deletions(-) rename src/main/java/ai/elimu/util/{AppConstants.java => ReadingLevelConstants.java} (100%) delete mode 100644 src/test/resources/ai/elimu/util/reading_level/model1.pmml diff --git a/src/main/java/ai/elimu/util/AppConstants.java b/src/main/java/ai/elimu/util/ReadingLevelConstants.java similarity index 100% rename from src/main/java/ai/elimu/util/AppConstants.java rename to src/main/java/ai/elimu/util/ReadingLevelConstants.java diff --git a/src/test/resources/ai/elimu/util/reading_level/model1.pmml b/src/test/resources/ai/elimu/util/reading_level/model1.pmml deleted file mode 100644 index f407bae04..000000000 --- a/src/test/resources/ai/elimu/util/reading_level/model1.pmml +++ /dev/null @@ -1,41 +0,0 @@ - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\ No newline at end of file