.. _l-functions: Functions ========= .. contents:: :local: :depth: 1 Summary +++++++ +--------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------+ | function | class parent | truncated documentation | +==================================================================================================+==============+=======================================================================================================================+ | :func:`_setup_hook ` | | If this function is added to the module, the help automation and unit tests call it first before anything goes on ... | +--------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`check ` | | Checks the library is working. It raises an exception. If you want to disable the logs: | +--------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`keras_build_mnist_model ` | | Builds a :epkg:`CNN` for :epkg:`MNIST` with :epkg:`keras`. | +--------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`keras_fit ` | | Fits a :epkg:`keras` model. | +--------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`keras_mnist_data ` | | Retrieves the :epkg:`MNIST` database for :epkg:`keras`. | +--------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`keras_predict ` | | Computes the predictions with a :epkg:`keras` model. | +--------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`pyopencl_status ` | | Looks into :epkg:`GPU` and :epkg:`CPU` to see which card is available. Returns a string. | +--------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------+