1
0

Añadidas algunas etiquetas

This commit is contained in:
2023-02-02 17:28:12 +01:00
parent 704890c0dd
commit bf77ea937b
4 changed files with 37 additions and 26 deletions

View File

@@ -1,4 +1,7 @@
using Microsoft.ML;
#define SIMULATION
#undef TEST_MODELS
using Microsoft.ML;
using Microsoft.ML.AutoML;
using Microsoft.ML.Data;
using Microsoft.ML.Trainers;
@@ -31,7 +34,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(@"C:\Users\miki_\Downloads\entrenar_IA_2.xlsx", FileMode.Open, FileAccess.Read))
using (FileStream file = new FileStream(@"C:\Users\miguel.maldonado\Downloads\entrenar_IA.xlsx", FileMode.Open, FileAccess.Read))
{
wb = new XSSFWorkbook(file);
}
@@ -136,9 +139,11 @@ namespace testML
}
}
S4i_Simulador.S4i_SimularCruces.Run(tmpData);
#if SIMULATION
/*foreach (var key in firstRow.Keys)
S4i_Simulador.S4i_SimularCruces.Run(tmpData);
#else
foreach (var key in firstRow.Keys)
{
if (key.StartsWith("DESCENDIENTE_S4i") ||
key.StartsWith("DESCENDIENTE_SNP"))
@@ -170,7 +175,8 @@ namespace testML
}
}
}*/
}
#endif
Console.WriteLine();
Console.WriteLine("Press enter to Exit");
@@ -317,7 +323,8 @@ namespace testML
#endregion
/*
#if TEST_MODELS
//Entrenamos el modelo
//ITransformer model = pipe.Fit(trainData);

View File

@@ -300,6 +300,8 @@ FROM CruceItem C");
#endregion
Console.WriteLine("Ready");
Console.ReadLine();
var limit = individuos.Length * individuos.Length;
var current = 0;
@@ -402,15 +404,18 @@ FROM CruceItem C");
for (var c = 0; c < files.Length; c++)
{
count++;
//if (count > 5) break;
var filename = files[c];
var name = Path.GetFileNameWithoutExtension(filename);
var matchName = columnByModelName.Match(name);
if(!matchName.Success )
{
continue;
}
count++;
if (count > 10) break;
Console.Write(string.Format("{0}/{1} Loading: {2}... ", c + 1, files.Length, matchName.Groups[1].Value));
@@ -450,7 +455,6 @@ FROM CruceItem C");
Console.WriteLine();
}
return result;
}

View File

@@ -33,7 +33,7 @@
<package id="NPOI.Excel" version="2.1.1" targetFramework="net48" />
<package id="NumSharp.Lite" version="0.1.8" targetFramework="net48" />
<package id="Protobuf.Text" version="0.4.0" targetFramework="net48" />
<package id="SharpZipLib" version="1.4.0" targetFramework="net48" />
<package id="SharpZipLib" version="0.86.0" targetFramework="net48" />
<package id="SkiaSharp" version="2.88.3" targetFramework="net48" />
<package id="SkiaSharp.NativeAssets.Linux.NoDependencies" version="2.88.3" targetFramework="net48" />
<package id="SkiaSharp.NativeAssets.macOS" version="2.88.3" targetFramework="net48" />

View File

@@ -57,7 +57,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="FFSoft.SQLiteUtilities">
<HintPath>..\..\..\..\..\..\Desarrollo\SQLiteUtilities\SQLiteUtilities\bin\Debug\FFSoft.SQLiteUtilities.dll</HintPath>
<HintPath>..\..\SQLiteUtilities\SQLiteUtilities\bin\Debug\FFSoft.SQLiteUtilities.dll</HintPath>
</Reference>
<Reference Include="Google.Protobuf, Version=3.21.9.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL">
<HintPath>..\packages\Google.Protobuf.3.21.9\lib\net45\Google.Protobuf.dll</HintPath>