24 references to ParameterType
Microsoft.ML.SearchSpace (24)
Parameter.cs (22)
73private Parameter(object value, ParameterType type)
81/// Create a <see cref="Parameter"/> from a <see cref="double"/> value. The <see cref="ParameterType"/> will be <see cref="ParameterType.Number"/>.
86return new Parameter(value, ParameterType.Number);
90/// Create a <see cref="Parameter"/> from a <see cref="float"/> value. The <see cref="ParameterType"/> will be <see cref="ParameterType.Number"/>.
95return new Parameter(value, ParameterType.Number);
99/// Create a <see cref="Parameter"/> from a <see cref="long"/> value. The <see cref="ParameterType"/> will be <see cref="ParameterType.Integer"/>.
104return new Parameter(value, ParameterType.Integer);
108/// Create a <see cref="Parameter"/> from a <see cref="int"/> value. The <see cref="ParameterType"/> will be <see cref="ParameterType.Integer"/>.
113return new Parameter(value, ParameterType.Integer);
117/// Create a <see cref="Parameter"/> from a <see cref="string"/> value. The <see cref="ParameterType"/> will be <see cref="ParameterType.String"/>.
122return new Parameter(value, ParameterType.String);
126/// Create a <see cref="Parameter"/> from a <see cref="bool"/> value. The <see cref="ParameterType"/> will be <see cref="ParameterType.Bool"/>.
131return new Parameter(value, ParameterType.Bool);
135/// Create a <see cref="Parameter"/> from a <see cref="Enum"/> value. The <see cref="ParameterType"/> will be <see cref="ParameterType.String"/>.
144/// Create a <see cref="Parameter"/> from a <see cref="IEnumerable"/> value. The <see cref="ParameterType"/> will be <see cref="ParameterType.Array"/>.
155return new Parameter(values, ParameterType.Array);
164/// Create a <see cref="Parameter"/> from an <see cref="object"/> value. The <see cref="ParameterType"/> will be <see cref="ParameterType.Object"/>.
216/// Create a <see cref="Parameter"/> from <paramref name="parameters"/>. The <see cref="ParameterType"/> will be <see cref="ParameterType.Object"/>.
221var parameter = new Parameter(new Dictionary<string, Parameter>(), ParameterType.Object);
233public int Count => ParameterType == ParameterType.Object ? (_value as Dictionary<string, Parameter>).Count : 1;
248public ParameterType ParameterType { get; }
360Contract.Assert(ParameterType == ParameterType.Object, "parameter is not object type.");