stanfordmlgroup / ngboost

Natural Gradient Boosting for Probabilistic Prediction
Apache License 2.0
1.64k stars 215 forks source link

class CRPScore not defined? #220

Open rotcx opened 3 years ago

rotcx commented 3 years ago

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

CRPS = CRPScore `

rotcx commented 3 years ago

/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'

ryan-wolbeck commented 3 years ago

@rotcx can you share your code?