adjustments in the AquamapsNN

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngine@85728 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Gianpaolo Coro 2013-11-19 18:03:12 +00:00
parent 9da64c2f92
commit 5ae1191ef2
3 changed files with 6 additions and 4 deletions

View File

@ -14,8 +14,8 @@ public class Neural_Network implements Serializable {
// double soglia = 0.001;
// double maxcycle = 1000;
double soglia = 0.01;
double maxcycle = 100;
double soglia = 0.0001;
double maxcycle = 3000;
double acceptanceThr = 0.5;
public double maxfactor=1;
public double minfactor=0;

View File

@ -242,7 +242,7 @@ public class LocalSplitGenerator implements Generator {
// INITIALIZATION
long tstart = System.currentTimeMillis();
try {
AnalysisLogger.getLogger().trace("generate->Using algorithm " + distributionModel.getName());
AnalysisLogger.getLogger().trace("generate->Using Local Computation algorithm " + distributionModel.getName());
AnalysisLogger.getLogger().trace("generate->Check for table creation");
createTable();

View File

@ -5,6 +5,7 @@ import java.io.FileWriter;
import java.sql.Connection;
import java.util.List;
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
import org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration;
import org.hibernate.SessionFactory;
import org.postgresql.copy.CopyManager;
@ -270,11 +271,12 @@ public class DatabaseUtils {
public static void createBigTable(boolean createTable, String table, String dbdriver, String dbuser, String dbpassword, String dburl, String creationStatement, SessionFactory dbHibConnection) throws Exception {
if (createTable) {
try {
AnalysisLogger.getLogger().debug("Dropping previous table if exists");
DatabaseFactory.executeSQLUpdate("drop table " + table, dbHibConnection);
} catch (Exception e) {
// e.printStackTrace();
}
AnalysisLogger.getLogger().debug("Creating Big Table");
DatabaseFactory.executeUpdateNoTransaction(creationStatement, dbdriver, dbuser, dbpassword, dburl, true);
}
}