#! /usr/bin/env python3 # def hello_keras ( ): #*****************************************************************************80 # ## hello_keras tries to load keras, say hello, and exit. # # Discussion: # # Why? Because on some systems, it is almost impossible to load keras. # This program is so small that it eliminates many excuses for the failure. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 25 October 2019 # # Author: # # John Burkardt. # import keras import platform print ( '' ) print ( 'hello_keras:' ) print ( ' python version: %s' % ( platform.python_version ( ) ) ) print ( ' keras version: %s' % ( keras.__version__ ) ) print ( ' Apparently, we were able to load keras!' ) # # Terminate. # print ( '' ) print ( 'hello_keras:' ) print ( ' Normal end of execution.' ) return if ( __name__ == '__main__' ): hello_keras ( )