This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import shutil | |
# Function to read JSON files and extract values | |
def extract_values_from_json(file_path): | |
with open(file_path, 'r') as file: | |
data = json.load(file) | |
if 'values' in data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
x = np.arange(-10.0, 10.0, 0.001) | |
y = x ** 2 + x * 2 + 10 | |
plt.plot(x, y, label='y = x**2') | |
plt.xlabel('x') | |
plt.ylabel('y') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import sys | |
import noise | |
import numpy as np | |
import matplotlib.pyplot | |
if "--seed" in sys.argv: | |
try: | |
seed = int(sys.argv[sys.argv.index("--seed")+1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sympy | |
# DONT REMOVE THIS IS USED IN EVAL() | |
from math import exp, log, sqrt | |
def clear(): | |
os.system('cls' if os.name == 'nt' else 'clear') |