Skip to main content

OLS_pipeline

A Python package to preprocess data, fit models, and calculate VIF.

Installation

You can install the package using pip:

Usage

import OLS_pipeline.pipeline as OLS_pipe

data_path = "path/to/your/data.csv"

dependent_var = 'Target'
independent_vars = ['Feature1','Feature2']
normalize_cols = ['Feature3', 'Feature4', 'Feature5']
weight_dict = {'Normalized_F3': 0.4, 'Normalized_F4': 0.2, 'Normalized_F5': 0.4}
#Note Normalized_F3=Feature 3 which you input in normalized_cols and weights should be summed up to 1
interaction_pairs = [('Feature_x', 'Feature_y')]#Dot product of both the features

results = OLS_pipe.pipeline(data_path, dependent_var, independent_vars, normalize_cols, weight_dict, interaction_pairs)
fixed_effects_results, random_effects_model, vif_data = results 

Metadata

Release files for PanelOLSPipeline 0.1.1

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

Source distribution (sdist)

Source distribution for PanelOLSPipeline 0.1.1
File Size Uploaded
panelolspipeline-0.1.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PanelOLSPipeline 0.1.1
File Interpreter ABI Platform
PanelOLSPipeline-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / panelolspipeline-0.1.1.tar.gz

Download URL panelolspipeline-0.1.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
94b4bc5d468247e5ce1bdc049e59629640e9052e322a5091858e4cab7423778b
BLAKE2b-256 checksum
How to use checksums
fc2ce5ffd7813f20efd747925b0346d2670737cef33d8a9c6cfa74d5febaf183
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / PanelOLSPipeline-0.1.1-py3-none-any.whl

Download URL PanelOLSPipeline-0.1.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
254d87c86987d219e3e6d67bb203df60e0fc1ff3fdb804b886f2db8a5c96f2bb
BLAKE2b-256 checksum
How to use checksums
155f4b35084fdfd29c36234518c7469d7688e8fc95acbd24cccb8b62336cc1e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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