mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-12 22:26:18 +00:00
analysis.py - v 1.0.7.001
changelog: - bug fixes
This commit is contained in:
parent
8d2dedc5a2
commit
9c67e6f927
@ -7,10 +7,12 @@
|
|||||||
#number of easter eggs: 2
|
#number of easter eggs: 2
|
||||||
#setup:
|
#setup:
|
||||||
|
|
||||||
__version__ = "1.0.7.000"
|
__version__ = "1.0.7.001"
|
||||||
|
|
||||||
#changelog should be viewed using print(analysis.__changelog__)
|
#changelog should be viewed using print(analysis.__changelog__)
|
||||||
__changelog__ = """changelog:
|
__changelog__ = """changelog:
|
||||||
|
1.0.7.001:
|
||||||
|
- bug fixes
|
||||||
1.0.7.000:
|
1.0.7.000:
|
||||||
- added tanh_regression (logistical regression)
|
- added tanh_regression (logistical regression)
|
||||||
- bug fixes
|
- bug fixes
|
||||||
@ -687,13 +689,10 @@ def tanh_regression(x, y):
|
|||||||
|
|
||||||
def r_squared(predictions, targets): # assumes equal size inputs
|
def r_squared(predictions, targets): # assumes equal size inputs
|
||||||
|
|
||||||
out = metrics.r2_score(targets, predictions)
|
return metrics.r2_score(targets, predictions)
|
||||||
|
|
||||||
return out
|
|
||||||
|
|
||||||
def rms(predictions, targets): # assumes equal size inputs
|
def rms(predictions, targets): # assumes equal size inputs
|
||||||
|
|
||||||
out = 0
|
|
||||||
_sum = 0
|
_sum = 0
|
||||||
|
|
||||||
for i in range(0, len(targets), 1):
|
for i in range(0, len(targets), 1):
|
||||||
|
Loading…
Reference in New Issue
Block a user