Skip to content

ML Model is not reloaded if prediction was made before #5350

@alexandermujirishvili

Description

@alexandermujirishvili

System information

  • OS version/distro: Windows 10 Pro, version 2004, OS Build: 19041.450
  • .NET Version (eg., dotnet --info): 3.1.302

Issue

  • What did you do?

    After new record is available, I add it to training data and retrain model.

  • What happened?

    New model was generated, but not reloaded in app.

  • What did you expect?

    Reloaded model and better (expected) prediction

Source code / logs

I use this code to add prediction engine pool:

services.AddPredictionEnginePool<SentimentData, SentimentPrediction>()
                  .FromFile(
                  modelName: Constants.ModelName,
                  filePath: Constants.ModelFileName,
                  watchForChanges: true);

image

Sample project: https://github.com/alexandermujirishvili/DotnetMLWatchForChanges

Metadata

Metadata

Labels

P1Priority of the issue for triage purpose: Needs to be fixed soon.loadsaveBugs related loading and saving data or models

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions