Py

Py-gen-ML – a library to generate robust ML code from a schema

Hacker News

Py-gen-ML – a library to generate robust ML code from a schema

py-gen-ml ( https://jostosh.github.io/py-gen-ml ) is a Python library that aims to simplify the process of configuring machine learning projects. It uses Protobuf schemas to define configurations and then automatically generates code based on those schemas. This includes code for Pydantic base models, patch configurations, sweep configurations, command-line interfaces, and entry points. One of the key benefits of using py-gen-ml is that it reduces the amount of manual work that is required when making changes to configuration schemas and/or values. Atomic code generation guarantees consistency across Pydantic base models, YAML parsing, CLI parsing, sweeps and any other code that is generated. Another benefit of py-gen-ml is that it offers strong typing. This means that the code that is generated is guaranteed to be correctly typed and easier to understand for you, your team, your IDE, and your type checker. Similar to other config frameworks like Hydra, py-gen-ml supports flexible YAML configurations with advanced referencing and variable support within YAML files. In addition, generated JSON schemas can be used to validate YAMLs as you type. py-gen-ml can be installed using pip: > pip install py-gen-ml There is a quick start guide available to help users get started with py-gen-ml. There is also additional documentation that covers topics such as the command-line interface, parameter sweeps, generated factories, and a Cifar 10 example project. In short: using py-gen-ml can help you to manage complex ML projects more efficiently, streamline experiment running and hyperparameter tuning, and reduce the impact of configuration changes on your workflow. The project is still at an early stage, but ready for feedback!

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: supports, started, para · Missing: reddit linkedin, podcasting, created
80%80% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, model, user · Missing: agents, macos, agent
70%70% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: interface, efficient, users · Missing: plus, platform, intuitive
46%46% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
43%43% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: users, para · Missing: mobile apps, ios, personal
38%38% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
11%11% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Sp
Spiral mini-tutorial for ML library authors58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Spiral mini-tutorial for ML library authors

Hacker News1
Po
Polymath: Convert any music-library into a sample-library with ML46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Polymath: Convert any music-library into a sample-library with ML

Hacker News22
Co
Contextual-AI, SAP's first open-source ML library for explainability60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Contextual-AI, SAP's first open-source ML library for explainability

Hacker News3
An
An annotation tool for ML and NLP63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

An annotation tool for ML and NLP

Hacker News76
An
An annotation tool for ML and NLP63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

An annotation tool for ML and NLP

Hacker News5
M2
M2cgen – generate native code from ML models(Sk-learn/XGBoost/LightGBM)64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

M2cgen – generate native code from ML models(Sk-learn/XGBoost/LightGBM)

Hacker News4
Sc
Schemabuf – Generate a protobuf schema from a MySQL database schema53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Schemabuf – Generate a protobuf schema from a MySQL database schema

Hacker News10
Fa
Faster ML Prototyping58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Faster ML Prototyping

Hacker News7
ON
ONNX-Based ML Deployments52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ONNX-Based ML Deployments

Hacker News2
Di
Discover Ongoing ML Competitions46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Discover Ongoing ML Competitions

Hacker News2