Skip to content

Allow change vocabs for processor that take vocabs#778

Merged
jhnwu3 merged 4 commits intosunlabuiuc:masterfrom
Logiquo:feat-select-2
Jan 15, 2026
Merged

Allow change vocabs for processor that take vocabs#778
jhnwu3 merged 4 commits intosunlabuiuc:masterfrom
Logiquo:feat-select-2

Conversation

@Logiquo
Copy link
Copy Markdown
Collaborator

@Logiquo Logiquo commented Jan 10, 2026

Contributor: Yongda Fan (yongdaf2@illinois.edu)

Contribution Type: Processor

Description
Add retain and remove method to modify the code_vocab in the processors. This should facilitate the PyHealth agent to select or remove particular code it deteremines to be useful or not useful.

Copy link
Copy Markdown
Collaborator

@jhnwu3 jhnwu3 left a comment

Choose a reason for hiding this comment

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

Can we add a def add(self, vocabularies : set[str) operation as well? Just in case?

Understandably, no model can do this (yet). But, I can imagine a future where models simply add another row to the vocabulary embeddings within a model and do some type of continual learning/finetuning in the future as this is an active area of research in many conferences.

@Logiquo Logiquo added the component: processor Contribute a new processor to PyHealth label Jan 13, 2026
@Logiquo Logiquo requested a review from jhnwu3 January 15, 2026 06:36
Copy link
Copy Markdown
Collaborator

@jhnwu3 jhnwu3 left a comment

Choose a reason for hiding this comment

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

lgtm

@jhnwu3 jhnwu3 merged commit bf986e0 into sunlabuiuc:master Jan 15, 2026
1 check passed
@Logiquo Logiquo deleted the feat-select-2 branch January 15, 2026 18:07
racoffey pushed a commit to jburhan/PyHealth that referenced this pull request Apr 21, 2026
* Allow change vocab for a processor

* Add test

* Add `add` method to vocab processors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: processor Contribute a new processor to PyHealth

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants