(target, source)
return target
Assure that the table obeys the domain conversion's suggestions about sparsity.

    Args:
        target (Table): the target table.
        source (Table): the source table.

    Returns:
        Table: with fixed sparsity. The sparsity is set as it is recommended by domain conversion
            for transformation from source to the target domain.
Assure that the table obeys the domain conversion's suggestions about sparsity.
Assure that the table obeys the domain conversion s suggestions about sparsity .
def assure_domain_conversion_sparsity(target, source):
    """
    Assure that the table obeys the domain conversion's suggestions about sparsity.

    Args:
        target (Table): the target table.
        source (Table): the source table.

    Returns:
        Table: with fixed sparsity. The sparsity is set as it is recommended by domain conversion
            for transformation from source to the target domain.
    """
    conversion = DomainConversion(source.domain, target.domain)
    match_density = [assure_array_dense, assure_array_sparse]
    target.X = match_density[conversion.sparse_X](target.X)
    target.Y = match_density[conversion.sparse_Y](target.Y)
    target.metas = match_density[conversion.sparse_metas](target.metas)
    return target
def assure_domain_conversion_sparsity ( target , source ) : conversion = DomainConversion ( source . domain , target . domain ) match_density = [ assure_array_dense , assure_array_sparse ] target . X = match_density [ conversion . sparse_X ] ( target . X ) target . Y = match_density [ conversion . sparse_Y ] ( target . Y ) target . metas = match_density [ conversion . sparse_metas ] ( target . metas ) return target