-
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.
- Loading branch information
1 parent
7b39b37
commit ee7d0ab
Showing
6 changed files
with
21,185 additions
and
28 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
import React from 'react'; | ||
import { Card } from "flowbite-react"; | ||
import "../styles/Prediction.css" | ||
import { useLocation } from "react-router-dom"; | ||
import '../styles/Prediction.css'; | ||
|
||
function Prediction(){ | ||
const location = useLocation(); | ||
const { precision, recall, f1 } = location.state; | ||
|
||
console.log(location); | ||
|
||
const state = location.state; | ||
|
||
console.log(state); | ||
|
||
const ps = state.precision; | ||
const re = state.recall; | ||
const f1score = state.f1 | ||
|
||
return ( | ||
<div className='PaginaPrediction'> | ||
<h1 id="unTitulo">Resultados del Modelo</h1> | ||
<p>El archivo fue procesado exitósamente</p> | ||
<Card className='carta'> | ||
<h2 className="titulo">Resultados</h2> | ||
<p className="resultados">Estos son las métricas de desempeño asociadas a la predicción realizada por el modelo:</p> | ||
<p className="metricas">Precision: {precision}%</p> | ||
<p className="metricas">Recall: {recall}%</p> | ||
<p className="metricas">F1: {f1}%</p> | ||
<p className="metricas">Precision: {ps}%</p> | ||
<p className="metricas">Recall: {re}%</p> | ||
<p className="metricas">F1: {f1score}%</p> | ||
</Card> | ||
<a href="http://localhost:8000/download"><button className='descarga'>Descargar archivo</button></a> | ||
</div> | ||
); | ||
} | ||
|
||
export default Prediction; | ||
export default Prediction; |