a5b9554c8a4ed32e01d9462eb11d065995699a8e
java/com.sap.sailing.windestimation.lab/SimpleModelsTrainingPart2.launch
| ... | ... | @@ -9,5 +9,5 @@ |
| 9 | 9 | <booleanAttribute key="org.eclipse.jdt.launching.ATTR_EXCLUDE_TEST_CODE" value="true"/> |
| 10 | 10 | <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.sap.sailing.windestimation.model.SimpleModelsTrainingPart2"/> |
| 11 | 11 | <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="com.sap.sailing.windestimation.lab"/> |
| 12 | -<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dmongo.dbName=windEstimation"/> |
|
| 12 | +<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea -Dmongo.port=10202 -Dmongo.dbName=windestimation"/> |
|
| 13 | 13 | </launchConfiguration> |
java/com.sap.sailing.windestimation.lab/src/com/sap/sailing/windestimation/model/ExportedModelsGenerator.java
| ... | ... | @@ -9,22 +9,20 @@ import java.util.ArrayList; |
| 9 | 9 | import java.util.List; |
| 10 | 10 | import java.util.Map; |
| 11 | 11 | |
| 12 | +import com.sap.sailing.windestimation.data.persistence.maneuver.RegularManeuversForEstimationPersistenceManager; |
|
| 12 | 13 | import com.sap.sailing.windestimation.integration.ExportedModels; |
| 13 | -import com.sap.sailing.windestimation.model.store.FileSystemModelStoreImpl; |
|
| 14 | 14 | import com.sap.sailing.windestimation.model.store.ModelDomainType; |
| 15 | 15 | import com.sap.sailing.windestimation.model.store.ModelStore; |
| 16 | +import com.sap.sailing.windestimation.model.store.MongoDbModelStoreImpl; |
|
| 16 | 17 | import com.sap.sailing.windestimation.util.LoggingUtil; |
| 17 | 18 | |
| 18 | 19 | public class ExportedModelsGenerator { |
| 19 | - |
|
| 20 | 20 | private static final File file = new File("windEstimationModels.dat"); |
| 21 | 21 | |
| 22 | 22 | public static void main(String[] args) throws FileNotFoundException, IOException { |
| 23 | - ModelStore modelStore = new FileSystemModelStoreImpl("trained_wind_estimation_models"); |
|
| 24 | - // RegularManeuversForEstimationPersistenceManager persistenceManager = new |
|
| 25 | - // RegularManeuversForEstimationPersistenceManager(); |
|
| 26 | - // ModelStore modelStore = new MongoDbModelStoreImpl(persistenceManager.getDb()); |
|
| 27 | - LoggingUtil.logInfo("Generation a single file with all trained models started"); |
|
| 23 | + RegularManeuversForEstimationPersistenceManager persistenceManager = new RegularManeuversForEstimationPersistenceManager(); |
|
| 24 | + ModelStore modelStore = new MongoDbModelStoreImpl(persistenceManager.getDb()); |
|
| 25 | + LoggingUtil.logInfo("Generating a single file with all trained models started"); |
|
| 28 | 26 | ExportedModels exportedModels = new ExportedModels(); |
| 29 | 27 | List<ModelDomainType> nonEmptyDomainTypes = new ArrayList<>(); |
| 30 | 28 | for (ModelDomainType domainType : ModelDomainType.values()) { |
| ... | ... | @@ -45,5 +43,4 @@ public class ExportedModelsGenerator { |
| 45 | 43 | LoggingUtil.logInfo("The following domain types were considered: " + nonEmptyDomainTypes); |
| 46 | 44 | LoggingUtil.logInfo("File with all exported models was persisted in: " + file.getAbsolutePath()); |
| 47 | 45 | } |
| 48 | - |
|
| 49 | 46 | } |
wiki/howto/windestimation.md
| ... | ... | @@ -8,8 +8,8 @@ To complete the training process successfully, you need to make sure that you ha |
| 8 | 8 | |
| 9 | 9 | * A complete onboarding setup for SAP Sailing Analytics development |
| 10 | 10 | * MongoDB (**3.4 or higher!**) is up and running (can be the same MongoDB instance as required in onboarding howto) |
| 11 | -* At least 300 GB free space on the partition where MongoDB is operating |
|
| 12 | -* Installed graphical MongoDB client such as MongoDB Compass (Community version) |
|
| 11 | +* At least 100 GB free space on the partition where MongoDB is operating in case you're using the WiredTiger storage engine (the default for MongoDB 3.4 and upwards), otherwise at least 300GB |
|
| 12 | +* Installed graphical MongoDB client such as MongoDB Compass (Community version), or you're skilled with the ``mongo`` command line tool |
|
| 13 | 13 | * 16 GB RAM |
| 14 | 14 | * 24+ operating hours of a computer that has a Java 8 VM installed |
| 15 | 15 |