BuilderExtensions.FromUri 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
FromUri<TData,TPrediction>(PredictionEnginePoolBuilder<TData,TPrediction>, String)
将位于指定位置的模型添加到生成器。
public static Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> FromUri<TData,TPrediction> (this Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> builder, string uri) where TData : class where TPrediction : class, new();
static member FromUri : Microsoft.Extensions.ML.PredictionEnginePoolBuilder<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> * string -> 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 FromUri(Of TData As Class, TPrediction As Class) (builder As PredictionEnginePoolBuilder(Of TData, TPrediction), uri As String) As PredictionEnginePoolBuilder(Of TData, TPrediction)
类型参数
- TData
- TPrediction
参数
要向其添加模型的生成器。
- uri
- String
模型的位置。
返回
已更新的 PredictionEnginePoolBuilder<TData,TPrediction>。
适用于
FromUri<TData,TPrediction>(PredictionEnginePoolBuilder<TData,TPrediction>, String, String)
将指定位置的命名模型添加到生成器。
public static Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> FromUri<TData,TPrediction> (this Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> builder, string modelName, string uri) where TData : class where TPrediction : class, new();
static member FromUri : Microsoft.Extensions.ML.PredictionEnginePoolBuilder<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> * string * string -> 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 FromUri(Of TData As Class, TPrediction As Class) (builder As PredictionEnginePoolBuilder(Of TData, TPrediction), modelName As String, uri As String) As PredictionEnginePoolBuilder(Of TData, TPrediction)
类型参数
- TData
- TPrediction
参数
要向其添加模型的生成器。
- modelName
- String
当多个模型具有相同 TData
的类型 TPrediction
时,该模型的名称允许唯一标识模型。
- uri
- String
模型的位置。
返回
已更新的 PredictionEnginePoolBuilder<TData,TPrediction>。
适用于
FromUri<TData,TPrediction>(PredictionEnginePoolBuilder<TData,TPrediction>, String, TimeSpan)
将位于指定位置的模型添加到生成器。
public static Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> FromUri<TData,TPrediction> (this Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> builder, string uri, TimeSpan period) where TData : class where TPrediction : class, new();
static member FromUri : Microsoft.Extensions.ML.PredictionEnginePoolBuilder<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> * string * TimeSpan -> 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 FromUri(Of TData As Class, TPrediction As Class) (builder As PredictionEnginePoolBuilder(Of TData, TPrediction), uri As String, period As TimeSpan) As PredictionEnginePoolBuilder(Of TData, TPrediction)
类型参数
- TData
- TPrediction
参数
要向其添加模型的生成器。
- uri
- String
模型的位置。
- period
- TimeSpan
查询模型是否已在指定位置更新的频率。
返回
已更新的 PredictionEnginePoolBuilder<TData,TPrediction>。
适用于
FromUri<TData,TPrediction>(PredictionEnginePoolBuilder<TData,TPrediction>, String, Uri)
将指定位置的命名模型添加到生成器。
public static Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> FromUri<TData,TPrediction> (this Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> builder, string modelName, Uri uri) where TData : class where TPrediction : class, new();
static member FromUri : Microsoft.Extensions.ML.PredictionEnginePoolBuilder<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> * string * Uri -> 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 FromUri(Of TData As Class, TPrediction As Class) (builder As PredictionEnginePoolBuilder(Of TData, TPrediction), modelName As String, uri As Uri) As PredictionEnginePoolBuilder(Of TData, TPrediction)
类型参数
- TData
- TPrediction
参数
要向其添加模型的生成器。
- modelName
- String
当多个模型具有相同 TData
的类型 TPrediction
时,该模型的名称允许唯一标识模型。
- uri
- Uri
模型的位置。
返回
已更新的 PredictionEnginePoolBuilder<TData,TPrediction>。
适用于
FromUri<TData,TPrediction>(PredictionEnginePoolBuilder<TData,TPrediction>, String, String, TimeSpan)
将指定位置的命名模型添加到生成器。
public static Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> FromUri<TData,TPrediction> (this Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> builder, string modelName, string uri, TimeSpan period) where TData : class where TPrediction : class, new();
static member FromUri : Microsoft.Extensions.ML.PredictionEnginePoolBuilder<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> * string * string * TimeSpan -> 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 FromUri(Of TData As Class, TPrediction As Class) (builder As PredictionEnginePoolBuilder(Of TData, TPrediction), modelName As String, uri As String, period As TimeSpan) As PredictionEnginePoolBuilder(Of TData, TPrediction)
类型参数
- TData
- TPrediction
参数
要向其添加模型的生成器。
- modelName
- String
当多个模型具有相同 TData
的类型 TPrediction
时,该模型的名称允许唯一标识模型。
- uri
- String
模型的位置。
- period
- TimeSpan
查询模型是否已在指定位置更新的频率。
返回
已更新的 PredictionEnginePoolBuilder<TData,TPrediction>。
适用于
FromUri<TData,TPrediction>(PredictionEnginePoolBuilder<TData,TPrediction>, String, Uri, TimeSpan)
将指定位置的命名模型添加到生成器。
public static Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> FromUri<TData,TPrediction> (this Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> builder, string modelName, Uri uri, TimeSpan period) where TData : class where TPrediction : class, new();
static member FromUri : Microsoft.Extensions.ML.PredictionEnginePoolBuilder<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> * string * Uri * TimeSpan -> 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 FromUri(Of TData As Class, TPrediction As Class) (builder As PredictionEnginePoolBuilder(Of TData, TPrediction), modelName As String, uri As Uri, period As TimeSpan) As PredictionEnginePoolBuilder(Of TData, TPrediction)
类型参数
- TData
- TPrediction
参数
要向其添加模型的生成器。
- modelName
- String
当多个模型具有相同 TData
的类型 TPrediction
时,该模型的名称允许唯一标识模型。
- uri
- Uri
模型的位置。
- period
- TimeSpan
查询模型是否已在指定位置更新的频率。
返回
已更新的 PredictionEnginePoolBuilder<TData,TPrediction>。