com.expleague.ml.cli.builders.data.impl.PoolReaderFeatureTxt Maven / Gradle / Ivy
package com.expleague.ml.cli.builders.data.impl;
import com.expleague.ml.cli.builders.data.PoolReader;
import com.expleague.ml.data.tools.DataTools;
import com.expleague.ml.data.tools.Pool;
import java.io.IOException;
/**
* Created by noxoomo on 15/10/2017.
*/
public class PoolReaderFeatureTxt implements PoolReader {
@Override
public Pool read(String path) {
try {
return DataTools.loadFromFeaturesTxt(path);
}
catch (IOException e) {
throw new RuntimeException(e);
}
}
}