LearningModelDescriptionPreview 类   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
已弃用。 表示所提供模型的元数据和属性说明。
public ref class LearningModelDescriptionPreview sealed/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
class LearningModelDescriptionPreview final/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("Use LearningModel instead of LearningModelDescriptionPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
class LearningModelDescriptionPreview final[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
public sealed class LearningModelDescriptionPreview[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("Use LearningModel instead of LearningModelDescriptionPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public sealed class LearningModelDescriptionPreviewPublic NotInheritable Class LearningModelDescriptionPreview- 继承
- 属性
Windows 要求
| 设备系列 | 
							Windows 10, version 1803 (在 10.0.17134.0 中引入) | 
| API contract | 
							Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (在 v1.0 中引入) | 
示例
public void Evaluator()
{
    var modelFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("model.onnx");
    LearningModelPreview model = await LearningModelPreview.LoadModelFromStorageFileAsync(modelFile);
    // Our evaluator only handles version 1 of the model
    if (model.Description.Version != 1)
    {
        throw new Exception("Invalid model version");
    }
}
注解
警告
这是一个已弃用的 API。 请改用 Windows.AI.MachineLearning 命名空间。
属性
| Author | 已弃用。 从模型获取作者信息。 | 
| Description | 已弃用。 获取模型的自定义说明。 | 
| Domain | 已弃用。 获取模型的域信息。 | 
| InputFeatures | 已弃用。 获取模型的输入说明。 | 
| Metadata | 已弃用。 从模型获取元数据。 | 
| Name | 已弃用。 获取模型的名称。 | 
| OutputFeatures | 已弃用。 获取模型的输出说明。 | 
| Version | 已弃用。 获取模型的版本信息。 |