Shopify / bevel

Ordinal regression in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adding weights to the regression

CamDavidsonPilon opened this issue · comments

ex:

from bevel import OrderedLogit

w = np.array([1, 2., 3.4, 1.1, 0.5])

orf = OrderedLogit()
orf.fit(X, y, weights=w)

And defaults to an array of 1s if not provided.