com.expleague.ml.cli.builders.data.impl.PoolReaderJson 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 PoolReaderJson implements PoolReader {
@Override
public Pool read(String path) {
try {
return DataTools.loadFromFile(path);
}
catch (IOException e) {
throw new RuntimeException(e);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy