Scoop the flesh out of the sweet potato and place it in a large bowl. Add the ricotta, parmesan, salt and pepper and blend till almost smooth. Add the flour, 1/2 cup at a time, incorporating it gently before adding the next amount. Do not over-knead, this will cause the final gnocchi to be tough. Using your fingers instead of your full hand or a wooden spoon will help.
Toast the walnuts in advance, even the day before, chop and store in a sealed container.
Feel free to halve the recipe to feed four. Or you can make the entire batch of gnocchi and freeze what you don't need.
To freeze: Take the gnocchi from the semolina dusted baking sheet and transfer them to a baking sheet lined with wax paper. Place this in a freezer. Once frozen, transfer the gnocchi to a freezer bag.