Generates four sets of collocation points (random soil-property vectors and associated pF values) used to evaluate the physics constraints during training.
Usage
build_residual_sets(
df_raw,
x_inputs,
S1 = 1500L,
S2 = 500L,
S3 = 500L,
S4 = 1500L,
pF_lin_min = 5,
pF_lin_max = 7.6,
pF0_pos = 6.2,
pF1_neg = 7.6,
pF_sat_min = -2,
pF_sat_max = -0.3,
seed = 123L
)Arguments
- df_raw
Data frame with covariate columns (training split).
- x_inputs
Character vector of covariate column names.
- S1
Number of S1 points — dry-end linearity (default 1500).
- S2
Number of S2 points — non-negativity at pF0 (default 500).
- S3
Number of S3 points — non-positivity at pF1 (default 500).
- S4
Number of S4 points — saturated plateau (default 1500).
- pF_lin_min
Lower pF for the S1 linearity constraint (default 5.0).
- pF_lin_max
Upper pF for the S1 linearity constraint (default 7.6).
- pF0_pos
pF at which theta must be >= 0 — S2 (default 6.2).
- pF1_neg
pF at which theta must be <= 0 — S3 (default 7.6).
- pF_sat_min
Lower pF for the S4 plateau constraint (default -2.0).
- pF_sat_max
Upper pF for the S4 plateau constraint (default -0.3).
- seed
Integer random seed (default 123).
