Skip to main content

stepshift

Stepshift is a package that implements the stepshifting algorithm described in appendix A of
Hegre et al. (2020).

Installation

Stepshift is currently only distributed as a source distribution, which means that the end user needs a C compiler. This means that OSX users need to have Xcode installed on their system before proceeding. In addition, the numpy requirement is quite strict, since stepshift uses the Numpy C API via Cython.

Install by running:

pip install stepshift

Usage

Stepshift has a module called stepshift.views which contains a class called StepshiftedModels. This class wraps the stepshifting procedure, exposing a simple, Scikit-Learn-like (but not equivalent) API. The model takes three arguments: A scikit learn estimator, a list containing integers, which denotes the steps, and a string variable which is the name of the dependent variable:

from sklearn.linear_model import LogisticRegression
from stepshift.views import StepshiftedModels

mdl = StepshiftedModels(LogisticRegression(),[1,2,3,4,5,6,7,8],"outcome")

Metadata

Release files for stepshift 2.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stepshift 2.2.6
File Size Uploaded Provenance
stepshift-2.2.6.tar.gz 166.2 kB Without provenance Details

Release files / stepshift-2.2.6.tar.gz

Download URL stepshift-2.2.6.tar.gz
Size 166.2 kB
Tags Source
SHA-256 checksum
How to use checksums
398681a585c44eb056612b009ad0e3f6d48eb6a9be36f7fc911c8c0dd91af048
BLAKE2b-256 checksum
How to use checksums
c8fa29c737319bffc9defb1d86a2d0a4caa8b2780ace0abcf11ee2f5ee1d8126
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.18

Security for stepshift 2.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page