Pagina principală: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<math display="inline">{dy \over dx} + {dy \over dx} </math><strong>MediaWiki has been installed.</strong><syntaxhighlight lang="python3"> | <math display="inline">{dy \over dx} + {dy \over dx} </math><strong>MediaWiki has been installed.</strong><syntaxhighlight lang="python3" line="1"> | ||
def sequence_generator_unique(instance_len, ploidy, no_subsets): | def sequence_generator_unique(instance_len, ploidy, no_subsets): | ||
sequence = np.zeros((ploidy, instance_len), dtype="intp") | sequence = np.zeros((ploidy, instance_len), dtype="intp") |
Revision as of 09:28, 21 December 2022
MediaWiki has been installed.<syntaxhighlight lang="python3" line="1"> def sequence_generator_unique(instance_len, ploidy, no_subsets):
sequence = np.zeros((ploidy, instance_len), dtype="intp") subsets = np.random.permutation(no_subsets) for p in range(ploidy): for i in range(no_subsets): sequence[p][i] = subsets[i] for i in range(no_subsets,instance_len): sequence[p][i] = np.random.randint(no_subsets) return sequence
</syntaxhighlight>Consult the User's Guide for information on using the wiki software.