Skip to main content

A Python package that combines the power of Keras with Gemini for natural language-driven neural network building.

Project description

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the Apache 2.0 License. See License for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keras-gemini-0.1.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

keras_gemini-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file keras-gemini-0.1.0.tar.gz.

File metadata

  • Download URL: keras-gemini-0.1.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for keras-gemini-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7458ac04d7b96bbaac4e3535680fc2775f82d78cad982290f0bb6db4414a3640
MD5 a8ea411e21d2cdc00f6f49835fb22938
BLAKE2b-256 591041e2c3a625a2188dea330efca56d39b35a2effb03a016d9e679fbabde8b2

See more details on using hashes here.

File details

Details for the file keras_gemini-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for keras_gemini-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e322586c569a3dd789bdd8cdac5410bbd7a8529ac54506cea1b4bc115c416363
MD5 917c41c2f8459899870299887c97e0e4
BLAKE2b-256 07a1354fc2434c5ad60b89e8dae00e939107a97d164cef9c6d48c13309b52c6e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page