Added constructor flags for hyperparamter sampling