本文整理汇总了C#中DataAccess.SaveResult方法的典型用法代码示例。如果您正苦于以下问题:C# DataAccess.SaveResult方法的具体用法?C# DataAccess.SaveResult怎么用?C# DataAccess.SaveResult使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataAccess
的用法示例。
在下文中一共展示了DataAccess.SaveResult方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: runThread
void runThread(object o)
{
stopWatch = new Stopwatch();
iteration = 0;
updateCount = 0;
results = new float[2000000];
// Thread.CurrentThread.Name = o.ToString();
while (Thread.CurrentThread.IsAlive)
{
//Thread.CurrentThread.Name = o.ToString();
Job job = null;
lock (jobs)
{
if (jobs.Count > 0)
{
job = jobs.Dequeue();
}
}
if (job == null)
{
changeThreadProgress(Int32.Parse(Thread.CurrentThread.Name), -1, -1, "No more jobs!");
return;
}
currentJob = job;
iteration = 0;
if (stopWatch.IsRunning)
stopWatch.Stop();
stopWatch.Reset();
Optimiser optimiser = new Optimiser(job.Filename);
optimiser.Network.EndEpochEvent += new NeuronDotNet.Core.TrainingEpochEventHandler(Network_EndEpochEvent);
//BackgroundWorker worker = (BackgroundWorker)sender;
double mes = 1;
stopWatch.Start();
DateTime startTime = DateTime.Now;
mes = optimiser.Optimise();
changeThreadProgress(Int32.Parse(Thread.CurrentThread.Name), optimiser.Network.MeanSquaredError, optimiser.MaxIterations,"Writing results...");
DateTime endTime = DateTime.Now;
DataAccess dataAccess = new DataAccess(job.Filename);
dataAccess.SaveResult(job.ID,optimiser.Network, iteration, results, startTime,endTime);
//worker.ReportProgress((int)e.Argument, mes);
}
}