0 ×

Score Erosion

KNIME Optimization extension version 4.4.0.v202106101426 by KNIME AG, Zurich, Switzerland

This node uses the Score Erosion algorithm in order to select subsets of items/row that
  • have a high overall score, and
  • are as diverse as possible
It is essentially an iterative process that first select the item with the highest score, reduces the scores of all remaining items based on their distance to the selected item, and subsequently selects the next item with the highest score, and so on. With the erosion factor you can adjust of activity should be preferred over activity or the other way round. Details about the algorithm are available in

Maximum-Score Diversity Selection for Early Drug Discovery , Journal of Chemical Information and Modeling, vol. 51, no. 2, pp. 237-247, 2011; Doi: 10.1021/ci100426r .

An example of how to use this node can be found on the example workflow server.


Number of rows to select
Enter the number of rows that should be selected here (the subset size).
Score column
Select the column containing the scores and if a low or a high score is preferred.
Distance column
Select the column containing the distances between the items here.
Erosion factor
Select a value for the erosion factor here. High values favor diverse subsets, low values favor more active subsets.
Score update mode
The difference mode subtracts the distance to the selected item from all score, whereas the product mode multiplies the scores with the distance.

Input Ports

The input table, containing at least one numeric column with scores for each row, and one distance column.

Output Ports

A table containing the selected rows together with their eroded scores.
A table containing information about the overall activity and diversity of the selected subset in each internal iteration.

Best Friends (Incoming)

Best Friends (Outgoing)



To use this node in KNIME, install KNIME Optimization extension from the following update site:


A zipped version of the software site can be downloaded here.

You don't know what to do with this link? Read our NodePit Product and Node Installation Guide that explains you in detail how to install nodes to your KNIME Analytics Platform.

Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform. Browse NodePit from within KNIME, install nodes with just one click and share your workflows with NodePit Space.


You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.