-
Notifications
You must be signed in to change notification settings - Fork 1
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
Small change to derive_predictors_and_scores
for speed + normalization
#119
Open
PalkaPuri
wants to merge
138
commits into
staging-collab-2
Choose a base branch
from
pp-collab2-upgrade-derive
base: staging-collab-2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
…sResearch/collab-creatures into pp-collab2-pairwise-copying-pred
…ollab-creatures into pp-collab2-pairwise-copying-pred
…sResearch/collab-creatures into pp-collab2-howfarscore
…ollab-creatures into ru-random-hungry-2
Added option to scale values based on empirical CDF |
…uff (collab2 ). (#126) * Some work on the random_foragers notebook and fixing stuff. * Linting + completing the random_foragers notebook. * Finished random_foragers * Interactive plots now should be displayed in HTML * make format * small fixes to random foragers * Some more tweaks + zero-index fixes. * Hungry birds simulation updated. * Minor. * Completed the follower NB. * Saves the samples from each one of the R,H,F to disk, for later plotting in a single figure. * Comparative fig. * Minor. * Make lint and format * Typos * Improved explanations of the predictors and the scores. * Updated the model description in the random notebook. * Minor * Added option for initial positions. Updated RHF. * reviewed random * added toc to followers * fixed followers * Small formulas + model updates * small modification * small fixes, re-ran * fixing save and display in follower * format lint, dilling in hungry --------- Co-authored-by: rfl-urbaniak <rfl.urbaniak@gmail.com>
…/collab-creatures into pp-collab2-upgrade-derive
rfl-urbaniak
requested changes
Oct 3, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pull origin from the current version of staging, make sure you resolve all conflicts and pass all the tests.
rfl-urbaniak
added
status:awaiting response
Awaiting response from creator
and removed
status:WIP
Work-in-progress not yet ready for review
labels
Oct 3, 2024
PalkaPuri
changed the title
Small change to
Small change to Oct 6, 2024
derive_predictors_and_scores
for speedderive_predictors_and_scores
for speed + normalization
PalkaPuri
added
status:awaiting review
Awaiting response from reviewer
and removed
status:awaiting response
Awaiting response from creator
labels
Oct 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
I noticed that generating a combined DF of predictors and scores was taking very long for large datasets (my kernel kept dying). This operation was very compute expensive because we were using
df.merge
which involves searching through column values to find matching rows. However, we can get away with using something simpler likepd.concat
since all predictor/score DataFrames inherit the grid fromlocal_windows
and hence the rows match by design. This should help clear the speed bottleneck.I also updated the function to return eCDF normalized values as an option