AlexNetExtension.AlexNet Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AlexNet(DnnImageModelSelector, IHostEnvironment, String, String) |
Returns an estimator chain with the two corresponding models (a preprocessing one and a main one) required for the AlexNet pipeline. Also includes the renaming ColumnsCopyingTransforms required to be able to use arbitrary input and output column names. This assumes both of the models are in the same location as the file containing this method, which they will be if used through the NuGet. This should be the default way to use AlexNet if importing the model from a NuGet. |
AlexNet(DnnImageModelSelector, IHostEnvironment, String, String, String) |
This allows a custom model location to be specified. This is useful is a custom model is specified, or if the model is desired to be placed or shipped separately in a different folder from the main application. Note that because Onnx models must be in a directory all by themselves for the OnnxTransformer to work, this method appends a AlexNetOnnx/AlexNetPrepOnnx subdirectory to the passed in directory to prevent having to make that directory manually each time. |
AlexNet(DnnImageModelSelector, IHostEnvironment, String, String)
Returns an estimator chain with the two corresponding models (a preprocessing one and a main one) required for the AlexNet pipeline. Also includes the renaming ColumnsCopyingTransforms required to be able to use arbitrary input and output column names. This assumes both of the models are in the same location as the file containing this method, which they will be if used through the NuGet. This should be the default way to use AlexNet if importing the model from a NuGet.
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)
Parameters
- dnnModelContext
- DnnImageModelSelector
- env
- IHostEnvironment
- outputColumnName
- String
- inputColumnName
- String
Returns
Applies to
AlexNet(DnnImageModelSelector, IHostEnvironment, String, String, String)
This allows a custom model location to be specified. This is useful is a custom model is specified, or if the model is desired to be placed or shipped separately in a different folder from the main application. Note that because Onnx models must be in a directory all by themselves for the OnnxTransformer to work, this method appends a AlexNetOnnx/AlexNetPrepOnnx subdirectory to the passed in directory to prevent having to make that directory manually each time.
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)
Parameters
- dnnModelContext
- DnnImageModelSelector
- env
- IHostEnvironment
- outputColumnName
- String
- inputColumnName
- String
- modelDir
- String