def withStderrTo(stderr, f, *args, **kwargs):
    (outer, sys.stderr) = (sys.stderr, stderr)
    try:
        return f(*args, **kwargs)
    finally:
        sys.stderr = outer
Similar to SKlearn we assume that we have X_tr, Y_tr and X_test. Here it is assumed that target is the last
dataset/ETHPy150Open patrys/PythonChecker/pyflakes/test/test_api.py/withStderrTo--crossover with--dataset/ETHPy150Open sevamoo/SOMPY/sompy.py/SOM.predict