-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QnAMaker]Making Max and Min ScoreForLowScoreVariation Configurable #3841
Conversation
ActiveLearningUtils.MaximumScoreForLowScoreVariation QnAMakerDialog.maximumScoreForLowScoreVariation Made configurable
libraries/Microsoft.Bot.Builder.AI.QnA/Utils/ActiveLearningUtils.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐
libraries/Microsoft.Bot.Builder.AI.QnA/Schemas/Microsoft.QnAMakerDialog.schema
Outdated
Show resolved
Hide resolved
@tomlm please approve. #Closed |
libraries/Microsoft.Bot.Builder.AI.QnA/Utils/ActiveLearningUtils.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.AI.QnA/Utils/ActiveLearningUtils.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.AI.QnA/Utils/ActiveLearningUtils.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.AI.QnA/Utils/ActiveLearningUtils.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.AI.QnA/Utils/ActiveLearningUtils.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.AI.QnA/Utils/ActiveLearningUtils.cs
Outdated
Show resolved
Hide resolved
/// </value> | ||
/// <seealso cref="RankerTypes"/> | ||
[JsonProperty("maximumScoreForLowScoreVariation")] | ||
public float MaximumScoreForLowScoreVariation { get => maximumScoreForLowScoreVariation; set => maximumScoreForLowScoreVariation = value; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float [](start = 15, length = 5)
Make this
public NumberExpression MaximumScoreForLowScoreVariation {get; set;} = 0.95F;
var maximumScoreForLowScoreVariation = MaximumScoreForLowScoreVariation.GetValue(dc.State); Refers to: libraries/Microsoft.Bot.Builder.AI.QnA/Dialogs/QnAMakerDialog.cs:452 in f5635ed. [](commit_id = f5635ed, deletion_comment = False) |
@@ -77,6 +77,12 @@ | |||
} | |||
} | |||
}, | |||
"maximumScoreForLowScoreVariation": { | |||
"type": "float", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"type": "float", [](start = 9, length = 18)
"$ref": "[https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/definitions.schema#/definitions/numberExpression](https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/definitions.schema#/definitions/numberExpression)",
@@ -38,8 +38,31 @@ public static class ActiveLearningUtils | |||
/// <returns>List of filtered qnaSearch results.</returns> | |||
public static List<QueryResult> GetLowScoreVariation(List<QueryResult> qnaSearchResults) | |||
{ | |||
var filteredQnaSearchResult = new List<QueryResult>(); | |||
return GetLowScoreVariation(qnaSearchResults, 95); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
95 [](start = 58, length = 2)
return GetLowScoreVariation(MaximumScoreForLowScoreVariation, MinimumScoreForLowScoreVariation,PreviousLowScoreVariationMultiplier,MaxLowScoreVariationMultiplier)
Abandoning for design change. |
ActiveLearningUtils.MinimumScoreForLowScoreVariation
ActiveLearningUtils.MaximumScoreForLowScoreVariation
QnAMakerDialog.maximumScoreForLowScoreVariation
Made configurable
Issue #3706