From 7f975b5e7b081499e0b54cf5c03845070fde855f Mon Sep 17 00:00:00 2001 From: art Date: Tue, 18 Feb 2020 20:32:35 -0600 Subject: [PATCH] analysis.py v 1.1.12.003 --- data analysis/analysis/analysis.py | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/data analysis/analysis/analysis.py b/data analysis/analysis/analysis.py index 85d75a53..40c12eac 100644 --- a/data analysis/analysis/analysis.py +++ b/data analysis/analysis/analysis.py @@ -7,10 +7,12 @@ # current benchmark of optimization: 1.33 times faster # setup: -__version__ = "1.1.12.002" +__version__ = "1.1.12.003" # changelog should be viewed using print(analysis.__changelog__) __changelog__ = """changelog: + 1.1.12.003: + - removed depreciated code 1.1.12.002: - removed team first time trueskill instantiation in favor of integration in superscript.py 1.1.12.001: @@ -371,21 +373,6 @@ def regression(ndevice, inputs, outputs, args, loss = torch.nn.MSELoss(), _itera regressions.append(plys) - """ non functional and dep - plys = [] - - if power_limit == None: - - power_limit = len(outputs[0]) - 1 - - for i in range(2, power_limit): - - model = Regression().SGDTrain(Regression.PolyRegKernel(len(inputs),i), torch.tensor(inputs).to(torch.float).to(device), torch.tensor(outputs).to(torch.float).to(device), iterations=_iterations_ply * 10 ** i, learning_rate=lr_ply * 10 ** -i, return_losses=True) - plys.append((model[0].parameters, model[1][::-1][0])) - - regressions.append(plys) - """ - if 'sig' in args: # formula: a sig (b(x + c)) + d | sig() = 1/(1 + e ^ -x) model = Regression().SGDTrain(Regression.SigmoidalRegKernelArthur(len(inputs)), torch.tensor(inputs).to(torch.float).to(device), torch.tensor(outputs).to(torch.float).to(device), iterations=_iterations, learning_rate=lr, return_losses=True)