AlexNetExtension.AlexNet メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| 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
- env
- IHostEnvironment
- 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
- env
- IHostEnvironment
- outputColumnName
- String
- inputColumnName
- String
- modelDir
- String