keras-gemini
A Python package that combines the power of Keras with Gemini for natural language-driven neural network building.
Built With
- Python
- Keras
- Gemini API
- NLTK
Getting Started
To get a local copy up and running follow these simple steps.
Prerequisites
- Python 3.x
Installation
pip install keras-gemini
Usage
from keras_gemini import prompt_to_keras
model = prompt_to_keras("Build a 3-layer sequential model")
if model:
model.summary()
Run the Examples
To run these examples, users simply need to navigate to the examples/ directory and run any of the scripts. For example:
python examples/build_basic_model.py
Features
- Natural Language Model Building: Build Keras sequential models by simply describing the desired architecture in natural language.
For example: Build a 3-layer sequential model
-
Automatic Model Compilation: The package automatically compiles the generated Keras model with default settings:
-
optimizer='adam' -
loss='sparse_categorical_crossentropy' -
metrics=['accuracy'] -
Seamless Integration with Gemini: The
KerasGemini()integrates directly into your Gemini chatbot flow, allowing for natural conversational model building.
Upcoming Features (Roadmap)
-
Support for More Layer Types: Add support for a wider range of Keras layers (Convolutional, Recurrent, etc.) to enable building diverse network architectures.
-
Customizable Layer Parameters: Allow users to specify layer parameters (activation functions, number of units, etc.) through natural language prompts.
-
Advanced NLP for Model Understanding: Implement more robust natural language processing techniques to better extract user intent and complex model specifications.
-
Model Training and Evaluation: Provide functionality to train and evaluate the generated Keras models directly within the Gemini conversation.
-
Model Persistence: Allow users to save and load their custom-built models for later use.
-
Interactive Model Building: Enable users to iteratively refine their models by adding or removing layers, modifying parameters, and getting feedback in real-time.
Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License. See License for more information.
Metadata
Release files for keras-gemini 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| keras-gemini-0.1.2.tar.gz | 6.8 kB | Without provenance | Details for keras-gemini-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| keras_gemini-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for keras_gemini-0.1.2-py3-none-any.whl |
Total release size: 13.2 kB
Release files / keras-gemini-0.1.2.tar.gz
| Download URL | keras-gemini-0.1.2.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2e0b760de7787581cf548a8b089b94597574c4442e9d62fcddbb1b63cada850
|
|
BLAKE2b-256 checksum How to use checksums |
b83abecc0b0d68e536136f00acf890dc7ab8a398abbba17c38de497e4dca1d69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|
Release files / keras_gemini-0.1.2-py3-none-any.whl
| Download URL | keras_gemini-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b59394db5f51099055427bd862fbc572ac3675b2d2c1b424a2c7e4b0946538d
|
|
BLAKE2b-256 checksum How to use checksums |
68b61010bbcf0f595c8c75b6a3ac4136ef56fa03c5d54720d49f3cb8dee339eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|
Security for keras-gemini 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.