I was getting a LinAlgError: Singular matrix error when trying to run the optimization with Demes.
I traced it to the varcovs matrices, after normalization the determinant is 0. I added a few patches and checks to deal with the cases of normalized varcovs as well as when there is only 1 population in the data.
I was getting a
LinAlgError: Singular matrix error
when trying to run the optimization with Demes.I traced it to the varcovs matrices, after normalization the determinant is 0. I added a few patches and checks to deal with the cases of normalized varcovs as well as when there is only 1 population in the data.