Preheat oven to 350 degrees F. Line twenty-four 2-1/2-inch muffin cups with paper bake cups; set aside. In a medium bowl, stir together flour, baking powder, baking soda, and salt; set aside.
In a large bowl, beat butter with an electric mixer on medium to high speed for 30 seconds. Add sugar and vanilla. Beat until combined, scraping side of bowl occasionally.
Add eggs one at a time, beating well after each addition. In a small bowl, whisk together sour cream, milk and rum. Alternately add flour mixture and sour cream mixture to butter mixture, beating on low speed after each addition just until combined.
Stir in coconut and almonds. Spoon batter into the prepared muffin cups.
Bake for 18 to 20 minutes or until a toothpick inserted near the centers comes out clean. Cool in pans on wire racks for 5 minutes.
Remove cupcakes from pans; cool completely on wire racks. .