-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working on converting to a standalone app.
- Loading branch information
1 parent
504e3f9
commit 75a7641
Showing
10 changed files
with
279 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
...y-evaluation-framework/src/main/java/org/opensearch/eval/model/data/ClickThroughRate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package org.opensearch.eval.model.data; | ||
|
||
import java.util.UUID; | ||
|
||
public class ClickThroughRate extends AbstractData { | ||
|
||
private String userQuery; | ||
private long clicks; | ||
private long events; | ||
private double ctr; | ||
private String objectId; | ||
|
||
public ClickThroughRate() { | ||
super(UUID.randomUUID().toString()); | ||
} | ||
|
||
public ClickThroughRate(String id) { | ||
super(id); | ||
} | ||
|
||
public String getUserQuery() { | ||
return userQuery; | ||
} | ||
|
||
public void setUserQuery(String userQuery) { | ||
this.userQuery = userQuery; | ||
} | ||
|
||
public long getClicks() { | ||
return clicks; | ||
} | ||
|
||
public void setClicks(long clicks) { | ||
this.clicks = clicks; | ||
} | ||
|
||
public long getEvents() { | ||
return events; | ||
} | ||
|
||
public void setEvents(long events) { | ||
this.events = events; | ||
} | ||
|
||
public double getCtr() { | ||
return ctr; | ||
} | ||
|
||
public void setCtr(double ctr) { | ||
this.ctr = ctr; | ||
} | ||
|
||
public String getObjectId() { | ||
return objectId; | ||
} | ||
|
||
public void setObjectId(String objectId) { | ||
this.objectId = objectId; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...h-quality-evaluation-framework/src/main/java/org/opensearch/eval/model/data/QuerySet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package org.opensearch.eval.model.data; | ||
|
||
import java.util.Collection; | ||
import java.util.Map; | ||
import java.util.UUID; | ||
|
||
public class QuerySet extends AbstractData { | ||
|
||
private String name; | ||
private String description; | ||
private String sampling; | ||
private Collection<Map<String, Long>> querySetQueries; | ||
private String timestamp; | ||
|
||
public QuerySet() { | ||
super(UUID.randomUUID().toString()); | ||
} | ||
|
||
public QuerySet(String id) { | ||
super(id); | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public String getSampling() { | ||
return sampling; | ||
} | ||
|
||
public void setSampling(String sampling) { | ||
this.sampling = sampling; | ||
} | ||
|
||
public Collection<Map<String, Long>> getQuerySetQueries() { | ||
return querySetQueries; | ||
} | ||
|
||
public void setQuerySetQueries(Collection<Map<String, Long>> querySetQueries) { | ||
this.querySetQueries = querySetQueries; | ||
} | ||
|
||
public String getTimestamp() { | ||
return timestamp; | ||
} | ||
|
||
public void setTimestamp(String timestamp) { | ||
this.timestamp = timestamp; | ||
} | ||
|
||
} |
Oops, something went wrong.