cloud.eppo.rac.dto.BanditLogData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-common-jvm Show documentation
Show all versions of sdk-common-jvm Show documentation
Eppo SDK for JVM shared library
package cloud.eppo.rac.dto;
import java.util.Date;
import java.util.Map;
/** Assignment Log Data Class */
public class BanditLogData {
private final Date timestamp;
private final String experiment;
private final String banditKey;
private final String subject;
private final String action;
private final Double actionProbability;
private final String modelVersion;
private final Map subjectNumericAttributes;
private final Map subjectCategoricalAttributes;
private final Map actionNumericAttributes;
private final Map actionCategoricalAttributes;
public BanditLogData(
String experiment,
String banditKey,
String subject,
String action,
Double actionProbability,
String modelVersion,
Map subjectNumericAttributes,
Map subjectCategoricalAttributes,
Map actionNumericAttributes,
Map actionCategoricalAttributes) {
this.timestamp = new Date();
this.experiment = experiment;
this.banditKey = banditKey;
this.subject = subject;
this.action = action;
this.actionProbability = actionProbability;
this.modelVersion = modelVersion;
this.subjectNumericAttributes = subjectNumericAttributes;
this.subjectCategoricalAttributes = subjectCategoricalAttributes;
this.actionNumericAttributes = actionNumericAttributes;
this.actionCategoricalAttributes = actionCategoricalAttributes;
}
public Date getTimestamp() {
return timestamp;
}
public String getExperiment() {
return experiment;
}
public String getBanditKey() {
return banditKey;
}
public String getSubject() {
return subject;
}
public String getAction() {
return action;
}
public Double getActionProbability() {
return actionProbability;
}
public String getModelVersion() {
return modelVersion;
}
public Map getSubjectNumericAttributes() {
return subjectNumericAttributes;
}
public Map getSubjectCategoricalAttributes() {
return subjectCategoricalAttributes;
}
public Map getActionNumericAttributes() {
return actionNumericAttributes;
}
public Map getActionCategoricalAttributes() {
return actionCategoricalAttributes;
}
}