Create an Rlink query with an alternate query.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function RlinkWithAlt( _ ByVal model_name As String, _ ByVal qlets As NetricsQuery(), _ ByVal use_model_threshold As Boolean, _ ByVal confidence_cutoff As Double, _ ByVal learn_match_cutoff As Double, _ ByVal alternate_query As NetricsQuery, _ ByVal alternate_match_cutoff As Double, _ ByVal preindexit As Boolean _ ) As NetricsQuery |
C# |
---|
public static NetricsQuery RlinkWithAlt( string model_name, NetricsQuery[] qlets, bool use_model_threshold, double confidence_cutoff, double learn_match_cutoff, NetricsQuery alternate_query, double alternate_match_cutoff, bool preindexit ) |
C++ |
---|
public: static NetricsQuery RlinkWithAlt( String model_name, array<NetricsQuery>^ qlets, bool use_model_threshold, double confidence_cutoff, double learn_match_cutoff, NetricsQuery alternate_query, double alternate_match_cutoff, bool preindexit ) |
J# |
---|
public static NetricsQuery RlinkWithAlt( string model_name, NetricsQuery[] qlets, bool use_model_threshold, double confidence_cutoff, double learn_match_cutoff, NetricsQuery alternate_query, double alternate_match_cutoff, bool preindexit ) |
JScript |
---|
public static
function RlinkWithAlt( model_name : String, qlets : NetricsQuery[], use_model_threshold : bool, confidence_cutoff : double, learn_match_cutoff : double, alternate_query : NetricsQuery, alternate_match_cutoff : double, preindexit : bool ) : NetricsQuery |
Parameters
- model_name
- the name of the Learn Model to be used by the Rlink query.
- qlets
- the querylets for the Rlink query. The number of querylets must match the number of features in the Learn Model.
- use_model_threshold
- if this true and the model contains a threshold value that is used as the cutoff.
- confidence_cutoff
- the confidence threshold for the Rlink query.
- learn_match_cutoff
- the match strength cutoff value for the Rlink query. This is used only to normalize the Alternate Query scores.
- alternate_query
- the alternate query to be used when the Rlink query has low confidence.
- alternate_match_cutoff
- the match strength cutoff for the alternate query, used to normalize its scores.
- preindexit
- if true the alternate query is passed to the prefilter otherwise only the Rlink query is passed to the prefilter.
Remarks
This directly implements the standard use case for a FirstValid query combiner, that is an Rlink query with an alternate standard query that is used when the Rlink query encounters a case where the model is poorly trained. The query returned is a FirstValid combiner with two sub-queries: the Rlink query and the alternate.