This code mainly focuses on estimating a partial linear model with a change point:
-
$Y\in \mathbb{R}$ represents the response, -
$A\in \mathbb{R}^p$ means the covariate (treatment) with linear effects, -
$X\in \mathbb{R}^r$ denotes other covariates estimated by the DNN, -
$I(\cdot)$ means the indicator function,$f,g: \mathbb{R}^r\to \mathbb{R}$ are multivariate functions$(usually \ r\geq 3)$ , -
$Z\in \mathbb{R}$ represents the change-point covariate.
An additional impact
Readers can attach to the file
- the bias, SSE, ESE and CP (close to 0.95) of
$\theta=(\beta,\gamma)$ , - the bias of
$\eta$ , - the relative error (RE) of
$(f,g)$ on test data.
To avoid overfitting, the hyperparameters n_lr (learning rate), n_node (width), n_layer (depth), n_epoch (max epoch)
and patiences (when to early stop) need to be adjusted, and the grid for
The code recommends Python version>=3.13.2, Numpy >=2.2.4, Pytorch>=2.7.0 and Scipy>=1.15.2.
Copyright © 2025 Q. Huang. All rights reserved.
13/08/2025, Hung Hom, Kowloon, Hong Kong, China.