At the moment, we are allowed to input matrix's with non-zero diagonal's.
And example of this is below.
[
[0, 0.5, 0.5],
[0.1, 0 , 0.9],
[0, 0, 1]
]
This makes little sense, as if this section we selected, the Node would mutate from itself -> itself....
Suggested changes add the following after line 202 in mutators.py
if len(transition_matrix) != 1:
for x in range(0 , len(transition_matrix)):
if transition_matrix[x][x] != 0:
raise ValueError(
f"transition_matrix diagonal must be zero. "
)
At the moment, we are allowed to input matrix's with non-zero diagonal's.
And example of this is below.
[
[0, 0.5, 0.5],
[0.1, 0 , 0.9],
[0, 0, 1]
]
This makes little sense, as if this section we selected, the Node would mutate from itself -> itself....
Suggested changes add the following after line 202 in mutators.py