0 <= X[:, 0] <= 100,
40 * pi <= X[:, 1] <= 560 * pi,
0 <= X[:, 2] <= 1,
1 <= X[:, 3] <= 11.
The output y is created according to the formula:
y(X) = arctan((X[:, 1] * X[:, 2] - 1 / (X[:, 1] * X[:, 3])) / X[:, 0]) + noise * N(0, 1).
- Parameters:
- n_samples : int, default=100
The number of samples.
- noise : float, default=0.0
The standard deviation of the gaussian noise applied to the output.
- random_state : int, RandomState instance or None, default=None
Determines random number generation for dataset noise. Pass an int
for reproducible output across multiple function calls.
See Glossary.
- Returns:
- X : ndarray of shape (n_samples, 4)
The input samples.
- y : ndarray of shape (n_samples,)
The output values.
References
Examples
from sklearn.datasets import make_friedman3
X, y = make_friedman3(random_state=42)
X.shape
(100, 4)
y.shape
(100,)
list(y[:3])
[np.float64(1.54), np.float64(0.956), np.float64(0.414)]