1
0

Añadido un simulador de cruces basado en el entrenamiento previamente hecho

This commit is contained in:
2023-01-19 17:32:36 +01:00
parent 8b128ceb46
commit 72978b216c
6 changed files with 439 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ namespace testML
{
XSSFWorkbook wb;
//using (FileStream file = new FileStream(@"C:\Users\miguel.maldonado\Downloads\entrenar_IAMenos.xlsx", FileMode.Open, FileAccess.Read))
using (FileStream file = new FileStream(@"entrenar_IA (1).xlsx", FileMode.Open, FileAccess.Read))
using (FileStream file = new FileStream(@"C:\Users\miki_\Downloads\entrenar_IA_2.xlsx", FileMode.Open, FileAccess.Read))
{
wb = new XSSFWorkbook(file);
}
@@ -49,7 +49,7 @@ namespace testML
for (var r = headerRow.RowNum + 1; r < sheet.LastRowNum - 1; r++)
{
//if (r == 50) break;
//if (r == 100) break;
Console.WriteLine(string.Format("{0} / {1}", r, sheet.LastRowNum - 1));
var row = sheet.GetRow(r);
@@ -63,6 +63,9 @@ namespace testML
var columnName = headerRow.GetCell(c)?.StringCellValue;
var crCell = CRRow.GetCell(c)?.NumericCellValue;
if (CRRow.GetCell(c)?.CellType == NPOI.SS.UserModel.CellType.Blank) { crCell = null; }
columnName = FixColumnName(columnName);
object value = null;
@@ -133,7 +136,9 @@ namespace testML
}
}
foreach (var key in firstRow.Keys)
S4i_Simulador.S4i_SimularCruces.Run(tmpData);
/*foreach (var key in firstRow.Keys)
{
if (key.StartsWith("DESCENDIENTE_S4i") ||
key.StartsWith("DESCENDIENTE_SNP"))
@@ -165,7 +170,7 @@ namespace testML
}
}
}
}*/
Console.WriteLine();
Console.WriteLine("Press enter to Exit");