Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

fix for Cannot cast array error when running start_mirt_pipeline.py #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions mirt/mirt_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ def sample_abilities_diffusion_wrapper(args):
# make sure each student gets a different random sequence
id = multiprocessing.current_process()._identity
if len(id) > 0:
np.random.seed([id[0], time.time() * 1e9])
np.random.seed([id[0], int(time.time() * 1e9) % 4294967296])
else:
np.random.seed([time.time() * 1e9])
np.random.seed([int(time.time() * 1e9) % 4294967296])

num_steps = options.sampling_num_steps

Expand Down