Is it possible to use keyHash without the random seed per MATLAB session?

조회 수: 5 (최근 30일)
Joris
Joris 2025년 4월 17일
댓글: Joris 2025년 4월 18일
We have recently discovered the keyHash function, which would simplify our code quiet a bit. However, this function has the property that results will not be reproducible over MATLAB sessions or parallel workers. For our needs we need it to be reproducible over the parallel workers. Is there potentially a way that we can use the keyHash function without the random seed per MATLAB session behavior.

답변 (1개)

Mike Croucher
Mike Croucher 2025년 4월 17일
I'm afraid not, can you tell us more about your workflow?
When you look across various other languages, no one seems to guarantee reproducible hashes between sessions.
  댓글 수: 1
Joris
Joris 2025년 4월 18일
We currently use this to compress the keys for a dictionary, which we like to have reusable over the parallel workers.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by