Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLM Learning Project

This is a learning project to understand Generalised Linear Models (GLM) using Python.

I Built a GLM Data Science Pipeline in Python

→ Watch it directly on YouTube

Run and validate

Use Python 3.12, create a virtual environment, and install requirements.txt. From the repository root, run python -m unittest discover -s tests to exercise fitting, four diagnostic plots and model export on seeded synthetic test data. For a headless environment, set MPLBACKEND=Agg.

python src/glm_pipeline.py reads data/sample.csv and writes models/glm_model.pickle. The bundled three-row CSV only illustrates the schema: it is insufficient for the four model parameters and is rejected explicitly. Provide a larger dataset with the same columns before running the pipeline. Having more rows than parameters is only a basic guard; assess separation, rank, convergence and model assumptions before interpreting results.

The notebook is an unimplemented placeholder. Dependencies are unpinned, so installation is not yet reproducible across time. These examples demonstrate software behaviour, not validated real-world credit-risk predictions.

Who Built This Learning Project

Pierre-Henry Soria — An Extremely Passionate Data Scientist who loves automating content creation efficiently with meaningful data! Also a true roquefort 🧀, ristretto ☕️, and dark chocolate lover! 😋

Enthusiast of YouTube, AI, learning, and researching! Find me at pH7.me

Do you enjoy this project? Buy me a coffee (spoiler: I love almond extra-hot flat white coffees).

Pierre-Henry Soria

@phenrysay YouTube Tech Videos pH-7 BlueSky

📄 License

Distributed under the MIT License 🎉 Happy hacking! 🤠

About

This is a learning project to understand Generalised Linear Models (GLM) such as logistic regression using Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages