from sklearn.neural_network import MLPRegressor from sklearn.metrics import mean_absolute_error import numpy as np from sklearn.model_selection import validation_curve from sklearn.datasets import load_iris import matplotlib.pyplot as plt from sklearn.model_selection import KFold np.random.seed(0) plt.style.use('ggplot')