Either grease 2 nine inch cake pans with non-stick spray, or line with parchment paper rounds. Preheat the oven to 350 F.
Using either a box shredder or a food processor, shred the carrots. If using a box shredder, the carrots should look like shredded cheese when you're done. If using the food processor, process the carrots into small pieces so you don't have big chunks of carrot in your cake.
Using either a stand mixer or a hand mixer, add the dry ingredients together in a large mixing bowl. (2 1/2 cups flour, 1 cup white sugar, 1 cup brown sugar, 1 1/2 teaspoons baking soda, 1 teaspoon baking powder, 1 1/2 teaspoons cinnamon, 1/2 teaspoon nutmeg, 1 teaspoon cloves, 1/2 teaspoon all-spice, 1/4 teaspoon salt)
Add the 1/2 cup of softened butter to the dry ingredients and mix until the butter breaks apart into small pieces, about a minute.
Add the eggs, two at a time, mixing them in fully in between each addition.
Add the wet ingredients and mix until fully incorporated. (1/2 cup vegetable oil, 1/2 cup yogurt, 1/2 cup crushed pineapple, 1 teaspoon vanilla.
Fold in the 2 cups of shredded carrots, 1/2 cup of raisins, and 1/2 cup of nuts.
Pour the batter evenly into the two cake pans. Bake in the oven for 35-40 minutes, or until a toothpick inserted in the middle comes out clean with a few moist crumbs.
Remove the cakes from the oven when they are done and let rest for 10 minutes before turning them out onto baking racks to cool completely. I like to wrap the cakes in plastic wrap and set them in the fridge for at least an hour. This makes frosting them easier.