次の方法で共有


AlexNetExtension.AlexNet メソッド

定義

オーバーロード

AlexNet(DnnImageModelSelector, IHostEnvironment, String, String)

AlexNet パイプラインに必要な 2 つの対応するモデル (前処理モデルとメイン モデル) を含む推定チェーンを返します。 また、任意の入力および出力列名を使用するために必要な ColumnsCopyingTransforms の名前変更も含まれます。 これは、両方のモデルがこのメソッドを含むファイルと同じ場所に存在することを前提としています。これは、NuGet を介して使用される場合です。 これは、NuGet からモデルをインポートする場合に AlexNet を使用する既定の方法である必要があります。

AlexNet(DnnImageModelSelector, IHostEnvironment, String, String, String)

これにより、カスタム モデルの場所を指定できます。 これは、カスタム モデルが指定されている場合、またはモデルをメイン アプリケーションとは別のフォルダーに個別に配置または出荷する場合に便利です。 OnnxTransformer を動作させるには、Onnx モデルがすべてディレクトリ内に存在する必要があるため、このメソッドは渡されたディレクトリに AlexNetOnnx/AlexNetPrepOnnx サブディレクトリを追加して、そのディレクトリを毎回手動で作成する必要がないようにします。

AlexNet(DnnImageModelSelector, IHostEnvironment, String, String)

AlexNet パイプラインに必要な 2 つの対応するモデル (前処理モデルとメイン モデル) を含む推定チェーンを返します。 また、任意の入力および出力列名を使用するために必要な ColumnsCopyingTransforms の名前変更も含まれます。 これは、両方のモデルがこのメソッドを含むファイルと同じ場所に存在することを前提としています。これは、NuGet を介して使用される場合です。 これは、NuGet からモデルをインポートする場合に AlexNet を使用する既定の方法である必要があります。

public static Microsoft.ML.Data.EstimatorChain<Microsoft.ML.Transforms.ColumnCopyingTransformer> AlexNet (this Microsoft.ML.Transforms.Onnx.DnnImageModelSelector dnnModelContext, Microsoft.ML.Runtime.IHostEnvironment env, string outputColumnName, string inputColumnName);
static member AlexNet : Microsoft.ML.Transforms.Onnx.DnnImageModelSelector * Microsoft.ML.Runtime.IHostEnvironment * string * string -> Microsoft.ML.Data.EstimatorChain<Microsoft.ML.Transforms.ColumnCopyingTransformer>
<Extension()>
Public Function AlexNet (dnnModelContext As DnnImageModelSelector, env As IHostEnvironment, outputColumnName As String, inputColumnName As String) As EstimatorChain(Of ColumnCopyingTransformer)

パラメーター

dnnModelContext
DnnImageModelSelector
outputColumnName
String
inputColumnName
String

戻り値

適用対象

AlexNet(DnnImageModelSelector, IHostEnvironment, String, String, String)

これにより、カスタム モデルの場所を指定できます。 これは、カスタム モデルが指定されている場合、またはモデルをメイン アプリケーションとは別のフォルダーに個別に配置または出荷する場合に便利です。 OnnxTransformer を動作させるには、Onnx モデルがすべてディレクトリ内に存在する必要があるため、このメソッドは渡されたディレクトリに AlexNetOnnx/AlexNetPrepOnnx サブディレクトリを追加して、そのディレクトリを毎回手動で作成する必要がないようにします。

public static Microsoft.ML.Data.EstimatorChain<Microsoft.ML.Transforms.ColumnCopyingTransformer> AlexNet (this Microsoft.ML.Transforms.Onnx.DnnImageModelSelector dnnModelContext, Microsoft.ML.Runtime.IHostEnvironment env, string outputColumnName, string inputColumnName, string modelDir);
static member AlexNet : Microsoft.ML.Transforms.Onnx.DnnImageModelSelector * Microsoft.ML.Runtime.IHostEnvironment * string * string * string -> Microsoft.ML.Data.EstimatorChain<Microsoft.ML.Transforms.ColumnCopyingTransformer>
<Extension()>
Public Function AlexNet (dnnModelContext As DnnImageModelSelector, env As IHostEnvironment, outputColumnName As String, inputColumnName As String, modelDir As String) As EstimatorChain(Of ColumnCopyingTransformer)

パラメーター

dnnModelContext
DnnImageModelSelector
outputColumnName
String
inputColumnName
String
modelDir
String

戻り値

適用対象