Preheat the oven to 180°C. Line a baking tin with parchment paper.
Lightly whisk the eggs in a small bowl. Cut the tomatoes in half.
Finely chop the onion. Grate the sweet potato & courgette, measure out the cups (don't have to be very accurate).
In a large bowl mix the grated vegetables, onion, garlic, rosemary and cheese then season with salt and pepper.
Make a well in the mixture, add the eggs and combine well.
Spread the mixture evenly in the baking tin and top with the halved cherry tomatoes.
Bake for about 40-50 minutes, until an inserted skewer comes out clean.
Transfer to a wire rack and let it cool then slice it or cut it into bite-sized cubes.