def fit(fqdn, result, *argl, **argd):
<EOL>global _machines<EOL>out = None<EOL>if len(argl) > <NUM_LIT:0>:<EOL><INDENT>machine = argl[<NUM_LIT:0>]<EOL>key = id(machine)<EOL>_machines[key] = (machine, argl[<NUM_LIT:0>], argl[<NUM_LIT:1>])<EOL>if isclassifier(machine):<EOL><INDENT>out = classify_fit(fqdn, result, *argl, **argd)<EOL><DEDENT>elif isregressor(machine):<EOL><INDENT>out = regress_fit(fqdn, result, *argl, **argd)<EOL><DEDENT><DEDENT>return out<EOL>
Analyzes the result of a generic fit operation performed by `sklearn`.

    Args:
        fqdn (str): full-qualified name of the method that was called.
        result: result of calling the method with `fqdn`.
        argl (tuple): positional arguments passed to the method call.
        argd (dict): keyword arguments passed to the method call.