That's not deductible (or eligible for a credit) unless you are self employed. Even then, the education must be directly related to your business activities.
If you are a regular W-2 employee, you are no longer (effective 2018) allowed to deduct mileage and other job expenses. Even when you were allowed to, it was only an itemized deduction subject to the 2% of AGI threshold.