ANNOUNCEMENT: RAPIDMINER 9.1 HAS JUST BEEN RELEASED!   PLEASE DOWNLOAD AND GIVE FEEDBACK. ENJOY AND HAPPY RAPIDMINING!   -- @sgenzer – Community Manager

Generic join script

BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 232   Unicorn
edited November 10 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.

Tagged:
Thomas_Ottlionelderkrikor

Comments

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