train a creg classifier