Learning functions varying along an active subspace.