mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
updated stuff
This commit is contained in:
parent
f94bf31247
commit
b25983f97c
Binary file not shown.
@ -678,7 +678,7 @@ def tanh_regression(x, y):
|
||||
|
||||
for i in range(len(x)):
|
||||
z = x[i]
|
||||
exec("vals.append(" + eq_str + ")")
|
||||
exec("vals.append(" + eq_str + ")") in globals(), locals()
|
||||
|
||||
_rms = rms(vals, y)
|
||||
r2_d2 = r_squared(vals, y)
|
||||
@ -838,11 +838,11 @@ def basic_analysis(filepath): #assumes that rows are the independent variable an
|
||||
def benchmark(x, y):
|
||||
|
||||
start_g = time.time()
|
||||
generate_data("benchmark_data.csv", x, y, -10, 10)
|
||||
generate_data("data.csv", x, y, -10, 10)
|
||||
end_g = time.time()
|
||||
|
||||
start_a = time.time()
|
||||
basic_analysis("benchmark_data.csv")
|
||||
basic_analysis("data.csv")
|
||||
end_a = time.time()
|
||||
|
||||
return [(end_g - start_g), (end_a - start_a)]
|
||||
|
BIN
data analysis/analysis.pyc
Normal file
BIN
data analysis/analysis.pyc
Normal file
Binary file not shown.
6
data analysis/requirements.txt
Normal file
6
data analysis/requirements.txt
Normal file
@ -0,0 +1,6 @@
|
||||
matplotlib==3.0.2
|
||||
numpy==1.15.4
|
||||
scipy==1.1.0
|
||||
sklearn==0.0
|
||||
torch==0.4.1
|
||||
torchvision==0.2.1
|
Loading…
Reference in New Issue
Block a user