Skip to content

Commit

Permalink
Refactor maxlike (#4)
Browse files Browse the repository at this point in the history
* Lint

* Backup file

* Move AIC related stuff to maxlike.py
  • Loading branch information
ppegolo authored Sep 26, 2024
1 parent d205974 commit 61b647a
Show file tree
Hide file tree
Showing 6 changed files with 1,960 additions and 705 deletions.
42 changes: 42 additions & 0 deletions examples/06_example_maxlike copy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,48 @@
"arr = np.array([1,2,3])\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"from scipy.linalg import cholesky"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"A = np.random.randn(2,2) + 1j*np.random.randn(2,2)\n",
"A = [email protected]()\n",
"L = cholesky(A)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 0.98759513+0.j , -0.05933581-2.45849019j],\n",
" [ 0. +0.j , 1.79482252+0.j ]])"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"L"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
623 changes: 448 additions & 175 deletions examples/07_example_negative_log_likelihood.ipynb

Large diffs are not rendered by default.

Binary file modified examples/data/bayesian/CsF/dc_minimal.npy
Binary file not shown.
Loading

0 comments on commit 61b647a

Please sign in to comment.