MCPcopy Create free account
hub / github.com/YeWR/EfficientZero / normalize

Method normalize

core/ctree/cminimax.cpp:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 float CMinMaxStats::normalize(float value){
32 float norm_value = value;
33 float delta = this->maximum - this->minimum;
34 if(delta > 0){
35 if(delta < this->value_delta_max){
36 norm_value = (norm_value - this->minimum) / this->value_delta_max;
37 }
38 else{
39 norm_value = (norm_value - this->minimum) / delta;
40 }
41 }
42 return norm_value;
43 }
44
45 //*********************************************************
46

Callers 2

consist_loss_funcFunction · 0.80
cucb_scoreFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected