Typically, electron densities from ab initio calculations are constructed from the wave functions of the occupied states. This representation of the density grows as the square of the system size. To keep the scaling for the machine learning model linear, we project the densities on to an atom-centered "density fitting" basis given by: