2using System.Collections.Generic;
6using System.Threading.Tasks;
30 : base(nId, strName, strOwner)
50 public StateDescriptor(
int nId,
string strName,
byte[] rgWeights,
byte[] rgState,
double dfAccuracy,
double dfError,
int nIterations,
string strOwner)
51 : base(nId, strName, strOwner)
53 m_rgWeights = rgWeights;
55 m_dfAccuracy = dfAccuracy;
57 m_nIterations = nIterations;
65 get {
return (m_rgWeights ==
null) ? false :
true; }
74 get {
return m_rgWeights; }
75 set { m_rgWeights = value; }
84 get {
return m_rgState; }
85 set { m_rgState = value; }
94 get {
return m_dfAccuracy; }
95 set { m_dfAccuracy = value; }
104 get {
return m_dfError; }
105 set { m_dfError = value; }
114 get {
return m_nIterations; }
115 set { m_nIterations = value; }
124 return m_nIterations.ToString() +
" -> error = " + m_dfError.ToString() +
" accuracy = " + m_dfAccuracy.ToString();
The BaseDescriptor is the base class for all other descriptors, where descriptors are used to describ...
The StateDescriptor class contains the information related to the state of a project incuding the sol...
StateDescriptor(int nId, string strName, string strOwner)
The StateDescriptor constructor.
double Accuracy
Returns the accuracy observed while testing.
StateDescriptor(int nId, string strName, byte[] rgWeights, byte[] rgState, double dfAccuracy, double dfError, int nIterations, string strOwner)
The StateDescriptor constructor.
byte[] State
Get/set the state of a Solver in training.
bool? HasResults
Returns whether or not the state has results (e.g. it has been trained at least to some degree).
byte[] Weights
Get/set the weights of a trained Net.
double Error
Specifies the error observed whiel training.
int Iterations
Specifies the number of iterations run.
override string ToString()
Creates the string representation of the descriptor.
The descriptors namespace contains all descriptor used to describe various items stored within the da...