dotnet / dotnet/machinelearning-modelbuilder

Add interfaces for MLModel, MLModel.ModelInput, MLModel.ModelOutput generated classes

Open
#1,973 2 comments 1 reaction 0 assignees View on GitHub
Reported by: Customer Stale
Dominant language
Dockerfile
Stars
285
Forks
66
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
I have multiple models trained on a dataset that have multiple labels. I disable all of them and enable one of them at a time, do the training, and then enable only the next one, do the training etc.
I end up with multiple trained models and their respective generated classes for consumption.

**Describe the solution you'd like**
It would be great to have a common interface for the MLModel, MLModel.ModelInput and MLModel.ModelOutput classes, because when I need to consume them that would simplify my code significantly.

**Describe alternatives you've considered**
I can still use them separately, but this causes code duplication and code management difficulties.

**Additional context**
I would only need a definition on the interface of the MLModel for the `IModelOutput Predict(IModelInput input)` method, and the `Score` property on the interface of the `ModelOutput`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.