dora/server/server.py
def retrieve_trainingdata(samplerid):
    """
    provides lists of the real and virtual training data used by the sampler.
    """
    X = [x.tolist() for x in fl.current_app.samplers[int(samplerid)].X]
    y = [y.tolist() for y in fl.current_app.samplers[int(samplerid)].y]

    virtualIndices = fl.current_app.samplers[int(samplerid)].virtual_flag
    real_id = [not i for i in virtualIndices]

    real_X = [x_ for x_, real in zip(X, real_id) if real is True]
    real_y = [y_ for y_, real in zip(y, real_id) if real is True]

    virt_X = [x_ for x_, real in zip(X, real_id) if real is False]
    virt_y = [y_ for y_, real in zip(y, real_id) if real is False]
    response_data = {"X": real_X, "y": real_y,
                     "virtual_X": virt_X, "virtual_y": virt_y}
    return response_data, 200

    provides lists of the real and virtual training data used by the sampler.
    
provides lists of the real and virtual training data used by the sampler.
provides lists of the real and virtual training data used by the sampler .
def retrieve_trainingdata(samplerid):
    X = [x.tolist() for x in fl.current_app.samplers[int(samplerid)].X]
    y = [y.tolist() for y in fl.current_app.samplers[int(samplerid)].y]
    virtualIndices = fl.current_app.samplers[int(samplerid)].virtual_flag
    real_id = [not i for i in virtualIndices]
    real_X = [x_ for x_, real in zip(X, real_id) if real is True]
    real_y = [y_ for y_, real in zip(y, real_id) if real is True]
    virt_X = [x_ for x_, real in zip(X, real_id) if real is False]
    virt_y = [y_ for y_, real in zip(y, real_id) if real is False]
    response_data = {"X": real_X, "y": real_y,
                     "virtual_X": virt_X, "virtual_y": virt_y}
    return response_data, 200
def retrieve_trainingdata ( samplerid ) : X = [ x . tolist ( ) for x in fl . current_app . samplers [ int ( samplerid ) ] . X ] y = [ y . tolist ( ) for y in fl . current_app . samplers [ int ( samplerid ) ] . y ] virtualIndices = fl . current_app . samplers [ int ( samplerid ) ] . virtual_flag real_id = [ not i for i in virtualIndices ] real_X = [ x_ for x_ , real in zip ( X , real_id ) if real is True ] real_y = [ y_ for y_ , real in zip ( y , real_id ) if real is True ] virt_X = [ x_ for x_ , real in zip ( X , real_id ) if real is False ] virt_y = [ y_ for y_ , real in zip ( y , real_id ) if real is False ] response_data = { "X" : real_X , "y" : real_y , "virtual_X" : virt_X , "virtual_y" : virt_y } return response_data , 200
provides lists of the real and virtual training data used by the sampler.
provides lists of the real and virtual training data used by the sampler .
"""
    provides lists of the real and virtual training data used by the sampler.
    """
samplerid