JuliaDynamics/ComplexityMeasures.jl

Reproducibility for `OrdinalPatternEncoding`

開放

#379 建立於 2024年1月13日

 (3 則留言) (0 個反應) (0 位負責人)Julia (19 個分叉)auto 404
discussion-designgood first issue

倉庫指標

星標
 (79 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Currently, the isless_rand function, which we use as the default value comparator for OrdinalPatternEncoding, will not give reproducible results. This is because we don't provide an rng argument to the rand call.

To solve this, we could either:

  • Force the user to provide their custom lt function, taking care of reproducibility themselves (not preferable IMHO)
  • Include rng as a field to both OrdinalPatternEncoding and OrdinalPatterns, which gets passed on to isless_rand.

Or maybe there's a better way?

貢獻者指南