({{, (RefLink[NetModel, paclet:ref/NetModel])["name"] 
obtains a neural net model with the specified name from the Neural Net Repository. }, {, (RefLink[NetModel, paclet:ref/NetModel])[{"name","(Subscript[param, 1])"->(Subscript[setting, 1]),…}]
obtains a specified model from a parameterized family of models.}, {, (RefLink[NetModel, paclet:ref/NetModel])[model,"prop"]
gives property prop of the model.}, {, (RefLink[NetModel, paclet:ref/NetModel])[]
gives a dataset of available pre-trained neural net models.}})

OpenersNotesSection(Spacer1)Details

A list of available models can be found in the (WebLink[Wolfram Neural Net Repository, http://resources.wolframcloud.com/NeuralNetRepository]).

(RefLink[NetModel, paclet:ref/NetModel])[…,"port"->spec] can be used to override the dimensions of an input or output port to the net obtained by (RefLink[NetModel, paclet:ref/NetModel]) or to attach or modify a (RefLink[NetEncoder, paclet:ref/NetEncoder]) or (RefLink[NetDecoder, paclet:ref/NetDecoder]).

Possible properties in (RefLink[NetModel, paclet:ref/NetModel])[name,prop] include:

For parameterized models, additional properties include:

"SourceMetadata" consists of an association whose keys are based on a subset of properties from the Dublin Core metadata standard, including "Creator", "Date", "Rights", "Source".

The effective default value for "EvaluationFunction" is (RefLink[NetModel, paclet:ref/NetModel])[…,"EvaluationNet"].

(RefLink[NetModel, paclet:ref/NetModel]) may download resources that will be stored in your local object store at (RefLink[$LocalBase, paclet:ref/$LocalBase]), and that can be listed using (RefLink[LocalObjects, paclet:ref/LocalObjects])[] and removed using (RefLink[ResourceRemove, paclet:ref/ResourceRemove]).

(RefLink[NetModel, paclet:ref/NetModel])[…][data,opts] specifies that options should be used in applying the net to data. Possible options include:

Possible settings for (RefLink[WorkingPrecision, paclet:ref/WorkingPrecision]) include:

(RefLink[WorkingPrecision, paclet:ref/WorkingPrecision])->"Mixed" is only supported for (RefLink[TargetDevice, paclet:ref/TargetDevice])->"GPU", where it can result in significant performance increases on certain devices.

If the output is a (RefLink[NumericArray, paclet:ref/NumericArray]), then its numeric type is derived from (RefLink[WorkingPrecision, paclet:ref/WorkingPrecision]).

With the setting (RefLink[NetEvaluationMode, paclet:ref/NetEvaluationMode])->"Training", layers such as (RefLink[DropoutLayer, paclet:ref/DropoutLayer]) will behave as they do for training rather than ordinary evaluation.

OpenersPrimaryExamplesSection(Spacer1)Examples  (9)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Obtain the trained version of a specific neural net:

net=NetModel["LeNet Trained on MNIST Data"]

Apply the trained net to a set of inputs:

net[{,,}]

Produce class probabilities for a single input:

net[,"Probabilities"]

Obtain a member of a parameterized family:

NetModel[{"BPEmb Subword Embeddings Trained on Wikipedia","Language"->"English","VocabularySize"->5000,"Dimensions"->25}]

OpenersExampleSection1(Spacer1)Scope  (5)

Obtain an uninitialized network:

NetModel["LeNet Trained on MNIST Data","UninitializedEvaluationNet"]

Override the dimensions of the output of a model:

NetModel["LeNet","Output"->30]

Attach a new (RefLink[NetDecoder, paclet:ref/NetDecoder]) to a model:

NetModel["LeNet","Output"->NetDecoder[{"Class",{"cat","dog"}}]]

Modify a parameter of the existing (RefLink[NetEncoder, paclet:ref/NetEncoder]) of a model:

NetModel["BPEmb Subword Embeddings Trained on Wikipedia","Input"->{"IncludeTerminalTokens"->True}]

Obtain a specific property of a net:

NetModel["LeNet Trained on MNIST Data","SourceMetadata"]

Obtain the default variant of a parameterized family:

NetModel["BPEmb Subword Embeddings Trained on Wikipedia"]

Get the settings used for the default variant:

NetModel["BPEmb Subword Embeddings Trained on Wikipedia","DefaultVariant"]

Obtain a specified member of a parameterized family:

NetModel[{"BPEmb Subword Embeddings Trained on Wikipedia","Language"->"English","VocabularySize"->5000,"Dimensions"->25}]

Get information about the parameters and their allowed values:

NetModel["BPEmb Subword Embeddings Trained on Wikipedia","ParametersInformation"]

Get explicit settings for all parameters as an association:

NetModel["BPEmb Subword Embeddings Trained on Wikipedia","ParametersAllowedValues"]//Map[Short]

Get a list of all possible variants of a family consistent with the specification:

NetModel[{"BPEmb Subword Embeddings Trained on Wikipedia","Language"->"English"},"Variants"]//Length

Obtain a list of all available models:

NetModel[]

OpenersExampleSection3(Spacer1)Properties & Relations  (2)

The models specified by (RefLink[NetModel, paclet:ref/NetModel]) are also available via (RefLink[ResourceObject, paclet:ref/ResourceObject]) and (RefLink[ResourceData, paclet:ref/ResourceData]):

NetModel["LeNet Trained on MNIST Data"]

ResourceData["LeNet Trained on MNIST Data"]

ResourceObject["LeNet Trained on MNIST Data"]

Obtain a list of models that have been downloaded:

NetModel["DownloadedModelNames"]

Remove a specific model that has been downloaded:

ResourceRemove[ResourceObject["LeNet Trained on MNIST Data"]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[NetGraph, paclet:ref/NetGraph])  ▪  (RefLink[NetChain, paclet:ref/NetChain])  ▪  (RefLink[NetExtract, paclet:ref/NetExtract])  ▪  (RefLink[FeatureExtraction, paclet:ref/FeatureExtraction])  ▪  (RefLink[ImageRestyle, paclet:ref/ImageRestyle])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Neural Networks, paclet:guide/NeuralNetworks])}, {▪(RefLinkPlain[Life Sciences & Medicine: Data & Computation, paclet:guide/LifeSciencesAndMedicineDataAndComputation])}, {▪(RefLinkPlain[Wolfram Resource System, paclet:guide/WolframResourceSystem])}, {▪(RefLinkPlain[Machine Learning, paclet:guide/MachineLearning])}, {▪(RefLinkPlain[Image Computation for Microscopy, paclet:guide/ImageComputationForMicroscopy])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-NeuralNetRepository.png(Spacer1)Neural Network Repository, http://resources.wolframcloud.com/NeuralNetRepository])}})}})