From 20833b29c134c4ae0e658bdfa29c124ae525cb69 Mon Sep 17 00:00:00 2001 From: art Date: Tue, 18 Feb 2020 19:54:09 -0600 Subject: [PATCH] superscript.py v 0.0.0.002 --- data analysis/superscript.py | 50 +++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/data analysis/superscript.py b/data analysis/superscript.py index 2e4d6fd4..a1902aab 100644 --- a/data analysis/superscript.py +++ b/data analysis/superscript.py @@ -3,10 +3,12 @@ # Notes: # setup: -__version__ = "0.0.0.001" +__version__ = "0.0.0.002" # changelog should be viewed using print(analysis.__changelog__) __changelog__ = """changelog: + 0.0.0.002: + - added simpleloop which is untested until data is provided 0.0.0.001: - created script - added analysis, numba, numpy imports @@ -30,4 +32,50 @@ def main(): pass +def simpleloop(data, tests): # expects 3D array with [Team][Variable][Match] + + return_vector = [] + + for team in teams: + + team_vector = [] + + for variable in teams: + + variable_vector = [] + + for test in tests: + + if(test == "basic" or test == "basic_stats" or test == 0): + + variable_vector.append(an.basic_stats(variable)) + + if(test == "histo" or test == "histo_analysis" or test == 1): + + variable_vector.append(an.histo_analysis(variable)) + + if(test == "sr.lin" or test == "sregression.lin" or test == 2): + + variable_vector.append(an.regression("cpu", range(0, len(variable) - 1), variable, ["lin"])) + + if(test == "sr.log" or test == "sregression.log" or test == 3): + + variable_vector.append(an.regression("cpu", range(0, len(variable) - 1), variable, ["log"])) + + if(test == "sr.exp" or test == "sregression.exp" or test == 4): + + variable_vector.append(an.regression("cpu", range(0, len(variable) - 1), variable, ["exp"])) + + if(test == "sr.ply" or test == "sregression.ply" or test == 5): + + variable_vector.append(an.regression("cpu", range(0, len(variable) - 1), variable, ["ply"])) + + if(test == "sr.sig" or test == "sregression.sig" or test == 6): + + variable_vector.append(an.regression("cpu", range(0, len(variable) - 1), variable, ["sig"])) + +def metricsloop(data): + + pass + main() \ No newline at end of file