Efficient Direct Density Ratio Estimation for Non-stationarity Adaptation and Outlier Detection