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

Enhancement related to TFRecords #236

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Enhancement related to TFRecords #236

merged 2 commits into from
Mar 26, 2024

Conversation

RukuangHuang
Copy link
Collaborator

This PR allows TFRecords/tf.data.Dataset to be passed as inputs to several methods including:

  • model.set_regularizers
  • obs_mod.set_dev_parameters_initializer
  • hmm.Model.dual_estimation
  • dynemo.Model.dual_estimation

@RukuangHuang RukuangHuang added the enhancement New feature or request label Mar 26, 2024
@cgohil8
Copy link
Collaborator

cgohil8 commented Mar 26, 2024

Can you update the docstring for models.dynemo.Model.dual_estimation

@@ -142,6 +142,22 @@ def _make_example(sequence):
writer.write(_make_example(sequence))


def _validate_tf_dataset(dataset):
"""Check if the input is a valid TensorFlow dataset."""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be good to add a 'Parameters' and 'Returns' section to this docstring

@RukuangHuang RukuangHuang merged commit 1143323 into main Mar 26, 2024
1 check passed
@RukuangHuang RukuangHuang deleted the tfrecord_enhance branch March 26, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug with hive.model.set_dev_parameters_initializer when TF Dataset is passed
2 participants