Class ValueRange
Specifies the range of values taken by an integer variable, or the dimension of a Dirichlet variable. This attribute can be used to explicitly specify the value range for a variable in cases where it cannot be deduced by the model compiler.
Implements
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Models.Attributes
Assembly: Microsoft.ML.Probabilistic.Compiler.dll
Syntax
[AttributeUsage(AttributeTargets.All, AllowMultiple = false)]
public class ValueRange : Attribute, ICompilerAttribute
Constructors
ValueRange(Range)
Creates a ValueRange with the specified range.
Declaration
public ValueRange(Range range)
Parameters
Type | Name | Description |
---|---|---|
Range | range |
Fields
Range
The range indicating the values a variable can take or the dimension of the variable.
Declaration
public Range Range
Field Value
Type | Description |
---|---|
Range |
Methods
ToString()
Returns a string representation of the ValueRange.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |