CompML / PRTS

Unofficial Python implementation of "Precision and Recall for Time Series".
https://papers.nips.cc/paper/2018/file/8f468c873a32bb0619eaeb2050ba45d1-Paper.pdf
Apache License 2.0
38 stars 4 forks source link

Implement the '__init__' function of the TimeSeriesPrecision class #8

Closed nocotan closed 3 years ago

nocotan commented 3 years ago

Summary

Implement the __init__ function as follows:


def __init__(self, beta=1.0, alpha=0.0, cardinality="one", bias="flat"):
       """
       docstring
       """

        assert (alpha >= 0) & (alpha <= 1)
        assert beta > 0
        assert cardinality in ["one", "reciprocal", "udf_gamma"]
        assert bias in ["flat", "front", "middle", "back"]

        self.beta = beta
        self.alpha = alpha
        self.cardinality = cardinality
        self.bias = bias

Goal

Make it possible to initialize the TimeSeriesPrecision class.

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.