The best method is to get your vehicle scanned and find out what the actual problem is, then erase the codes. Drive your vehicle and see if it resets any of the codes again.
Failing that, you could try a less correct method. Remove the negative (usually black) lead from the battery, leave this off for about 1 hr. This may reset your computer back to factory state. Then reattach the negative lead, drive the car as normal. It will need to 'relearn' your driving style. This will not however correct a problem that is caused by a defective state. It will simply clear the short term volatile memory.
Best course of action is to have it scanned.