For the batter: Preheat the oven to 350°F and line a cupcake pan with liners.
In a large bowl mix together both sugars, eggs, oil, yogurt and vanilla extract. Mix until fully combined.
In a separate bowl whisk together the flour, baking powder, baking soda, all of the spices and the salt. Whisk until fully combined.
Next add the carrots and ¼ cup of the walnuts to the dry ingredients. Reserve the rest of the walnuts for decorating the cupcakes. Using your hands, mix until all of the carrots and nuts are coated with the flour and there are no clumps of carrots.
Now stir the dry ingredients into the wet ingredients and mix until fully incorporated.
Scoop into the lined cupcake pan, filling each liner ¾ of the way full. Bake for 20 minutes or until a toothpick inserted in the middle of a cupcake comes out clean.
Cool completely before frosting.
For the Cream Cheese Frosting: In the bowl of a stand mixer, cream together the butter and cream cheese until well combined. Make sure there are no clumps before adding the powdered sugar.
Next add in the powdered sugar, a little at a time until completely combined. Stir in the vanilla extract and salt.
Frost the cooled cupcakes, then top each one with the remaining chopped walnuts. Enjoy!