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

add PRDC #431

Merged
merged 4 commits into from
Nov 8, 2024
Merged

add PRDC #431

merged 4 commits into from
Nov 8, 2024

Conversation

liyc-ai
Copy link
Contributor

@liyc-ai liyc-ai commented Nov 7, 2024

Add Implementation of PRDC, arXiv link: https://arxiv.org/abs/2306.06569

Copy link
Owner

@takuseno takuseno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR! This looked like a nice addition to d3rlpy 😄 I found a dependency problem as I commented. Please take a look at that. There might be trivial code changes that I would add. But, that's my job after we merge this PR. Thanks again!


import numpy as np
import torch
from scipy.spatial import KDTree
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not used anywhere.

setup.py Outdated
@@ -43,6 +43,7 @@
"colorama",
"dataclasses-json",
"gymnasium>=1.0.0",
"scipy",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe what you need here is scikit-learn instead of scipy.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks to your careful review. I have made the corresponding changes.

Copy link
Contributor Author

@liyc-ai liyc-ai Nov 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, I've also fix errors from running ./scripts/lint.

@liyc-ai liyc-ai requested a review from takuseno November 8, 2024 05:15
Copy link
Owner

@takuseno takuseno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for the update!

@takuseno takuseno merged commit 8c68ea6 into takuseno:master Nov 8, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants