overloaded learnDynamicFormula

Now keywords array is optional