Skip to content

Python

Install the Python package from PyPI:

pip install popsregression

popsregression follows scikit-learn estimator conventions. A workflow fits a POPSRegression estimator with feature and target arrays and then requests predictions:

from popsregression import POPSRegression

model = POPSRegression(...)
model.fit(X_train, y_train)
prediction = model.predict(X_test)

The constructor arguments and uncertainty-returning methods depend on the regression setup. Use the package's maintained example for executable code and its API reference for the current signatures.

Open the full Python documentation