|
| 1 | +// import HeatmapChart from "@/components/hightchart/HeatmapChart" |
| 2 | +// import HighChart from "@/components/hightchart/HighChart" |
| 3 | +// import PairwiseComparisonChart from "@/components/hightchart/PairwiseComparisonChart" |
| 4 | +import HeatmapChart from "@/components/hightchart/HeatmapChart" |
| 5 | +import HighChart from "@/components/hightchart/HighChart" |
| 6 | +import PairwiseComparisonChart from "@/components/hightchart/PairwiseComparisonChart" |
| 7 | +import React from "react" |
| 8 | + |
| 9 | +export default function Page() { |
| 10 | + const evaluationData = [ |
| 11 | + { models: ["Model A", "Model B"], scores: [1, -1, 0, 1, -1] }, |
| 12 | + { models: ["Model C", "Model D"], scores: [0, 0, 1, -1, 0] }, |
| 13 | + { models: ["Model E", "Model F"], scores: [-1, 1, 0, -1, 1] }, |
| 14 | + { models: ["Model G", "Model H"], scores: [1, 0, -1, 1, 0] }, |
| 15 | + { models: ["Model A", "Model C"], scores: [-1, 1, 0, -1, 0] }, |
| 16 | + { models: ["Model B", "Model D"], scores: [1, 0, -1, 1, -1] }, |
| 17 | + { models: ["Model E", "Model G"], scores: [0, 1, -1, 0, 1] }, |
| 18 | + { models: ["Model F", "Model H"], scores: [1, -1, 0, 1, -1] }, |
| 19 | + ] |
| 20 | + |
| 21 | + const data = [ |
| 22 | + [0, 1, 0.8], |
| 23 | + [0, 2, -0.5], |
| 24 | + [0, 3, 0.2], |
| 25 | + [0, 4, 0.6], |
| 26 | + [0, 5, -0.3], |
| 27 | + [0, 6, 0.1], |
| 28 | + [0, 7, 0.9], |
| 29 | + [1, 2, -0.7], |
| 30 | + [1, 3, -0.2], |
| 31 | + [1, 4, 0.4], |
| 32 | + [1, 5, -0.6], |
| 33 | + [1, 6, -0.1], |
| 34 | + [1, 7, 0.7], |
| 35 | + [2, 3, 0.6], |
| 36 | + [2, 4, 0.9], |
| 37 | + [2, 5, 0.2], |
| 38 | + [2, 6, 0.5], |
| 39 | + [2, 7, 0.8], |
| 40 | + [3, 4, 0.3], |
| 41 | + [3, 5, -0.4], |
| 42 | + [3, 6, -0.1], |
| 43 | + [3, 7, 0.5], |
| 44 | + [4, 5, -0.8], |
| 45 | + [4, 6, -0.3], |
| 46 | + [4, 7, 0.2], |
| 47 | + [5, 6, 0.4], |
| 48 | + [5, 7, 0.9], |
| 49 | + [6, 7, 0.6], |
| 50 | + ] |
| 51 | + |
| 52 | + const models = [ |
| 53 | + "Model A", |
| 54 | + "Model B", |
| 55 | + "Model C", |
| 56 | + "Model D", |
| 57 | + "Model E", |
| 58 | + "Model F", |
| 59 | + "Model G", |
| 60 | + "Model H", |
| 61 | + ] |
| 62 | + const inputs = Array.from({ length: 40 }, (_, i) => `Input ${i + 1}`) |
| 63 | + |
| 64 | + const generateScores = () => { |
| 65 | + const scores = [-1, 0, 1] |
| 66 | + return inputs.map((input) => ({ |
| 67 | + modelPair: `${models[Math.floor(Math.random() * models.length)]} vs ${models[Math.floor(Math.random() * models.length)]}`, |
| 68 | + input: input, |
| 69 | + score: scores[Math.floor(Math.random() * scores.length)], |
| 70 | + })) |
| 71 | + } |
| 72 | + |
| 73 | + const heatmapData = [...generateScores()] |
| 74 | + |
| 75 | + return ( |
| 76 | + <div> |
| 77 | + <h1 className="mt-2 text-4xl font-bold tracking-tight dark:text-slate-100"> |
| 78 | + Dataset |
| 79 | + </h1> |
| 80 | + <h3 className="font-semibold tracking-tight dark:text-slate-100 mt-8 text-2xl"> |
| 81 | + Sample 1 |
| 82 | + </h3> |
| 83 | + <p className="mt-4 first:mt-0"> |
| 84 | + Sample data of Evaluation Result. |
| 85 | + </p> |
| 86 | + {/* <HighChart data={evaluationData} /> */} |
| 87 | + <h3 className="font-semibold tracking-tight dark:text-slate-100 mt-8 text-2xl"> |
| 88 | + Sample 2 |
| 89 | + </h3> |
| 90 | + <p className="mt-4 first:mt-0"> |
| 91 | + Sample data of Evaluation Result. |
| 92 | + </p> |
| 93 | + {/* <PairwiseComparisonChart data={data} /> */} |
| 94 | + <h3 className="font-semibold tracking-tight dark:text-slate-100 mt-8 text-2xl"> |
| 95 | + Sample 3 |
| 96 | + </h3> |
| 97 | + <p className="mt-4 first:mt-0"> |
| 98 | + Sample data of Evaluation Result. |
| 99 | + </p> |
| 100 | + {/* <HeatmapChart data={heatmapData} /> */} |
| 101 | + </div> |
| 102 | + ) |
| 103 | +} |
0 commit comments