Interaction between attributes in a general setting for knowledge discovery