Source code for mlprodict

# -*- encoding: utf-8 -*-
Ways to speed up predictions for a machine learned model.


__version__ = "0.2"
__author__ = "Xavier Dupré"

[docs]def check(log=False): """ Checks the library is working. It raises an exception. If you want to disable the logs: :param log: if True, display information, otherwise :return: 0 or exception :githublink:`%|py|19` """ return True
[docs]def _setup_hook(use_print=False): """ If this function is added to the module, the help automation and unit tests call it first before anything goes on as an initialization step. :githublink:`%|py|28` """ if use_print: print("Success: _setup_hook")