Interface IModelClient
Namespace: IndicoV2-Models
Assembly: IndicoV2-Abstractions-dll
public interface IModelClient
Methods
Gets
Task<IModelGroup> GetGroup(int modelGroupId, CancellationToken cancellationToken)
Parameters
modelGroupId
int
's Id
cancellationToken
CancellationToken
for handling cancellation of asynchronous operations-
Returns
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
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
Updated about 1 year ago