Contents

init(author:shortDescription:license:version:additional:)

Creates a new metadata instance for a machine learning model.

Declaration

init(author: String = NSFullUserName(), shortDescription: String = "A model trained using CreateML for use with CoreML.", license: String? = nil, version: String = "1", additional: [String : String]? = nil)

Parameters

  • author:

    The author of the model.

  • shortDescription:

    A short description of the model.

  • license:

    The license governing the use of the model.

  • version:

    The model version.

  • additional:

    A dictionary that you can use to store arbitrary key value pairs.