ServiceCollectionExtensions.AddPredictionEnginePool 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddPredictionEnginePool<TData,TPrediction>(IServiceCollection)
PredictionEnginePool<TData,TPrediction>將 和 必要的組態服務加入至服務集合。
public static Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> AddPredictionEnginePool<TData,TPrediction> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TData : class where TPrediction : class, new();
static member AddPredictionEnginePool : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.ML.PredictionEnginePoolBuilder<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))
<Extension()>
Public Function AddPredictionEnginePool(Of TData As Class, TPrediction As Class) (services As IServiceCollection) As PredictionEnginePoolBuilder(Of TData, TPrediction)
類型參數
- TData
- TPrediction
參數
- services
- IServiceCollection
要新增服務的 IServiceCollection。
傳回
已加入至集合中的 PredictionEnginePoolBuilder<TData,TPrediction>。
適用於
AddPredictionEnginePool<TData,TPrediction>(IServiceCollection, Func<IServiceProvider,PredictionEnginePool<TData,TPrediction>>)
PredictionEnginePool<TData,TPrediction>將 和 必要的組態服務加入至服務集合。
public static Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> AddPredictionEnginePool<TData,TPrediction> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Func<IServiceProvider,Microsoft.Extensions.ML.PredictionEnginePool<TData,TPrediction>> implementationFactory) where TData : class where TPrediction : class, new();
static member AddPredictionEnginePool : Microsoft.Extensions.DependencyInjection.IServiceCollection * Func<IServiceProvider, Microsoft.Extensions.ML.PredictionEnginePool<'Data, 'Prediction>> -> Microsoft.Extensions.ML.PredictionEnginePoolBuilder<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))
<Extension()>
Public Function AddPredictionEnginePool(Of TData As Class, TPrediction As Class) (services As IServiceCollection, implementationFactory As Func(Of IServiceProvider, PredictionEnginePool(Of TData, TPrediction))) As PredictionEnginePoolBuilder(Of TData, TPrediction)
類型參數
- TData
- TPrediction
參數
- services
- IServiceCollection
要新增服務的 IServiceCollection。
- implementationFactory
- Func<IServiceProvider,PredictionEnginePool<TData,TPrediction>>
傳回
已加入至集合中的 PredictionEnginePoolBuilder<TData,TPrediction>。