You decide what you want either positive or negative. Say for arguments sake you decide on negative for easy access to LED bulbs. Buy your negative earth electronic regulator, wire your battery for negative earth. Take the field wire from the dynamo and flash against the positive battery terminal this will polarise the dynamo for negative earth operation. Then attach regulator. If positive earth reverse the procedure.