Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix 1-norm in example

Akshay Agrawal19a0c5d71f4e
diff --git a/examples/optimization/regularization_and_sparsity.py b/examples/optimization/regularization_and_sparsity.py
index 1ef8f4432c..bd0a78bf7c 100644
--- a/examples/optimization/regularization_and_sparsity.py
+++ b/examples/optimization/regularization_and_sparsity.py
@@ -1,6 +1,6 @@
import marimo
-__generated_with = "0.1.0"
+__generated_with = "0.1.4"
app = marimo.App()
@@ -35,7 +35,7 @@ def __(mo):
Let's experiment how solutions to this problem differ for $p=1$,
\[
- \|x\|_1 = \sqrt{|x_1| + |x_2| + \cdots + |x_n|},
+ \|x\|_1 = |x_1| + |x_2| + \cdots + |x_n|,
\]
and $p=2$,