https://github.com/satyajitghana/projektfrancium
A package to test out AI Algorithms in Python
https://github.com/satyajitghana/projektfrancium
ai evolutionary-algorithms genetic-algorithm hill-climbing python
Last synced: about 1 month ago
JSON representation
A package to test out AI Algorithms in Python
- Host: GitHub
- URL: https://github.com/satyajitghana/projektfrancium
- Owner: satyajitghana
- Created: 2020-12-03T08:20:47.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-21T14:23:55.000Z (almost 5 years ago)
- Last Synced: 2024-10-09T09:27:08.431Z (about 1 year ago)
- Topics: ai, evolutionary-algorithms, genetic-algorithm, hill-climbing, python
- Language: Jupyter Notebook
- Homepage:
- Size: 8.58 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Projekt Francium
![]()
---
A package to test out AI Algorithms in Python
## Install
```shell script
pip install git+https://github.com/satyajitghana/ProjektFrancium
```## [](https://colab.research.google.com/github/satyajitghana/ProjektFrancium/blob/master/FranciumColab.ipynb)
## Example Usage
```python
import francium.algorithms.hill_climbing as hc
import francium.core.eval_functions as eval_functions
from francium.core import Stateagent = 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:
breaksolver.plot_history()
env.plot_environment()
```
see `notebooks` for more examples
---
Made with 💘 by shadowleaf