RapidMiner 9.7 is Now Available

Lots of amazing new improvements including true version control! Learn more about what's new here.

CLICK HERE TO DOWNLOAD

Generic join script

BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 460   Unicorn
edited August 2019 in Knowledge Base

This script implements a generic join operation that can compare on arbitrary function results, for example inequality. 

 

Input1: Example set 1

Input2: Example set 2

 

Inside the script, the join attribute names from example set 1 and 2 need to be specified, and the join operation. This can be as simple as e1 == e2 or something like abs(e1 - e2) <= 0.1 for a "fuzzy match" or e1.matches(e2) for a regular expression match. 

 

The output is a joined example set. 

 

The inputs are not allowed to contain identical attribute names, those need to be renamed before using this script.

Thomas_Ottlionelderkrikor

Comments

  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 460   Unicorn
    Here's an updated version with a bugfix.
    sgenzer
Sign In or Register to comment.