Takes a dataset containing multiple pairs of link columns (targets + weights) and combines them into a single pair. This is useful when you have links from different sources (e.g., embedding similarity links and explicit foreign key links) and want to visualize or analyze them as a single graph. Each link pair can optionally be scaled by a weight multiplier, allowing you to control the relative importance of different link sources.Documentation Index
Fetch the complete documentation index at: https://docs.graphext.com/llms.txt
Use this file to discover all available pages before exploring further.
Usage
The following examples show how the step can be used in a recipe.Examples
Examples
- Example 1
- Example 2
- Signature
Merge embedding links with FK links, giving FK links 5x weight
Inputs & Outputs
The following are the inputs expected by the step and the outputs it produces. These are generally columns (ds.first_name), datasets (ds or ds[["first_name", "last_name"]]) or models (referenced
by name e.g. "churn-clf").
Inputs
Inputs
A dataset containing the link column pairs to merge.
Outputs
Outputs
Configuration
The following parameters can be used to configure the behaviour of the step by including them in a json object as the last “input” to the step, i.e.step(..., {"param": "value", ...}) -> (output).
Parameters
Parameters
Pairs of [target_column, weight_column] names to merge.
Each entry is a two-element array with the names of the target and weight
columns forming a link pair. E.g., [[“targets_a”, “weights_a”], [“targets_b”, “weights_b”]].
Weight multiplier for each link pair.
Optional list of multipliers (one per link pair). Each link pair’s weights
will be multiplied by the corresponding value. Defaults to 1.0 for all pairs.
Array items
Array items
Each item in array.Values must be in the following range: