Skip to main content

A simple library for testing out AI Algorithms

Project description

Projekt Francium


A package to test out AI Algorithms in Python

Install

pip install git+https://github.com/satyajitghana/ProjektFrancium

Open In Colab

Example Usage

import francium.algorithms.hill_climbing as hc
import francium.core.eval_functions as eval_functions
from francium.core import State

agent = hc.Agent(step_size=1e-1)
env = hc.Environment(x_bounds=(-5.0, 5.0), y_bounds=(-5.0, 5.0), eval_func=eval_functions.sinx_plus_x)
solver = hc.Solver(agent=agent, environment=env)

solver.init_solver(
    init_state=State({
        'x': 4.0,
        'y': 2.0,
        'z': env.evaluation_func(4.0, 2.0)
    })
)

for episode in range(1000):
    trainable = solver.train_step()
    if not trainable:
        break

solver.plot_history()

env.plot_environment()

see notebooks for more examples


Made with 💘 by shadowleaf

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

francium-0.0.3.dev1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

francium-0.0.3.dev1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file francium-0.0.3.dev1.tar.gz.

File metadata

  • Download URL: francium-0.0.3.dev1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for francium-0.0.3.dev1.tar.gz
Algorithm Hash digest
SHA256 fda266e4d3f62b2e1916384fc1a58deef492ea4d2f6ff56fca819368488c196e
MD5 6f6691ae408391c823d60ef45a5eace3
BLAKE2b-256 6442af0b8a60555f6ed13a3f66f343a2bd49a1f28078091d1414210975118c4a

See more details on using hashes here.

File details

Details for the file francium-0.0.3.dev1-py3-none-any.whl.

File metadata

  • Download URL: francium-0.0.3.dev1-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for francium-0.0.3.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9f04162b1f88228f7e5da24b44d7bd6dabf39c99035bf8220e9b94d5fa2a285
MD5 e52a3ae0096ee791fef43d3bd097e0cd
BLAKE2b-256 75c8f72df1a559f41d130744550a6ca1859701e64c60dcaa5917229aa412bdae

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