Skip to content

Commit

Permalink
Don't forget to add the full training path
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewQuijano committed Jul 30, 2023
1 parent 123427c commit b842661
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/java/weka/finito/utils/DataHandling.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public class DataHandling {
// Question: Are we assuming all Data Providers know all classes??? Perhaps we can assume yes for now...
public static Instances @NotNull [] createPartitions(String fullDataSetPath, int noParties)
throws Exception {
ConverterUtils.DataSource source = new ConverterUtils.DataSource(fullDataSetPath);
Instances data = source.getDataSet();
Instances data = read_data(fullDataSetPath);

//data.deleteWithMissingClass();
int numAttributes, noElementsForPartition, noElementsForLastPartition;
Expand Down
6 changes: 5 additions & 1 deletion src/test/java/TrainingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ public void train_all() throws Exception {
while ((line = br.readLine()) != null) {
String [] values = line.split(",");
String data_set = values[0];
train(data_set);
String full_data_set_path = new File(data_directory, data_set).toString();

if (!data_set.endsWith(".model")) {
train(full_data_set_path);
}
}
}
}
Expand Down

0 comments on commit b842661

Please sign in to comment.