Closed nocotan closed 3 years ago
Implement the common function _delta_select as follows:
_delta_select
def _delta_select(self, delta, t, anomaly_length): if delta == "flat": return 1.0 elif delta == "front": return float(anomaly_length - t + 1.0) elif delta == "middle": if t <= anomaly_length / 2.0: return float(t) else: return float(anomaly_length - t + 1.0) elif delta == "back": return float(t) else: raise Exception("Invalid positional bias value")
Make it enable us to select the value of delta.
yyyy / mm / dd
If the parent issue exists, post a link here.
If there are any reference links, they are described here.
Other comments.
Summary
Implement the common function
_delta_select
as follows:Goal
Make it enable us to select the value of delta.
Todo
Deadline
yyyy / mm / dd
Parent issue
If the parent issue exists, post a link here.
References
If there are any reference links, they are described here.
Notes
Other comments.