We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ffdd85 commit 09fc551Copy full SHA for 09fc551
scripts/variants_generation.py
@@ -1,6 +1,5 @@
1
import csv
2
import numpy as np
3
-import sklearn.utils as skl_utils
4
from xlsxwriter.workbook import Workbook
5
6
NUM_TASKS = 3
@@ -17,7 +16,8 @@
17
16
for j in range(int(NUM_STUDENTS / NUM_VARIANTS) + 1):
18
list_of_variants.append(np.arange(NUM_VARIANTS) + 1)
19
for variant in list_of_variants:
20
- shuffled_list_of_variants.append(skl_utils.shuffle(variant))
+ np.random.shuffle(variant)
+ shuffled_list_of_variants.append(variant)
21
result_variants = np.concatenate(shuffled_list_of_variants)
22
list_of_tasks.append(result_variants[:NUM_STUDENTS])
23
str_of_print += '%d,'
0 commit comments