Skip to content

Commit

Permalink
DOC/BUG: fix an error with array coercion (fixes #156)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgortmaker committed Mar 27, 2024
1 parent 80d0965 commit b82e770
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions docs/notebooks/tutorial/simulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
"Computation Fixed Point Fixed Point Contraction Profit Gradients Profit Hessians Profit Hessians\n",
" Time Failures Iterations Evaluations Max Norm Min Eigenvalue Max Eigenvalue \n",
"----------- ----------- ----------- ----------- ---------------- --------------- ---------------\n",
" 00:00:01 0 721 721 +1.3E-13 -8.4E-01 -9.6E-06 \n",
" 00:00:00 0 721 721 +1.3E-13 -8.4E-01 -9.6E-06 \n",
"======================================================================================================"
]
},
Expand Down Expand Up @@ -250,7 +250,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand All @@ -269,7 +269,7 @@
"Computation Optimizer Optimization Objective Fixed Point Contraction\n",
" Time Converged Iterations Evaluations Iterations Evaluations\n",
"----------- --------- ------------ ----------- ----------- -----------\n",
" 00:00:16 Yes 23 30 8295 26312 \n",
" 00:00:04 Yes 23 30 8289 26305 \n",
"===========================================================================\n",
"\n",
"Nonlinear Coefficient Estimates (Robust SEs in Parentheses):\n",
Expand Down Expand Up @@ -297,7 +297,7 @@
"======================"
]
},
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -306,7 +306,7 @@
"results = problem.solve(\n",
" sigma=0.5 * simulation.sigma, \n",
" pi=0.5 * simulation.pi,\n",
" beta=[None, 0.5 * simulation.beta[1], None],\n",
" beta=[None, 0.5 * simulation.beta[1, 0], None],\n",
" optimization=pyblp.Optimization('l-bfgs-b', {'gtol': 1e-5})\n",
")\n",
"results"
Expand All @@ -321,7 +321,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand All @@ -332,7 +332,7 @@
" [ 2. , 2.10032015]])"
]
},
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -343,7 +343,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand All @@ -353,7 +353,7 @@
" [4. , 4.03121577]])"
]
},
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -364,7 +364,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand All @@ -373,7 +373,7 @@
"array([[1. , 0.78358853]])"
]
},
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -406,9 +406,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.15"
"version": "3.9.18"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}

0 comments on commit b82e770

Please sign in to comment.