$$f(\mathcal {G})$$ Noether cosmology