Skip to content

Commit

Permalink
docs: polish readme a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Dec 11, 2023
1 parent 0e236fe commit 4cceb1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ from numpy.random import default_rng

from sortedl1 import Slope

# Generate some random data
n = 100
p = 3

Expand All @@ -30,9 +31,11 @@ x = rng.standard_normal((n, p))
beta = rng.standard_normal(p)
y = x @ beta + rng.standard_normal(n)

model = Slope()
# Fit the model
model = Slope(alpha=0.1)
model.fit(x, y)

# Print the coefficients
print(model.coef_)
```

Expand Down

0 comments on commit 4cceb1b

Please sign in to comment.