本文整理汇总了C#中Encog.Neural.Networks.Training.Propagation.TrainingContinuation.Put方法的典型用法代码示例。如果您正苦于以下问题:C# TrainingContinuation.Put方法的具体用法?C# TrainingContinuation.Put怎么用?C# TrainingContinuation.Put使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Encog.Neural.Networks.Training.Propagation.TrainingContinuation
的用法示例。
在下文中一共展示了TrainingContinuation.Put方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read
/// <inheritdoc/>
public Object Read(Stream mask0)
{
var result = new TrainingContinuation();
var ins0 = new EncogReadHelper(mask0);
EncogFileSection section;
while ((section = ins0.ReadNextSection()) != null)
{
if (section.SectionName.Equals("CONT")
&& section.SubSectionName.Equals("PARAMS"))
{
IDictionary<String, String> paras = section.ParseParams();
foreach (String key in paras.Keys)
{
if (key.Equals("type", StringComparison.InvariantCultureIgnoreCase))
{
result.TrainingType = paras[key];
}
else
{
double[] list = EncogFileSection
.ParseDoubleArray(paras, key);
result.Put(key, list);
}
}
}
}
return result;
}
示例2: Read
public object Read(Stream mask0)
{
EncogReadHelper helper;
EncogFileSection section;
IDictionary<string, string> dictionary;
TrainingContinuation continuation = new TrainingContinuation();
if (3 != 0)
{
helper = new EncogReadHelper(mask0);
goto Label_001E;
}
Label_0010:
if ((-2 == 0) || (4 == 0))
{
goto Label_005C;
}
Label_001E:
if ((section = helper.ReadNextSection()) == null)
{
return continuation;
}
if (!section.SectionName.Equals("CONT"))
{
if (1 != 0)
{
if (0xff == 0)
{
return continuation;
}
goto Label_0010;
}
if (0 == 0)
{
goto Label_0077;
}
goto Label_001E;
}
Label_005C:
if (section.SubSectionName.Equals("PARAMS"))
{
dictionary = section.ParseParams();
}
else if ((0 == 0) && ((0 != 0) || (3 != 0)))
{
goto Label_001E;
}
Label_0077:
using (IEnumerator<string> enumerator = dictionary.Keys.GetEnumerator())
{
string current;
double[] numArray;
goto Label_0090;
Label_0086:
continuation.Put(current, numArray);
Label_0090:
if (enumerator.MoveNext())
{
current = enumerator.Current;
if (current.Equals("type", StringComparison.InvariantCultureIgnoreCase))
{
continuation.TrainingType = dictionary[current];
goto Label_0090;
}
numArray = EncogFileSection.ParseDoubleArray(dictionary, current);
if (0xff != 0)
{
}
goto Label_0086;
}
}
goto Label_001E;
}