<jupyter_start><jupyter_text>Relu function![image.png](attachment:image.png)<jupyter_code># MLP Regression model
from sklearn.neural_network import MLPRegressor

X_train = x_train.values
X_test = x_test.values


modelReg = MLPRegressor(hidden_layer_sizes = 50,
                        activation = 'relu',
                        solver = 'adam',
                        learning_rate_init = 0.005,
                        max_iter=1000,
                        random_state=0, 
                        verbose = 'True')

modelReg.fit(X_train.reshape((-1,1)), y_train)
modelReg.predict(X_test.reshape((-1, 1)))

modelReg.score(X_test.reshape((-1, 1)), y_test)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11465892597968069, 'fraction_numerical': 0.02467343976777939, 'mean_word_length': 2.349514563106796, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '295542', 'license': 'MIT', 'n_tokens_mistral': 247, 'n_tokens_neox': 222, 'n_words': 33, 'path': 'notebooks/.ipynb_checkpoints/ANNs_Instructor-checkpoint.ipynb', 'repo_name': 'abdelrahman-ayad/MiCM-introML-W21', 'size': '689'}