The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Problems with connection to a SQL Database

BurnCycleBurnCycle Member Posts: 1 Learner III
edited September 2019 in Help
Hi there.
First would like to thanks for an excellent piece of software.
Well, i've been trying to create something on java that would access a SQL database and, with that, applying some learning algorithm to it.
The problem is that, after i access the DB successfully, it appears to only get the tables structure failing to get the actual data in the database.

here's some examples of the code i'm using to access the DB:

DatabaseHandler dh = DatabaseHandler.getConnectedDatabaseHandler("database link", "user", "pass");
DatabaseExampleTable db = DatabaseExampleTable.createDatabaseExampleTable(dh, "TABLE_NAME");
after i apply the algorithm with some code like this:

DecisionTreeLearner dtl = new DecisionTreeLearner(od);
ExampleSet e = exampledb();
Model m = dtl.doWork(e);
i got the error:

com.rapidminer.operator.UserError: The example set has no examples
anyone has any idea what could be the problem?
Tagged:
Sign In or Register to comment.