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

human demo collection during online interaction #1444

Merged
merged 8 commits into from
Apr 3, 2023

Conversation

tomsilver
Copy link
Collaborator

this is hacky, but addressing root issues (#1443) will require a lot more work. a better way to implement this would be to have the teacher and the student interacting in the same environment. that's certainly what we will want to do in the real world.

I tested this through the online bridge policy learning branch.

@@ -29,7 +29,6 @@ def test_online_nsrt_learning_approach():
"num_test_tasks": 3,
"explorer": "random_options",
"online_learning_max_novelty_count": float("inf"),
"online_learning_lifelong": True
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i'm removing this because I think there's a separate bug: #1445

@tomsilver tomsilver marked this pull request as ready for review March 29, 2023 23:55
Copy link
Member

@NishanthJKumar NishanthJKumar left a comment

Choose a reason for hiding this comment

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

Looks mostly good! Just left a minor question about a choice you made in the Teacher class; I'd like to understand before granting approval.

@@ -909,6 +909,9 @@ def copy(self) -> State:
class LoggingMonitor(abc.ABC):
"""Observes states and actions during environment interaction."""

def reset(self, train_or_test: str, task_idx: int) -> None:
"""Called when the monitor starts a new episode."""

Copy link
Member

Choose a reason for hiding this comment

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

did we really mean to do nothing here? If so, could you leave a comment explaining why and also use a pass statement?

predicators/teacher.py Show resolved Hide resolved
@NishanthJKumar NishanthJKumar self-requested a review April 3, 2023 23:17
Copy link
Member

@NishanthJKumar NishanthJKumar left a comment

Choose a reason for hiding this comment

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

LGTM!

@tomsilver tomsilver enabled auto-merge (squash) April 3, 2023 23:24
@tomsilver tomsilver merged commit 134ee07 into master Apr 3, 2023
@tomsilver tomsilver deleted the teacher-student-interaction branch April 3, 2023 23:33
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