Skip to main content

A powerful and flexible neural network library

Project description

PyTulpa

PyTulpa is a powerful and flexible neural network library that provides tools for building and training various types of neural networks, including Liquid Neural Networks (LNNs).

Features

  • Easy-to-use API for creating and training neural networks
  • Support for Liquid Neural Networks (LNNs)
  • Various optimization algorithms (SGD, Adam)
  • Multiple activation functions (tanh, ReLU, sigmoid)
  • Loss functions (MSE, Cross-Entropy)

Installation

You can install PyTulpa using pip: pip install pytulpa

Usage

import numpy as np
from pytulpa import PyTulpa, LNN, Adam, mse

# Create a random dataset
X = np.random.randn(100, 10)
y = np.random.randn(100, 1)

# Create a Liquid Neural Network
model = LNN(input_size=10, hidden_size=20, output_size=1)

# Create an optimizer
optimizer = Adam(learning_rate=0.01)

# Create a PyTulpa instance
pt = PyTulpa()

# Compile the model
pt.compile(model=model, optimizer=optimizer, loss_fn=mse)

# Train the model
history = pt.train(X, y, epochs=100, batch_size=32)

# Make predictions
predictions = pt.predict(X)

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

pytulpa-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytulpa-0.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pytulpa-0.0.1.tar.gz.

File metadata

  • Download URL: pytulpa-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pytulpa-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a92480f6a574593e9e3a362428d6a31a25a5e474decd817b5e227a17ea117b78
MD5 90bfd1726c2de43150622b7aa53e2e8e
BLAKE2b-256 8914ac072e507c36e631cb13f7384062ecafd306b72b30ef6464cc4494d3c7e3

See more details on using hashes here.

File details

Details for the file pytulpa-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pytulpa-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pytulpa-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3df5f901031d87571ace534b47fcfe4a28e410ce240eb4b109e4b76ad33713e3
MD5 1d99bd06b8c6a23c94499b9b7d86cf88
BLAKE2b-256 f0045076a3a9d3d87402a22b80f4d50e4624214090761045099bb20527b02710

See more details on using hashes here.

Supported by

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