fBench
About#
A collection of benchmark functions:
Installation#
fbench
is available on PyPI for Python 3.8+:
pip install fbench
Examples#
The ackley
function:
>>> import fbench
>>> round(fbench.ackley([1, 1]), 4)
3.6254
Visualize function with FunctionPlotter
:
>>> import matplotlib.pyplot as plt
>>> plotter = fbench.viz.FunctionPlotter(func=fbench.ackley, bounds=[(-5, 5)] * 2)
>>> plotter.plot()
>>> plt.show()
Contributing to fBench#
Your contribution is greatly appreciated! See the following links to help you get started:
License#
fbench
was created by fBench Developers.
It is licensed under the terms of the BSD 3-Clause license.