mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-26 17:49:09 +00:00
analysis.py v 1.1.3.001
This commit is contained in:
parent
9175c2921a
commit
fd7ab3a598
@ -7,10 +7,12 @@
|
|||||||
# current benchmark of optimization: 1.33 times faster
|
# current benchmark of optimization: 1.33 times faster
|
||||||
# setup:
|
# setup:
|
||||||
|
|
||||||
__version__ = "1.1.3.000"
|
__version__ = "1.1.3.001"
|
||||||
|
|
||||||
# changelog should be viewed using print(analysis.__changelog__)
|
# changelog should be viewed using print(analysis.__changelog__)
|
||||||
__changelog__ = """changelog:
|
__changelog__ = """changelog:
|
||||||
|
1.1.3.001:
|
||||||
|
- changed glicko2() to return tuple instead of array
|
||||||
1.1.3.000:
|
1.1.3.000:
|
||||||
- added glicko2_engine class and glicko()
|
- added glicko2_engine class and glicko()
|
||||||
- verified glicko2() accuracy
|
- verified glicko2() accuracy
|
||||||
@ -316,7 +318,7 @@ def gliko2(opp_ratings, opp_rd, observations, rating = 1500, rd = 350, vol = 0.0
|
|||||||
|
|
||||||
player.update_player([x for x in opp_ratings], [x for x in opp_rd], observations)
|
player.update_player([x for x in opp_ratings], [x for x in opp_rd], observations)
|
||||||
|
|
||||||
return [player.rating, player.rd, player.vol]
|
return (player.rating, player.rd, player.vol)
|
||||||
|
|
||||||
@jit(forceobj=True)
|
@jit(forceobj=True)
|
||||||
def r_squared(predictions, targets): # assumes equal size inputs
|
def r_squared(predictions, targets): # assumes equal size inputs
|
||||||
|
Loading…
Reference in New Issue
Block a user