weight_col: <table.column> (Optional)
Description
weight_col specifies the target-table column used to generate a canonical WEIGHT column in the training table.
This enables native weighted training directly from training table generation, without requiring a custom weighted training table override.
-
weight_colmust be in stricttable.columnform. -
weight_colmust reference a column on the inferred target table. -
The referenced column must be numerical (
int,float, ordecimal). -
Expressions are not supported (for example:
SUM(...),AVG(...),MAX(...),COUNT(*)). -
When set, training table generation produces a canonical
WEIGHTcolumn. -
Rows with null
WEIGHTare dropped before final stats/materialization. -
For link prediction (non-array targets), if multiple rows map to one
(ENTITY, TARGET[, time bucket]),WEIGHTis aggregated withMAXby default. -
For
LIST_DISTINCTarray-target link prediction, weights are aggregated per(ENTITY, TARGET)and emitted as a list aligned withTARGET. - For temporal link prediction, weight aggregation is bucket-local and uses the same time bucketing as label construction.
-
For binary classification, if both
weight_colandmajority_sampling_ratioare set, both are applied according to weight_mode.
Supported Task Types
- All static queries
- Temporal link prediction
Example
Default Values
| run_mode | Default Value |
|---|---|
| FAST | None |
| NORMAL | None |
| BEST | None |