Skip to content

Comments

Refactor DatasetRNN to be subclassable for different target types.#126

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_864300977
Feb 12, 2026
Merged

Refactor DatasetRNN to be subclassable for different target types.#126
copybara-service[bot] merged 1 commit intomainfrom
test_864300977

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Feb 4, 2026

Refactor DatasetRNN to be subclassable for different target types.

Initial classes are categorical, continuous, and mixed. These reproduce the functionality of using the y_type argument to the previous version. DatasetRNNMixed keeps the logic of the current "hybrid" loss -- the intention is to refactor this in a future CL to have separate fields for the continuous and categorical portions of the loss.

This also required a refactor of dataset_list_to_multisubject, to be more careful about merging only lists where the datasets are compatible with each other.

@copybara-service copybara-service bot force-pushed the test_864300977 branch 6 times, most recently from 8a8c77f to 0183cc4 Compare February 9, 2026 14:21
@copybara-service copybara-service bot force-pushed the test_864300977 branch 2 times, most recently from 42bbd13 to fe208f2 Compare February 12, 2026 14:47
Initial classes are categorical, continuous, and mixed. These reproduce the functionality of using the y_type argument to the previous version. DatasetRNNMixed keeps the logic of the current "hybrid" loss -- the intention is to refactor this in a future CL to have separate fields for the continuous and categorical portions of the loss.

This also required a refactor of dataset_list_to_multisubject, to be more careful about merging only lists where the datasets are compatible with each other.

PiperOrigin-RevId: 869193985
@copybara-service copybara-service bot merged commit 39483c5 into main Feb 12, 2026
@copybara-service copybara-service bot deleted the test_864300977 branch February 12, 2026 14:52
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.

1 participant