Skip to content

Commit

Permalink
Convert log likelihood values from mnl_estimate to Python floats.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiffyclub committed May 16, 2014
1 parent 2c8edd2 commit 7d21655
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions urbansim/urbanchoice/mnl.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ def mnl_estimate(data, chosen, numalts, GPU=False, coeffrange=(-3, 3),
l1 = -1 * mnl_loglik(beta, *args)[0]

log_likelihood = {
'null': l0[0][0],
'convergence': l1[0][0],
'ratio': (1 - (l1 / l0))[0][0]
'null': float(l0[0][0]),
'convergence': float(l1[0][0]),
'ratio': float((1 - (l1 / l0))[0][0])
}

fit_parameters = pd.DataFrame({
Expand Down

0 comments on commit 7d21655

Please sign in to comment.