Skip to content

Conversation

@evan-cao-wb
Copy link
Contributor

No description provided.

{
var intentClassifier = _service.GetRequiredService<IntentClassifier>();
intentClassifier.InitClassifer(trainingParams.Inference);
// intentClassifier.InitClassifer(trainingParams.Inference);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we comment this for training?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The InitClassifer will call LoadWeights method. If we still want to re-train model when some weights exist, calling this method will load that weights first and then continue training.

return Ok(intentClassifier.Labels);
}

[HttpPost("/routing-speeder/classifier/inference")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this API for train or inference?
The function name doesn't match with endpoint.

var logInfo = inference ? "No available weights." : "Will implement model training process and write trained weights into local";
var logInfo = _inferenceMode ? "No available weights." : "Will implement model training process and write trained weights into local";
_isModelReady = false;
Console.WriteLine(logInfo);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use _logger.info instead of Console.WriteLine

@Oceania2018 Oceania2018 merged commit f158f82 into SciSharp:master Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants