Cosmology under the fractional calculus approach