Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
sortedl1 is a python package for Sorted L-One Penalized Estimation (SLOPE).
The current release can be installed from PyPI by running
pip install sortedl1
You can also install the latest development version via pip by calling
pip install git+https://github.com/jolars/sortedl1
Alternatively, you can clone the repository and install the package locally by running
pip install .
Installing from source requires a C++17 compatible compiler.
Estimators in sortedl1 are compatible with the scikit-learn interface.
import numpy as np
from numpy.random import default_rng
from sortedl1 import Slope
# Generate some random data
n = 100
p = 3
seed = 31
rng = default_rng(seed)
x = rng.standard_normal((n, p))
beta = rng.standard_normal(p)
y = x @ beta + rng.standard_normal(n)
# Fit the model
model = Slope(alpha=0.1)
model.fit(x, y)
# Print the coefficients
print(model.coef_)
The backbone of the package is written in C++ and developed in a separate repository at https://github.com/jolars/libslope. So if you have any issues with the package other than such that are specific to the python interface, please report them there. But feel free to request features here.
When writing commit messages, please use the conventional commits format.
sortedl1 uses semantic versioning.
FAQs
Sorted L-One Penalized Estimation
We found that sortedl1 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.