diff --git a/data analysis/analysis/__pycache__/analysis.cpython-37.pyc b/data analysis/analysis/__pycache__/analysis.cpython-37.pyc index cf188fbb..103586c2 100644 Binary files a/data analysis/analysis/__pycache__/analysis.cpython-37.pyc and b/data analysis/analysis/__pycache__/analysis.cpython-37.pyc differ diff --git a/data analysis/analysis/analysis.py b/data analysis/analysis/analysis.py index 74d1407e..ca92cdb6 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.11.008" +__version__ = "1.1.11.009" # changelog should be viewed using print(analysis.__changelog__) __changelog__ = """changelog: + 1.1.11.009: + - bug fixes 1.1.11.008: - bug fixes 1.1.11.007: @@ -342,6 +344,10 @@ def regression(device, inputs, outputs, args, loss = torch.nn.MSELoss(), _iterat plys = [] + if power_limit == None: + + power_limit = len(outputs[0]) + 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)