Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Artificial Intelligence Fundamentals) expand_more

Mean absolute error

Learn Mean absolute error in AI Fundamentals with a dedicated explanation, topic-specific example, edge guidance, and mastery check.

12 min read • Intermediate
ai-fundamentals-047.py
py
mae = sum(abs(a-b) for a,b in zip(y_true,y_pred))/len(y_true)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content