Condividi tramite


ModelOperationsCatalog.LoadWithDataLoader Metodo

Definizione

Overload

LoadWithDataLoader(Stream, IDataLoader<IMultiStreamSource>)

Caricare un modello di trasformatore e un modello di caricatore dati da un flusso.

LoadWithDataLoader(String, IDataLoader<IMultiStreamSource>)

Caricare un modello di trasformatore e un modello di caricatore di dati da un file.

LoadWithDataLoader(Stream, IDataLoader<IMultiStreamSource>)

Caricare un modello di trasformatore e un modello di caricatore dati da un flusso.

public Microsoft.ML.ITransformer LoadWithDataLoader (System.IO.Stream stream, out Microsoft.ML.IDataLoader<Microsoft.ML.Data.IMultiStreamSource> loader);
member this.LoadWithDataLoader : System.IO.Stream * IDataLoader -> Microsoft.ML.ITransformer
Public Function LoadWithDataLoader (stream As Stream, ByRef loader As IDataLoader(Of IMultiStreamSource)) As ITransformer

Parametri

stream
Stream

Flusso leggibile e ricercabile da cui caricare.

loader
IDataLoader<IMultiStreamSource>

Caricatore di dati dal flusso del modello. Si noti che se non è presente alcun caricatore di dati, questo metodo genererà un'eccezione. Lo scenario in cui non è archiviato alcun caricatore nel flusso deve essere gestito invece usando il Load(Stream, DataViewSchema) metodo .

Restituisce

Modello di trasformatore dal flusso del modello.

Si applica a

LoadWithDataLoader(String, IDataLoader<IMultiStreamSource>)

Caricare un modello di trasformatore e un modello di caricatore di dati da un file.

public Microsoft.ML.ITransformer LoadWithDataLoader (string filePath, out Microsoft.ML.IDataLoader<Microsoft.ML.Data.IMultiStreamSource> loader);
member this.LoadWithDataLoader : string * IDataLoader -> Microsoft.ML.ITransformer
Public Function LoadWithDataLoader (filePath As String, ByRef loader As IDataLoader(Of IMultiStreamSource)) As ITransformer

Parametri

filePath
String

Percorso di un file da cui leggere il modello.

loader
IDataLoader<IMultiStreamSource>

Caricatore di dati dal flusso del modello. Si noti che se non è presente alcun caricatore di dati, questo metodo genererà un'eccezione. Lo scenario in cui non è archiviato alcun caricatore nel flusso deve essere gestito invece usando il Load(Stream, DataViewSchema) metodo .

Restituisce

Modello trasformatore dal file del modello.

Si applica a