LearningModelDescriptionPreview クラス

定義

非推奨になりました。 指定されたモデルのメタデータとプロパティの説明を表します。

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 LearningModelDescriptionPreview
Public NotInheritable Class LearningModelDescriptionPreview
継承
Object Platform::Object IInspectable 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

非推奨になりました。 モデルのバージョン情報を取得します。

適用対象