We study the cosmological evolutions of the equation of state for dark energy $w_{\mathrm{DE}}$ in the exponential and logarithmic as well as their combination $f(T)$ theories. We show that the crossing of the phantom divide line of $w_{\mathrm{DE}} = -1$ can be realized in the combined $f(T)$ theory even though it cannot be in the exponential or logarithmic $f(T)$ theory. In particular, the crossing is from $w_{\mathrm{DE}} > -1$ to $w_{\mathrm{DE}} < -1$, in the opposite manner from $f(R)$ gravity models. We also demonstrate that this feature is favored by the recent observational data.
We review inflationary cosmology in modified gravity such as R2 gravity with its extensions in order to generalize the Starobinsky inflation model. In particular, we explore inflation realized by three kinds of effects: modification of gravity, the quantum anomaly, and the R2 term in loop quantum cosmology. It is explicitly demonstrated that in these inflationary models, the spectral index of scalar modes of the density perturbations and the tensor-to-scalar ratio can be consistent with the Planck results. Bounce cosmology in F(R) gravity is also explained.