reg_cov should be in init not fit. For sklearn pipelines.

where is the compute_covariance function coming from?