Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

SimmulatedAnnealingPrune inifinite loop #4527

Closed
duda1202 opened this issue Feb 2, 2022 · 1 comment
Closed

SimmulatedAnnealingPrune inifinite loop #4527

duda1202 opened this issue Feb 2, 2022 · 1 comment

Comments

@duda1202
Copy link

duda1202 commented Feb 2, 2022

Describe the issue:

Environment:

  • NNI version: 2.6
  • Training service (local|remote|pai|aml|etc):remote
  • Client OS: Ubuntu 18
  • Server OS (for remote mode only): Ubuntu 18
  • Python version: 3.6.9
  • PyTorch/TensorFlow version: PyTorch 1.8.1+cu111
  • Is conda/virtualenv/venv used?: no
  • Is running in Docker?: yes

Configuration:

  • Experiment config (remember to remove secrets!):
  • Search space:

Log message:

  • nnimanager.log:
  • dispatcher.log:
  • nnictl stdout and stderr:

How to reproduce it?:

I would like to know the function of :

                else:
                    delta_E = np.abs(evaluation_result -
                                     self._current_performance)
                    probability = math.exp(-1 * delta_E /
                                           self._current_temperature)
                    if np.random.uniform(0, 1) < probability:
                        self._current_performance = evaluation_result
                        self._sparsities = sparsities_perturbated
                        break

I get probability values between 1e-11 and 1e-7 and it never breaks from the loop to the next iteration. And I have to restart the script

@duda1202
Copy link
Author

duda1202 commented Feb 2, 2022

I understand now that if you use other metrics that are not between 0-1, the probability values are too low and it will never end the loop. So, if you use RMSE in mm for example, probability values can be too low. Be sure to change it to fit this code.

@duda1202 duda1202 closed this as completed Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant