com.sigopt.model.Progress Maven / Gradle / Ivy
package com.sigopt.model;
import java.util.Map;
public class Progress extends StructObject {
public Progress() {
super();
}
private Observation asObservation(Object obj) {
return Utils.mergeInto(new Observation(), obj);
}
/**
* @deprecated Prefer Experiment.bestAssignments
*/
@Deprecated
public Observation getBestObservation() {
return this.asObservation(this.get("best_observation"));
}
public Observation getFirstObservation() {
return this.asObservation(this.get("first_observation"));
}
public Observation getLastObservation() {
return this.asObservation(this.get("last_observation"));
}
public Integer getObservationCount() {
return Utils.asInteger(this.get("observation_count"));
}
public static class Builder extends APIObjectBuilder