Preheat the oven to 350°F. Line an 8×8" baking pan with parchment paper, or lightly grease it with cooking spray or oil.
In a large bowl, whisk together the mashed sweet potato, Greek yogurt, milk, molasses, eggs, avocado oil, brown sugar, and vanilla until smooth and fully combined.
Sprinkle the baking powder, baking soda, cinnamon, ginger, allspice, and salt over the wet ingredients and whisk them in.
Add the all-purpose and whole wheat flours and stir until just combined. A few small streaks are fine. Overmixing can make the cake dense.
Pour the batter into the prepared pan and spread it into an even layer. Bake for 30 to 35 minutes, until a toothpick inserted in the center comes out clean or with just a crumb or two. If you have a kitchen thermometer, the center should read about 200°F. Bake time depends on your pan: metal pans bake faster than glass or ceramic, so start checking early. Make the (optional) glaze. While the cake bakes, stir together the powdered sugar, vanilla, and milk in a small bowl. Add more sugar to thicken it or a splash more milk to thin it.
Let the cake cool in the pan for 10 minutes, then slice into 9 pieces. Leave it plain, dust lightly with powdered sugar, or drizzle with the glaze. If you’re glazing, let the cake cool a bit longer first so the glaze sets on top instead of melting in.