コード例 #1
0
 def get_header():
     header = pml.Header(
         Application=pml.Application(
             name=HEADER_INFO.APPLICATION_NAME,
             version=HEADER_INFO.APPLICATION_VERSION
         ),
         description=self._fingerprint_description
     )
     return header
コード例 #2
0
 def __init__(self, description, copyright):
     if not description:
         description = "Keras Model in PMML"
     if not copyright:
         copyright = "Copyright (c) 2018 Software AG"
     ny.Header.__init__(self, copyright=copyright,
                        description=description,
                        Timestamp=ny.Timestamp(str(datetime.datetime.now())),
                        Application=ny.Application(name="Nyoka",version=metadata.__version__))