ModelInputAttribute

Attributes ยท AiDotNet.Attributes

Specifies the expected input and output types for a model.

Inheritance: Attribute โ†’ ModelInputAttribute

For Beginners

Apply this attribute to your model class to declare what type of data it expects as input and what it produces as output. This makes it easy to discover which models work with your data format without reading documentation.

How It Works

Usage:

Constructors

Constructor Summary
ModelInputAttribute(Type inputType, Type outputType) Initializes a new instance of the ModelInputAttribute class.

Properties

Property Summary
Type InputType { get; } Gets the expected input type for this model.
Type OutputType { get; } Gets the expected output type for this model.