# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import numpy as np
import matplotlib.pyplot as plt

# +
error1 = np.load("error_save_La_2D_w50_poly.npy")
error1 = error1.reshape(500,100)
error1 = np.average(error1,1)
plt.plot(np.log10(error1),label="x+x^2")

error2 = np.load("error_save_La_2D_w50_relu3.npy")
error2 = error2.reshape(500,100)
error2 = np.average(error2,1)
plt.plot(np.log10(error2),label="relu3")

error3 = np.load("error_save_La_2D_w50_poly_sin.npy")
error3 = error3.reshape(500,100)
error3 = np.average(error3,1)
plt.plot(np.log10(error3),label="x+x^2+sin(x)")

error3 = np.load("error_save_La_2D_w50_poly_sin_gaussian.npy")
error3 = error3.reshape(500,100)
error3 = np.average(error3,1)
plt.plot(np.log10(error3),label="x+x^2+sin(x)+gaussian")

error4 = np.load("error_save_La_2D_w50_poly_relu.npy")

error4 = error4.reshape(500,100)
error4 = np.average(error4,1)
plt.plot(np.log10(error4),label="x+x^2+relu(x)")

error5 = np.load("error_save_La_2D_w50_poly_relu3.npy")

error5 = error5.reshape(500,100)
error5 = np.average(error5,1)
plt.plot(np.log10(error5),label="x+x^2+relu(x)**3")

plt.legend()
plt.title("regular")
# -



StarcoderdataJupyterScriptsDedupFiltered