Skip to main content

A Python framework for AI

Project description

ape-ai: a Python framework for AI

What is it?

ape-ai is a Python package that provides implementations of common algorithms in artificial intelligence. This package is a personal project, aimed at providing a simple and easy-to-use library for AI enthusiasts, students, and researchers to explore and experiment with various AI techniques. Additionally, this project serves as a learning platform for the developer to study object-oriented programming patterns and testing libraries.

Installation

To install ape-ai, it's not possible to use pip yet.

Usage

ape-ai currently supports the following algorithms:

  • Evolution Strategy (ES)

Here's an example of how to use the ES algorithm to optimize a simple function:

import numpy as np
from ape.optimization import NaiveEvolutionStrategy

# Cost function
quadratic = lambda x: x[0]**2 + x[1]**2

# Parameters
μ = 12
λ = μ//2
iterations = 100

# Algorithm
es = NaiveEvolutionStrategy(μ, λ, n=2)
es.optimize(func=quadratic, iterations=iterations)
mean, _ = es.estimate()

print('estimated minimum:', mean, flush=True)

Contributing

Contributions are welcome! If you want to contribute to ape-ai, please fork the repository and submit a pull request. Make sure to follow the contributing guidelines.

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

ape-ai-0.1.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

ape_ai-0.1.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file ape-ai-0.1.3.tar.gz.

File metadata

  • Download URL: ape-ai-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for ape-ai-0.1.3.tar.gz
Algorithm Hash digest
SHA256 27b028795d3704ce607b2d4fe75dffc1740296650bf8d17810a5f54389785aa1
MD5 be602f8c023805423b2dd4eda2456e91
BLAKE2b-256 2fb51af0b355ebd19205faec6909bf2c23cdfd1b526ae14d56ee8b107f4cc2bb

See more details on using hashes here.

File details

Details for the file ape_ai-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ape_ai-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for ape_ai-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4acac00cd5cc1b5a1f25c5b1e414afd8cf1602d9c7ae5311b596cae77f7763a4
MD5 b2fc63f180da5a1588d3368c9bfec4a4
BLAKE2b-256 519de2191d5ecd54b7d3b4828d7c5407b8f2cb38c7a89cf21e5cb46b889ed3c4

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