Main Page: Diferență între versiuni

De la Universitas MediaWiki
Fără descriere a modificării
Fără descriere a modificării
Linia 1: Linia 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")

Versiunea de la data 21 decembrie 2022 09:28

MediaWiki has been installed.

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

Consult the User's Guide for information on using the wiki software.

Getting started