(data, to_metas=False)
return data.transform(new_domain)
Remove discrete columns from the data.
Remove discrete columns from the data.
Remove discrete columns from the data .
def remove_discrete_features(data, to_metas=False):
    """Remove discrete columns from the data."""
    new_domain = Domain(
        [a for a in data.domain.attributes if a.is_continuous],
        data.domain.class_vars,
        data.domain.metas
        + (() if not to_metas
           else tuple(a for a in data.domain.attributes if not a.is_continuous))
    )
    return data.transform(new_domain)
def remove_discrete_features ( data , to_metas = False ) : new_domain = Domain ( [ a for a in data . domain . attributes if a . is_continuous ] , data . domain . class_vars , data . domain . metas + ( ( ) if not to_metas else tuple ( a for a in data . domain . attributes if not a . is_continuous ) ) ) return data . transform ( new_domain )