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

feat: add execution time threshold handling. #133

Merged
merged 4 commits into from
Jun 2, 2023

Conversation

MehdiBC
Copy link
Contributor

@MehdiBC MehdiBC commented Jun 2, 2023

The developer adds to the configuration file the execution time threshold .
Nothing changes in the exploration logic.
After fitting the function, we return the memory that minimizes the cost, with the constraint that the execution time is less than the threshold.

@MehdiBC MehdiBC changed the title chore: add execution time threshold handling. feat: add execution time threshold handling. Jun 2, 2023
@arshiamoghimi arshiamoghimi self-requested a review June 2, 2023 15:30
Comment on lines 21 to 22
mems = np.delete(mems, i)
costs = np.delete(costs, i)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not a safe delete. An example:
Screenshot 2023-06-02 at 8 42 12 AM

import numpy as np
import pandas as pd

from spot.exceptions import NoMemoryLeft
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be

from spot.exceptions.NoMemoryLeft import NoMemoryLeft

I get this error when running the code:
Screenshot 2023-06-02 at 8 47 57 AM

@arshiamoghimi arshiamoghimi merged commit 96302d0 into master Jun 2, 2023
@arshiamoghimi arshiamoghimi deleted the mehdi/execution_time_handling branch June 2, 2023 18:27
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.

3 participants