From 1ca30fe35ec2907f9e6f8e09214a848d1524066a Mon Sep 17 00:00:00 2001 From: Silviu Marian Udrescu Date: Fri, 15 May 2020 04:23:07 -0400 Subject: [PATCH] Add files via upload --- Code/S_get_symbolic_expr_error.py | 2 -- Code/S_run_bf_polyfit.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Code/S_get_symbolic_expr_error.py b/Code/S_get_symbolic_expr_error.py index 4f792ea..3b0a95d 100644 --- a/Code/S_get_symbolic_expr_error.py +++ b/Code/S_get_symbolic_expr_error.py @@ -1,8 +1,6 @@ # Calculates the error of a given symbolic expression applied to a dataset. The input should be a string of the mathematical expression from get_pareto import Point, ParetoSet -from RPN_to_pytorch import RPN_to_pytorch -from RPN_to_eq import RPN_to_eq from sympy.parsing.sympy_parser import parse_expr import numpy as np import matplotlib.pyplot as plt diff --git a/Code/S_run_bf_polyfit.py b/Code/S_run_bf_polyfit.py index ac3fc03..ca8afa2 100644 --- a/Code/S_run_bf_polyfit.py +++ b/Code/S_run_bf_polyfit.py @@ -92,7 +92,7 @@ def run_bf_polyfit(pathdir,pathdir_transformed,filename,BF_try_time,BF_ops_file_ # run gradient descent of BF output parameters and add the results to the Pareto plot for i in range(len(express)): try: - bf_gd_update = RPN_to_pytorch(pathdir+filename,eqns[i]) + bf_gd_update = RPN_to_pytorch(pathdir,filename,eqns[i]) PA.add(Point(x=bf_gd_update[1],y=bf_gd_update[0],data=bf_gd_update[2])) except: continue @@ -171,7 +171,7 @@ def run_bf_polyfit(pathdir,pathdir_transformed,filename,BF_try_time,BF_ops_file_ # run gradient descent of BF output parameters and add the results to the Pareto plot for i in range(len(express)): try: - bf_gd_update = RPN_to_pytorch(pathdir+filename,eqns[i]) + bf_gd_update = RPN_to_pytorch(pathdir,filename,eqns[i]) PA.add(Point(x=bf_gd_update[1],y=bf_gd_update[0],data=bf_gd_update[2])) except: continue