β¨ Automate Your ML Pipelines with MLFCrafter (Open Source)
Hey Devs! π
I recently built a small open-source Python package called MLFCrafter that helps you build and run ML pipelines faster β no more repetitive boilerplate!
Instead of writing tons of lines to load, clean, scale, train, and evaluate a model, you just chain crafters together.
π What is MLFCrafter?
MLFCrafter is a modular machine learning pipeline framework.
Each step in the pipeline is called a crafter, and you can compose them like building blocks.
Hereβs how it looks in action:
from mlfcrafter import MLFChain, DataIngestCrafter, CleanerCrafter, ScalerCrafter, ModelCrafter, ScorerCrafter, DeployCrafter
chain = MLFChain(
DataIngestCrafter(data_path="data/iris.csv"),
CleanerCrafter(strategy="auto"),
ScalerCrafter(scaler_type="standard"),
ModelCrafter(model_name="random_forest"),
ScorerCrafter(),
DeployCrafter()
)
results = chain.run(target_column="species")
print(f"Test Score: {results['test_score']:.4f}")
Thatβs it β your full ML pipeline is up and running.
βοΈ Features
-
π Load your own dataset easily
-
π§Ό Clean and scale with customizable settings
-
π€ Train a model (logistic regression, random forest, etc.)
-
π Get evaluation metrics
-
π Deploy your pipeline
-
π§ͺ Automate versioning + publishing with GitHub Workflows
-
π Easy to extend with your own custom crafters
π¦ Installation
pip install mlfcrafter
π Links
GitHub: https://github.com/brkcvlk/MLFCrafter
PyPI: https://pypi.org/project/mlfcrafter
π Letβs Connect
This is still early stage and Iβd love feedback, ideas, or contributions.
If you try it out and hit any issues β Iβm here to help!
Thanks for reading! π
Feel free to drop a comment if you find this useful β€οΈ