def _do_auto_predict ( machine , X , * args ) : if auto_predict and hasattr ( machine , "predict" ) : return machine . predict ( X )
how to use a predict function on python
Performs an automatic prediction for the specified machine and returns the predicted values .
def _do_auto_predict(machine, X, *args):
    """Performs an automatic prediction for the specified machine and returns
    the predicted values.
    """
    if auto_predict and hasattr(machine, "predict"):
        return machine.predict(X)