1from sklearn.model_selection import train_test_split
2from sklearn.neural_network import MLPRegressor
3
4df=pd.read_csv('your_dataset')
5X_train, X_test, y_train, y_test = train_test_split(feature,
6 target,
7 test_size=0.2,
8 random_state=4)
9MLPRegressor.fit(X_trian,y_train)
10y_predicted=MLPRegressor.predict(X_test)
11# use r2 scores for regression or other measurements
12r2_score(y_test,y_predicted)