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

csv output (headers), partial fix for PB freezing notebook, skipping reshaping #10

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

yahelnachum
Copy link
Collaborator

#5

@yahelnachum yahelnachum changed the title csv output (headers) + partial fix for PB freezing notebook csv output (headers), partial fix for PB freezing notebook, skipping reshaping Oct 17, 2020
@@ -250,8 +250,9 @@ def normalizeAgents(agents):
dataForNormalization = []
pb = ProgressBar(len(agents))
pb.start()
for agent in agents:
pb.check(0, True)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I suspect this fixes some freezing since instead of printing for each loop we are using the underlying chunked updated of the PB class



# In[]:


def reshapeFlattenedTrainingSets(allTrainingSetsFlattened_X, allTrainingSetsFlattened_Y):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed reshaping function since the previous step now outputs a numpy array so we don't have to reshape the list to a numpy array



# In[]:


allTrainingSetsFlattened_X, allTrainingSetsFlattened_Y = flattenTrainingSets(allTrainingSets)
def flattenTrainingSets(allTrainingSets, totalNumberOfTrainingSets):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

rewrote this function so that it outputs a numpy array so we don't have to reshape the list later on

since test sets will only need to be the last `n`
history frames of an agent
currently working on getting testing part
1. getting copy of mask already
2. added ability to binary search backwards a
   mask index
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