2using System.Collections.Generic;
6using System.Threading.Tasks;
20 string m_strSolverName;
21 string m_strSolverDescription;
22 string m_strModelName;
23 string m_strModelDescription;
24 bool m_bActive =
true;
25 int m_nTotalIterations;
26 string m_strGpuOverride;
35 : base(0, strName, null)
55 public ProjectDescriptor(
int nID,
string strName,
DatasetDescriptor ds,
GroupDescriptor grp,
string strSolverName,
string strSolverDesc,
string strModelName,
string strModelDesc,
string strGpuOverride,
int nTotalIterations,
bool bActive,
SettingsCaffe settings,
string strOwner)
56 : base(nID, strName, strOwner)
59 m_settings = settings.
Clone();
69 m_strSolverName = strSolverName;
70 m_strSolverDescription = strSolverDesc;
71 m_strModelName = strModelName;
72 m_strModelDescription = strModelDesc;
74 m_nTotalIterations = nTotalIterations;
75 m_strGpuOverride = strGpuOverride;
83 : this(p.
ID, p.
Name, p.
Dataset, p.
Group, p.m_strSolverName, p.
SolverDescription, p.m_strModelName, p.
ModelDescription, p.
GpuOverride, p.
TotalIterations, p.
Active, p.
Settings, p.
Owner)
93 get {
return m_strGpuOverride; }
94 set { m_strGpuOverride = value; }
103 get {
return m_dataset; }
104 set { m_dataset = value; }
114 get {
return m_datasetTarget; }
115 set { m_datasetTarget = value; }
121 [Description(
"Specifies the group of the project.")]
124 get {
return m_group; }
125 set { m_group = value; }
131 [Description(
"Specifies the name of the solver used by the project.")]
135 get {
return m_strSolverName; }
136 set { m_strSolverName = value; }
146 get {
return m_strSolverDescription; }
147 set { m_strSolverDescription = value; }
153 [Description(
"Specifies the name of the model used by the project.")]
157 get {
return m_strModelName; }
158 set { m_strModelName = value; }
168 get {
return m_strModelDescription; }
169 set { m_strModelDescription = value; }
176 [Category(
"Performance"), Description(
"Specifies the total number of iterations run on this project.")]
179 get {
return m_nTotalIterations; }
180 set { m_nTotalIterations = value; }
186 [Description(
"Specifies whether or not the project is active.")]
190 get {
return m_bActive; }
196 [Description(
"Specifies parameters associated with the project.")]
199 get {
return m_rgParameters; }
205 [Category(
"Performance"), Description(
"Contains a list of analysis items for the project.")]
208 get {
return m_rgAnalysisItems; }
217 get {
return m_settings; }
218 set { m_settings = value; }
227 return Name +
": model = " + m_strModelName +
" solver = " + m_strSolverName;
The SettingsCaffe defines the settings used by the MyCaffe CaffeControl.
SettingsCaffe Clone()
Returns a copy of the SettingsCaffe object.
The BaseDescriptor is the base class for all other descriptors, where descriptors are used to describ...
string Owner
Get/set the owner of the item.
int ID
Get/set the database ID of the item.
string Name
Get/set the name of the item.
The DatasetDescriptor class describes a dataset which contains both a training data source and testin...
The GroupDescriptor class defines a group.
The ParameterDescriptorCollection class contains a list of ParameterDescriptor's.
The ProjectDescriptor class contains all information describing a project, such as its: dataset,...
ValueDescriptorCollection AnalysisItems
Returns the collection of analysis ValueDescriptors of the Project.
ProjectDescriptor(string strName)
The ProjectDescriptor constructor.
string SolverDescription
Get/set the solver description script.
string SolverName
Get/set the solver name.
GroupDescriptor Group
Get/set the project group.
string ModelDescription
Get/set the model description script.
DatasetDescriptor DatasetTarget
Get/set the secondary 'target' dataset (if used).
ProjectDescriptor(ProjectDescriptor p)
The ProjectDescriptor constructor.
ProjectDescriptor(int nID, string strName, DatasetDescriptor ds, GroupDescriptor grp, string strSolverName, string strSolverDesc, string strModelName, string strModelDesc, string strGpuOverride, int nTotalIterations, bool bActive, SettingsCaffe settings, string strOwner)
The ProjectDescriptor constructor.
override string ToString()
Creates the string representation of the descriptor.
string ModelName
Get/set the model name.
int TotalIterations
Get/set the total iterations.
virtual string GpuOverride
Get/set the GPU ID's to use as an override.
SettingsCaffe Settings
Get/set the settings of the Project.
bool Active
Returns whether or not the project is active.
ParameterDescriptorCollection Parameters
Returns the collection of parameters of the Project.
DatasetDescriptor Dataset
Get/set the dataset used.
The ValueDescriptorCollection class contains a list of ValueDescriptor's.
The descriptors namespace contains all descriptor used to describe various items stored within the da...