MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
SimpleResult.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace MyCaffe.basecode
8{
12 [Serializable]
13 public class SimpleResult
14 {
15 int m_nSourceID;
16 int m_nIdx;
17 DateTime m_dt;
18 int m_nBatchCount;
19 int m_nResultCount;
20 float[] m_rgResult;
21 int[] m_rgTarget;
22 List<Tuple<DateTime, int>> m_rgFullTarget;
23
34 public SimpleResult(int nSrcID, int nIdx, DateTime dt, int nBatchCount, int nResultCount, float[] rgResult, List<Tuple<DateTime, int>> rgTarget)
35 {
36 m_nSourceID = nSrcID;
37 m_nIdx = nIdx;
38 m_dt = dt;
39 m_nBatchCount = nBatchCount;
40 m_nResultCount = nResultCount;
41 m_rgResult = rgResult;
42 m_rgFullTarget = rgTarget;
43 m_rgTarget = rgTarget.Select(p => p.Item2).ToArray();
44 }
45
49 public int SourceID
50 {
51 get { return m_nSourceID; }
52 }
53
57 public int Index
58 {
59 get { return m_nIdx; }
60 }
61
65 public DateTime TimeStamp
66 {
67 get { return m_dt; }
68 }
69
73 public int BatchCount
74 {
75 get { return m_nBatchCount; }
76 }
77
81 public int ResultCount
82 {
83 get { return m_nResultCount; }
84 }
85
89 public float[] Result
90 {
91 get { return m_rgResult; }
92 }
93
97 public int[] Target
98 {
99 get { return m_rgTarget; }
100 }
101
105 public List<Tuple<DateTime, int>> FullTarget
106 {
107 get { return m_rgFullTarget; }
108 }
109 }
110}
The Result class contains a single result.
Definition: Result.cs:14
The SimpleResult class holds the result data stored in the RawImageResults table.
Definition: SimpleResult.cs:14
SimpleResult(int nSrcID, int nIdx, DateTime dt, int nBatchCount, int nResultCount, float[] rgResult, List< Tuple< DateTime, int > > rgTarget)
The constructor.
Definition: SimpleResult.cs:34
int[] Target
Returns the Target.
Definition: SimpleResult.cs:98
int BatchCount
Returns the number of results in the result data sets.
Definition: SimpleResult.cs:74
int ResultCount
Returns the number of results in the result array.
Definition: SimpleResult.cs:82
int Index
Returns the image index associated with the result.
Definition: SimpleResult.cs:58
List< Tuple< DateTime, int > > FullTarget
Returns the full target data.
DateTime TimeStamp
Returns the time-stamp of the result.
Definition: SimpleResult.cs:66
int SourceID
Returns the source ID of the data source associated with the result.
Definition: SimpleResult.cs:50
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
Definition: Annotation.cs:12