本文整理汇总了C#中BasicMLDataSet.xf266aaef11483efa方法的典型用法代码示例。如果您正苦于以下问题:C# BasicMLDataSet.xf266aaef11483efa方法的具体用法?C# BasicMLDataSet.xf266aaef11483efa怎么用?C# BasicMLDataSet.xf266aaef11483efa使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BasicMLDataSet
的用法示例。
在下文中一共展示了BasicMLDataSet.xf266aaef11483efa方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CalcData
public static double[] CalcData(BasicMLDataSet data)
{
BasicNetwork network;
double num;
int num2;
double num3;
ChartWindow window;
<>c__DisplayClass5 class2;
bool flag;
double[] res;
XElement xml = App.Services.GetService<x1a44f162f55467a5>().Xml;
if ((((uint) num) - ((uint) flag)) > uint.MaxValue)
{
goto Label_00F6;
}
if (1 != 0)
{
if ((((uint) num3) - ((uint) num2)) < 0)
{
double[] numArray;
return numArray;
}
App.Services.GetService<xf8efd7615008d32e>().x4ab8973167965816();
network = App.Services.GetService<xf8efd7615008d32e>().x5b0926ce641e48a7;
data = App.Services.GetService<IDataProcessor>().ProcessDataSet(data);
num = network.CalculateError(data);
res = new double[network.InputCount];
num2 = 0;
goto Label_00E9;
}
Label_003D:
window = new ChartWindow {
chart = { Title = "Значимость параметров" },
barSeries = { ItemsSource = Enumerable.Select<double, Tuple<double, bool>>(res, new Func<double, Tuple<double, bool>>(class2, this.<CalcData>b__4)) }
};
window.ShowDialog();
App.Services.GetService<x1a44f162f55467a5>().Xml = xml;
return res;
Label_00C0:
if (flag)
{
goto Label_00F6;
}
num3 = res.Max();
num2 = 0;
while (true)
{
flag = num2 < network.InputCount;
if (flag)
{
res[num2] /= num3;
}
else
{
GC.Collect();
goto Label_003D;
}
num2++;
}
Label_00E9:
flag = num2 < network.InputCount;
goto Label_00C0;
Label_00F6:
res[num2] = network.CalculateError(data.xf266aaef11483efa(num2)) - num;
if ((((uint) num2) | 15) != 0)
{
num2++;
if ((((uint) num2) + ((uint) flag)) > uint.MaxValue)
{
goto Label_003D;
}
goto Label_00E9;
}
goto Label_00C0;
}