10000 DOC Tomography L1 reconstruction example: use dot product operator (#… · scikit-learn/scikit-learn@d619d96 · GitHub
[go: up one dir, main page]

Skip to content

Commit d619d96

Browse files
authored
DOC Tomography L1 reconstruction example: use dot product operator (#18722)
1 parent 2631a45 commit d619d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/applications/plot_tomography_l1_reconstruction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def generate_synthetic_data():
114114
l = 128
115115
proj_operator = build_projection_operator(l, l // 7)
116116
data = generate_synthetic_data()
117-
proj = proj_operator * data.ravel()[:, np.newaxis]
117+
proj = proj_operator @ data.ravel()[:, np.newaxis]
118118
proj += 0.15 * np.random.randn(*proj.shape)
119119

120120
# Reconstruction with L2 (Ridge) penalization

0 commit comments

Comments
 (0)
0