Make an ensemble model to combine scores together (very high accuracy)

This commit is contained in:
William Jeynes
2026-03-24 15:50:41 +00:00
parent 87fccb7e2b
commit 5ce64290ce
4 changed files with 248 additions and 5 deletions
+5 -2
View File
@@ -1,12 +1,15 @@
import axios from "axios";
export async function evaluateWithRoberta({
answer
answer,
method
}: {
answer: string;
method: string
}): Promise<{ validProb: number; invalidProb: number; }> {
const res = await axios.post("http://localhost:8000/evaluate", {
answer
answer,
method
});
// console.log(res.data)
const validProb = res.data["probabilities"][0][0]