Training Model
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
"""Physical/harmonic constants and semantic generation version."""
|
||||
import dataclasses, hashlib
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Policy:
|
||||
long_note: float = 2.
|
||||
stopping_note: float = 1.
|
||||
composition_version: str = 'directed-phrases-2'
|
||||
DEFAULT=Policy()
|
||||
def stable_rank(seed, value):
|
||||
return hashlib.sha256((seed + repr(value)).encode()).hexdigest()
|
||||
"""Stable deterministic tie breaking shared with guitar and accompaniment."""
|
||||
import hashlib
|
||||
|
||||
def stable_rank(seed,value):
|
||||
return hashlib.sha256((seed+repr(value)).encode()).hexdigest()
|
||||
|
||||
Reference in New Issue
Block a user