RubyGems Navigation menu

grydra 1.0.0

grydra is a Ruby library for creating, training, and experimenting with neural networks. It includes neuron and layer classes, multiple modern activation functions (Tanh, ReLU, Leaky ReLU, Sigmoid, Swish, GELU), regularization techniques (Dropout, L1, L2), weight initialization (Xavier, He), data normalization (Z-Score, Min-Max), synthetic data generation, and simplified PCA. It offers evaluation metrics (MSE, MAE, accuracy, F1, confusion matrix, AUC-ROC), a configurable Adam optimizer, advanced training features like mini-batch, early stopping, and learning rate decay, as well as cross-validation and hyperparameter search. Furthermore, it allows visualizing architectures in ASCII or exporting them to Graphviz, working with text processing (binary vectorization and TF-IDF), and saving/loading models along with their vocabulary. It includes a simplified interface (EasyNetwork) for quickly training with numerical data, hashes, or text.

Gemfile:
=

install:
=

Versions:

  1. 2.0.1 November 27, 2025 (37.5 KB)
  2. 1.0.0 November 15, 2025 (24 KB)
  3. 0.2.0 August 15, 2025 (22.5 KB)
  4. 0.1.9 August 07, 2025 (15 KB)
  5. 0.1.8 August 06, 2025 (13.5 KB)
Show all versions (14 total)

Owners:

Pushed by:

Authors:

  • Angel Gabriel García Razo

SHA 256 checksum:

=

Total downloads 2,237

For this version 207

Version Released:

License:

GPL-3.0-or-later

Required Ruby Version: >= 2.7.0

New versions require MFA: true

Links: