Class Quality
Attribute used to label Infer.NET components. They may be attached to algorithm classes, distribution classes, and operator classes. They may also be attached to any methods on these classes
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors.Attributes
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[AttributeUsage(AttributeTargets.All, AllowMultiple = false)]
public class Quality : Attribute
Remarks
Methods inherit the quality of their class. Classes are, by default, experimental.
The compiler will convert static quality bands to a quality band for each generated statement of code. Depending on the error level and warning levels set in the compiler, Errors and/or warnings will be issued. In addition, a general warning/error may be issued for the algorithm.
Constructors
Quality(QualityBand)
Constructor
Declaration
public Quality(QualityBand band)
Parameters
| Type | Name | Description |
|---|---|---|
| QualityBand | band |
Fields
Band
Quality band
Declaration
public QualityBand Band
Field Value
| Type | Description |
|---|---|
| QualityBand |
Methods
GetQualityBand(MemberInfo)
Gets the quality band associated with a member of a class
Declaration
public static QualityBand GetQualityBand(MemberInfo mi)
Parameters
| Type | Name | Description |
|---|---|---|
| MemberInfo | mi | Member info |
Returns
| Type | Description |
|---|---|
| QualityBand |
GetQualityBand(Type)
Gets the quality band associated with a type. If this is an array type then the quality of the element is returned. If the type has generic parameters then the quality of the generic type is returned
Declaration
public static QualityBand GetQualityBand(Type t)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | t | Type |
Returns
| Type | Description |
|---|---|
| QualityBand |
ToString()
ToString override
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |