We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a8487e commit 7b334cfCopy full SHA for 7b334cf
1 file changed
turftopic/models/ctm.py
@@ -1,6 +1,5 @@
1
import math
2
import random
3
-import sys
4
from typing import Optional, Union
5
6
import numpy as np
@@ -211,7 +210,7 @@ def fit(
211
210
status.update("Extracting terms.")
212
document_term_matrix = self.vectorizer.fit_transform(raw_documents)
213
console.log("Term extraction done.")
214
- seed = self.random_state or random.randint(0, sys.maxint - 1)
+ seed = self.random_state or random.randint(0, 10_000)
215
torch.manual_seed(seed)
216
pyro.set_rng_seed(seed)
217
device = torch.device(
0 commit comments