Skip to content

requirement.txt addition #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

21benniel
Copy link

Summary

This PR adds a requirements.txt file that captures all Python dependencies required to run the notebooks and utility modules in the Heart-Failure Survival Analysis project. Which was quite helpfull to learn the kaplan and Cox regression

Background & Motivation

While executing Kaplan_Meier_Estimates_Survival_Analysis.ipynb we encountered a ModuleNotFoundError: lifelines. A reproducible dependency list will:

  1. Eliminate “works-on-my-machine” issues.
  2. Provide a single command—pip install -r requirements.txt—to recreate the environment.
  3. Pin critical packages to compatible versions, preventing the resolver conflicts we initially saw (e.g. NumPy 2.x vs. StatsModels).

Key Changes

+ requirements.txt   # new file

Pinned Versions

Package Version Reason / Notes
numpy1.26.4Upper-bounded (<2) for StatsModels 0.14.x
pandas2.3.1Latest stable; used by all notebooks
scipy1.13.1Statistical utilities
matplotlib3.10.3Plotting
seaborn0.13.2Advanced visualisations
statsmodels0.14.1OLS & other stats functions
plotly5.22.0Interactive charts (used heavily)
scikit-learn1.4.2ML algorithms & metrics
lifelines0.28.0Survival analysis (Kaplan-Meier, Cox, …)
ipython8.37.0Jupyter kernel runtime
jupyter1.0.0Notebook interface

Request for Review

  • Please verify that the version pins work in your environment.
  • Run the test steps above and confirm notebooks execute end-to-end.
  • Su

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant