Estimating the average causal effect of intervention in continuous variables using machine learning