add support for categorical parameters#449
Closed
JasonKChow wants to merge 1 commit into
Closed
Conversation
Contributor
|
This pull request was exported from Phabricator. Differential Revision: D65779384 |
JasonKChow
added a commit
to JasonKChow/aepsych
that referenced
this pull request
Nov 20, 2024
Summary: Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses. Externally, categorical parameters are strings. Internally, categorical parameters are represented as index parameters (0, nChoices -1) while they are passed to models as one_hot vectored parameters. The index intermediate could be useful in the future for alternative ways to model categorical parameters. Differential Revision: D65779384
6cad20c to
c24bbd9
Compare
Contributor
|
This pull request was exported from Phabricator. Differential Revision: D65779384 |
JasonKChow
added a commit
to JasonKChow/aepsych
that referenced
this pull request
Apr 29, 2025
Summary: Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses. For the server: categorical parameters are strings. For the models, categorical parameters are represented as an discrete index. There's no model that can handle categorical parameters yet. Differential Revision: D65779384
c24bbd9 to
ce22074
Compare
Contributor
|
This pull request was exported from Phabricator. Differential Revision: D65779384 |
JasonKChow
added a commit
to JasonKChow/aepsych
that referenced
this pull request
Apr 29, 2025
Summary: Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses. For the server: categorical parameters are strings. For the models, categorical parameters are represented as an discrete index. There's no model that can handle categorical parameters yet. Differential Revision: D65779384
ce22074 to
af328c8
Compare
Contributor
|
This pull request was exported from Phabricator. Differential Revision: D65779384 |
Summary: Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses. For the server: categorical parameters are strings. For the models, categorical parameters are represented as an discrete index. There's no model that can handle categorical parameters yet. Differential Revision: D65779384
af328c8 to
038bce8
Compare
Contributor
|
This pull request was exported from Phabricator. Differential Revision: D65779384 |
JasonKChow
added a commit
to JasonKChow/aepsych
that referenced
this pull request
Apr 29, 2025
Summary: Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses. For the server: categorical parameters are strings. For the models: categorical parameters are represented as a discrete index. There's no model that can handle categorical parameters yet. Differential Revision: D65779384
JasonKChow
added a commit
to JasonKChow/aepsych
that referenced
this pull request
Apr 29, 2025
Summary: Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses. For the server: categorical parameters are strings. For the models: categorical parameters are represented as a discrete index. There's no model that can handle categorical parameters yet. Differential Revision: D65779384
JasonKChow
added a commit
to JasonKChow/aepsych
that referenced
this pull request
Apr 29, 2025
Summary: Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses. For the server: categorical parameters are strings. For the models: categorical parameters are represented as a discrete index. There's no model that can handle categorical parameters yet. Differential Revision: D65779384
JasonKChow
added a commit
to JasonKChow/aepsych
that referenced
this pull request
Apr 29, 2025
Summary: Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses. For the server: categorical parameters are strings. For the models: categorical parameters are represented as a discrete index. There's no model that can handle categorical parameters yet. Differential Revision: D65779384
JasonKChow
added a commit
to JasonKChow/aepsych
that referenced
this pull request
Apr 29, 2025
Summary: Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses. For the server: categorical parameters are strings. For the models: categorical parameters are represented as a discrete index. There's no model that can handle categorical parameters yet. Differential Revision: D65779384
JasonKChow
added a commit
to JasonKChow/aepsych
that referenced
this pull request
Apr 29, 2025
Summary: Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses. For the server: categorical parameters are strings. For the models: categorical parameters are represented as a discrete index. There's no model that can handle categorical parameters yet. Differential Revision: D65779384
JasonKChow
added a commit
to JasonKChow/aepsych
that referenced
this pull request
Apr 29, 2025
Summary: Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses. For the server: categorical parameters are strings. For the models: categorical parameters are represented as a discrete index. There's no model that can handle categorical parameters yet. Differential Revision: D65779384
Contributor
|
This pull request has been merged in 62f2439. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Added support for categorical parameters. This required changing some server functions to be able to take and give strings as a part of the responses.
Externally, categorical parameters are strings. Internally, categorical parameters are represented as index parameters (0, nChoices -1) while they are passed to models as one_hot vectored parameters. The index intermediate could be useful in the future for alternative ways to model categorical parameters.
Differential Revision: D65779384