Interface IModelClient

Namespace: IndicoV2-Models
Assembly: IndicoV2-Abstractions-dll

public interface IModelClient

Methods

GetGroup(int, CancellationToken)

Gets

Task<IModelGroup> GetGroup(int modelGroupId, CancellationToken cancellationToken)

Parameters

modelGroupId int

's Id

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task<imodelgroup>

LoadModel(int, CancellationToken)

Loads Model

[Obsolete("Models are now automatically loaded by IPA")]
Task<string> LoadModel(int modelId, CancellationToken cancellationToken)

Parameters

modelId int

's Id

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task[string](https://learn-microsoft-com/dotnet/api/system-string)\

Status

Predict(int, List<string>, CancellationToken)

Predicts on a Model Group-

Task<string> Predict(int modelId, List<string> data, CancellationToken cancellationToken)

Parameters

modelId int

's Id

data List[string](https://learn-microsoft-com/dotnet/api/system-string)\

Data to predict

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task[string](https://learn-microsoft-com/dotnet/api/system-string)\

Job's Id