restructed training data document for quicker calculations