Heat the oven to 175 C / 350 F with the rack in the middle. Brush a 23 cm / 9-inch square baking pan with 1 tsp coconut oil and line it with parchment, leaving an overhang on two sides.
In a 4-quart / 3.8 L mixing bowl, whisk 300 ml coconut milk, 150 g brown sugar, 3 tbsp melted coconut oil, vanilla, cinnamon, 1 tsp nutmeg, allspice and salt for about 1 minute, until the sugar mostly dissolves.
Peel the sweet potatoes and grate them on the fine holes of a box grater straight into the bowl. Add the flour and raisins and stir until no dry flour shows and the batter looks like wet, loose shreds.
Scrape the batter into the pan and press it level with a spatula. Bake for 55 minutes, tenting loosely with foil if the top darkens early.
Stir the remaining 100 ml coconut milk with 2 tbsp brown sugar and 1/4 tsp nutmeg. Pour it over the pudding and bake 15 minutes more, until the edges pull away from the pan, the top is deep brown and a skewer in the center comes out with no wet batter.
Cool the pudding in the pan on a rack for 60 minutes. Lift it out with the parchment and cut into 8 squares.