-
Notifications
You must be signed in to change notification settings - Fork 11
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
Query on Handling Offline Data with scope-rl #25
Comments
I am also struggling with setting the pscores using real-world data. More tutorials and/or documentation for these cases would be greatly appreciated! |
Hi @jupitersh and @pmoran3, Thank you for the question. When the "pscore" is not recorded in the logged data, I recommend using Marginal OPE estimators (e.g., Uehara et al., 20). These estimators first estimate the marginal probability given state and action, and apply importance sampling using the estimated marginal probability. The marginal probability is calculated in the CreateOPEInput class by calling "obtain_whole_inputs" (and by setting "pscore" in the "logged_feedback" to None). Please set "require_weight_prediction=True" and specify the method to estimate marginal importance weight using the "w_function_method" argument. For general instructions and formatting requirements in using real-worl data, please also refer to documentation for handling real world data. I hope this information will be helpful to you. |
@aiueola Thank you for this information. Does this also apply to continuous real-world data? When I set "pscore" to None and call "obtain_whole_inputs," I get an error:
This is how I am initializing the logged_dataset dict and calling obtain_whole_inputs:
|
@aiueola could you provide a more detail jupyter notebook about how to load a custom logged data (without pscore) to train a BCQ (or others) model? it will be very helpful! |
@jupitersh Were you able to calculate the pscores properly for your problem? I am still having issues. |
@jupitersh have you solve this problem? any idea will be helpful |
I am working in the field of reinforcement learning research, particularly in medical applications.
My inquiry is about using pre-collected offline data (encompassing state, action, next state, and reward) for constructing a logged_dataset in scope-rl. I noticed that the documentation mostly focuses on simulated data. However, my dataset is offline and pre-collected, and I'm unsure about the correct approach to define pscore in the logged_dataset for such data.
Could you provide guidance or share best practices on how to manage pscore for offline datasets within scope-rl? Your input would be highly valuable and greatly assist my research in the medical domain.
The text was updated successfully, but these errors were encountered: