Instantiating classifier by class-assignment method.