Skip to main content

A fast implementation of Particle Swarm Optimization using PyTorch

Project description

Torchswarm

A fast implementation of Particle Swarm Optimization using PyTorch

We support

Variants of Particle Swarm Optimization

We support for all kinds of PSO

Bring your own particle

We allow for getting a custom particle with a different velocity update rule, The Class must have the following methods:

  • __init__
  • move
  • update_velocity

How to define your problem.

Create a class by inheriting torchswarm.functions.Function and an evaluate method.

class XSquare(Function):
    def evaluate(self, x):
        return x**2

Contributors:

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

torchswarm-0.0.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: torchswarm-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for torchswarm-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 006adb65d21cc3173123298e142fbccf613ae616200787b11ecda21cb63ce0a5
MD5 b85446458b6bfdfe9ff14e6beb1829c5
BLAKE2b-256 0be0f9eeeb3c5806ed3c43a3a4f1cb5d8aa894cd50fed832ddecefca9915aefd

See more details on using hashes here.

Supported by

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