Skip to content

Latest commit

 

History

History

Bet.Extensions.HealthChecks.ML

Bet.Extensions.HealthChecks.ML

GitHub license Build status NuGet Nuget feedz.io

The second letter in the Hebrew alphabet is the ב bet/beit. Its meaning is "house". In the ancient pictographic Hebrew it was a symbol resembling a tent on a landscape.

Note: Pre-release packages are distributed via feedz.io.

Summary

This goal of this repo is to create ML.NET HealChecks for Application Context. This is useful feature that makes the state of the Models to be checked.

buymeacoffee

Give a Star! ⭐

If you like or are using this project to learn or start your solution, please give it a star. Thanks!

Install

    dotnet add package Bet.Extensions.HealthChecks.ML

Usage

For complete examples please refer to sample projects:

  1. Bet.AspNetCore.Sample - AspNetCore Web App with spam prediction models.
  2. Bet.Hosting.Sample - DotNetCore Worker based scheduled job for generating ML.NET Models.

In order for the healtheck to work please add HealthCheck configuration in ConfigureServices.

  services.AddHealthChecks()
                .AddMemoryHealthCheck()
                .AddMachineLearningModelCheck<SpamInput, SpamPrediction>("spam_check")
                .AddMachineLearningModelCheck<SentimentIssue, SentimentPrediction>("sentiment_check")
                .AddSigtermCheck("sigterm_check")
                .AddLoggerPublisher(new List<string> { "sigterm_check" });