analysis.py - v 1.0.7.001

changelog:
	- bug fixes
This commit is contained in:
ltcptgeneral 2018-11-29 12:36:25 -06:00
parent 8d2dedc5a2
commit 9c67e6f927

View File

@ -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):