@Override public void write(DataOutput dataOutput) throws IOException { PolymorphicWritable.write(dataOutput, wrapped); }
@Override public void write(DataOutput out) throws IOException { PolymorphicWritable.write(out, value); }
@Override public void write(DataOutput out) throws IOException { PolymorphicWritable.write(out, value); }
@Override public void write(DataOutput out) throws IOException { PolymorphicWritable.write(out, value); }
@Override public void write(DataOutput out) throws IOException { out.writeInt(threadCount); out.writeInt(population.size()); for (State<T, U> state : population) { PolymorphicWritable.write(out, state); } }
@Override public void write(DataOutput out) throws IOException { out.writeInt(threadCount); out.writeInt(population.size()); for (State<T, U> state : population) { PolymorphicWritable.write(out, state); } }
public static void writeBinary(String path, CrossFoldLearner model) throws IOException { try (DataOutputStream out = new DataOutputStream(new FileOutputStream(path))) { PolymorphicWritable.write(out, model); } }
public static void writeBinary(String path, OnlineLogisticRegression model) throws IOException { try (DataOutputStream out = new DataOutputStream(new FileOutputStream(path))) { PolymorphicWritable.write(out, model); } }
public static void writeBinary(String path, AdaptiveLogisticRegression model) throws IOException { try (DataOutputStream out = new DataOutputStream(new FileOutputStream(path))){ PolymorphicWritable.write(out, model); } }
public static void writeBinary(String path, OnlineLogisticRegression model) throws IOException { DataOutputStream out = new DataOutputStream(new FileOutputStream(path)); try { PolymorphicWritable.write(out, model); } finally { Closeables.close(out, false); } }
public static void writeBinary(String path, AdaptiveLogisticRegression model) throws IOException { DataOutputStream out = new DataOutputStream(new FileOutputStream(path)); try { PolymorphicWritable.write(out, model); } finally { Closeables.close(out, false); } }
@Override public void write(DataOutput out) throws IOException { out.writeInt(threadCount); out.writeInt(population.size()); for (State<T, U> state : population) { PolymorphicWritable.write(out, state); } }
public static void writeBinary(String path, CrossFoldLearner model) throws IOException { DataOutputStream out = new DataOutputStream(new FileOutputStream(path)); try { PolymorphicWritable.write(out, model); } finally { Closeables.close(out, false); } }
public static void writeBinary(String path, AdaptiveLogisticRegression model) throws IOException { DataOutputStream out = new DataOutputStream(new FileOutputStream(path)); try { PolymorphicWritable.write(out, model); } finally { Closeables.close(out, false); } }
public static void writeBinary(String path, CrossFoldLearner model) throws IOException { DataOutputStream out = new DataOutputStream(new FileOutputStream(path)); try { PolymorphicWritable.write(out, model); } finally { Closeables.close(out, false); } }
public static void writeBinary(String path, OnlineLogisticRegression model) throws IOException { DataOutputStream out = new DataOutputStream(new FileOutputStream(path)); try { PolymorphicWritable.write(out, model); } finally { Closeables.close(out, false); } }
@Override public void write(DataOutput out) throws IOException { out.writeInt(map.size()); for (Map.Entry<String,OnlineAuc> entry : map.entrySet()) { out.writeUTF(entry.getKey()); PolymorphicWritable.write(out, entry.getValue()); } out.writeInt(policy.ordinal()); out.writeInt(windowSize); }
@Override public void write(DataOutput out) throws IOException { out.writeInt(map.size()); for (Map.Entry<String,OnlineAuc> entry : map.entrySet()) { out.writeUTF(entry.getKey()); PolymorphicWritable.write(out, entry.getValue()); } out.writeInt(policy.ordinal()); out.writeInt(windowSize); }
@Override public void write(DataOutput out) throws IOException { out.writeInt(map.size()); for (Map.Entry<String,OnlineAuc> entry : map.entrySet()) { out.writeUTF(entry.getKey()); PolymorphicWritable.write(out, entry.getValue()); } out.writeInt(policy.ordinal()); out.writeInt(windowSize); }
private static <T extends Writable> T roundTrip(T m, Class<T> clazz) throws IOException { ByteArrayOutputStream buf = new ByteArrayOutputStream(1000); DataOutputStream dos = new DataOutputStream(buf); try { PolymorphicWritable.write(dos, m); } finally { Closeables.close(dos, false); } return PolymorphicWritable.read(new DataInputStream(new ByteArrayInputStream(buf.toByteArray())), clazz); }