You can’t.
Accuracy is a measure for classification.
You calculate the error for regression.
Learn more here:
Difference Between Classification and Regression in Machine Learning