Skip to content

Bugfixes for EvaluateModel and MatFileSampler#168

Merged
kathyxchen merged 7 commits intoFunctionLab:masterfrom
kathyxchen:evaluate-model-bugfixes
Jun 7, 2021
Merged

Bugfixes for EvaluateModel and MatFileSampler#168
kathyxchen merged 7 commits intoFunctionLab:masterfrom
kathyxchen:evaluate-model-bugfixes

Conversation

@kathyxchen
Copy link
Copy Markdown
Collaborator

Reference Issues/PRs

Fixes bugs in EvaluateModel use_features_ord functionality (evaluating a model on only a subset of ordered targets) and MatFileSampler, which reset the pointer to what row to sample too early (i.e. supposed to do it when you've sampled all the rows in the matrix)

What does this implement/fix? Explain your changes.

See above

What testing did you do to verify the changes in this PR?

Ran EvaluateModel using MatFileSampler input data on 2 different cases, 1 subsetting chromatin features and 1 using the full set of features predicted by the model.

@kathyxchen kathyxchen requested a review from jzthree June 4, 2021 17:08
Copy link
Copy Markdown
Contributor

@jzthree jzthree left a comment

Choose a reason for hiding this comment

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

This looks good! Maybe just add a sentence in data_sampler doc that if the use_features_ord is specified, the returned target from data_sampler can be optionally containing only the subset of features specified in use_features_ord and ordered in the same order as in features.

@kathyxchen kathyxchen merged commit dba5855 into FunctionLab:master Jun 7, 2021
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