Koza Quintic

dcgpy.generate_koza_quintic()

Generates the data for the classic Koza quintic regression problem.

\[y = x^5 - 2 x^3 + x\]

x is sampled in ten equally spaced points in [-3,3].

Returns

A tuple containing the points (2D NumPy float array) and labels (2D NumPy float array).

Examples:

>>> from dcgpy import *
>>> import matplotlib.pyplot as plt
>>> X, Y = generate_koza_quintic()
>>> plt.plot(X,Y, '.')