get_fitted_state function

Get fitted state from attributes