ngboost icon indicating copy to clipboard operation
ngboost copied to clipboard

class CRPScore not defined?

Open rotcx opened this issue 3 years ago • 2 comments

` class CRPScore(Score): """ Generic class for the continuous ranked probability scoring rule. """

CRPS = CRPScore `

rotcx avatar Jan 21 '21 09:01 rotcx

/usr/local/bin/python3.7 ng/ngboost/examples/simulations/regression_sim.py Traceback (most recent call last): File "ng/ngboost/ngboost/distns/distn.py", line 45, in implementation return {S.bases[-1]: S for S in scores}[Score] KeyError: <ngboost.scores.CRPScore object at 0x11dbc26d0>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "ng/ngboost/examples/simulations/regression_sim.py", line 45, in verbose_eval=100, File "ng/ngboost/ngboost/ngboost.py", line 63, in init self.Manifold = manifold(Score, Dist) File "ng/ngboost/ngboost/manifold.py", line 12, in manifold class Manifold(Distribution.implementation(Score), Distribution): File "ng/ngboost/ngboost/distns/distn.py", line 48, in implementation f"The scoring rule {Score.name} is not " AttributeError: 'CRPScore' object has no attribute 'name'

rotcx avatar Jan 21 '21 10:01 rotcx

@rotcx can you share your code?

ryan-wolbeck avatar Jan 26 '21 23:01 ryan-wolbeck