base class for GMM, ANN, etc