0 ×

AP Calculator

StreamablePalladian for KNIME version by palladian.ws

This node calculates Precision@k (Pr@k) and Average Precision (AP) values for ranked lists. For a description see Text Retrieval Quality: A Primer (Kavi Mahesh, Oracle Corporation, 1999).


Relevance column
This option specifies the column indicating the relevance of the current row. If the cell is not of boolean type, it is parsed to a boolean value. In case of a string column, a value of true indicates that the current row is relevant, and irrelevant otherwise. In case of an integer, a value of 1 indicates that the current row is relevant, and irrelevant otherwise.

Input Ports

Table with ranked entries and column indicating their relevance (boolean, string, or integer).

Output Ports

Input table with appended Pr@k and AP columns.

Best Friends (Incoming)

Best Friends (Outgoing)


To use this node in KNIME, install Palladian for KNIME 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.