Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: LogisticRegressionCV.fit() got an unexpected keyword argument 'groups' #420

Open
ambarion opened this issue Nov 12, 2024 · 0 comments

Comments

@ambarion
Copy link

ambarion commented Nov 12, 2024

Error when execute alpaca_eval --model_outputs 'results/Meta-Llama-3.1-8B-Instruct/model_outputs.json'

File "/home/anaconda3/envs/factory/lib/python3.12/site-packages/alpaca_eval/metrics/glm_winrate.py", line 105, in get_length_controlled_winrate
model = fit_LogisticRegressionCV(
File "/home/anaconda3/envs/factory/lib/python3.12/site-packages/alpaca_eval/metrics/glm_winrate.py", line 354, in fit_LogisticRegressionCV
model.fit(
File "/home/anaconda3/envs/factory/lib/python3.12/site-packages/sklearn/base.py", line 1151, in wrapper
return fit_method(estimator, *args, **kwargs)
TypeError: LogisticRegressionCV.fit() got an unexpected keyword argument 'groups'

https://github.com/tatsu-lab/alpaca_eval/blob/0b4af7601853e718b72a8da6a35460bda3015754/src/alpaca_eval/metrics/glm_winrate.py#L348C13-L348C24
‘groups’ seems to be incompatible with LogisticRegressionCV? How to use it correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant