Patent attributes
Certain aspects involve building segment-specific executable program code. In one example, a code-building service can execute segmentation logic that assigns different target entity records to different segments based on differences between sets of attribute values among the target entity records. The code-building service can select, for each segment, a set of data assets that is specific to the assigned segment and a set of source code portions that is specific to the selected data assets. The code-building service can order each set of the source code portions based on an identified modeling output type for the target entity records. The code-building service can generate, from the ordered source code portions, a set of program code referencing the selected subset of the data assets. For instance, the generated program code, if executed, can generate and transmit different modeling outputs for the first target entity record and the second target entity record.