From 9c67e6f927d987f7eda9e2d6edd6c14441d96dad Mon Sep 17 00:00:00 2001 From: ltcptgeneral <35508619+ltcptgeneral@users.noreply.github.com> Date: Thu, 29 Nov 2018 12:36:25 -0600 Subject: [PATCH] analysis.py - v 1.0.7.001 changelog: - bug fixes --- data analysis/analysis.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/data analysis/analysis.py b/data analysis/analysis.py index 7f813aca..56f29a37 100644 --- a/data analysis/analysis.py +++ b/data analysis/analysis.py @@ -7,10 +7,12 @@ #number of easter eggs: 2 #setup: -__version__ = "1.0.7.000" +__version__ = "1.0.7.001" #changelog should be viewed using print(analysis.__changelog__) __changelog__ = """changelog: +1.0.7.001: + - bug fixes 1.0.7.000: - added tanh_regression (logistical regression) - bug fixes @@ -687,13 +689,10 @@ def tanh_regression(x, y): def r_squared(predictions, targets): # assumes equal size inputs - out = metrics.r2_score(targets, predictions) - - return out + return metrics.r2_score(targets, predictions) def rms(predictions, targets): # assumes equal size inputs - out = 0 _sum = 0 for i in range(0, len(targets), 1):