We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e14b3da commit 5c02a92Copy full SHA for 5c02a92
two_sample/fixed_run.py
@@ -6,7 +6,11 @@
6
import os
7
import sys
8
9
-import modshogun as sg
+try:
10
+ import modshogun as sg
11
+except ImportError: # new versions just call it shogun
12
+ import shogun as sg
13
+
14
import numpy as np
15
import pandas as pd
16
import progressbar as pb
two_sample/mmd_test.py
@@ -9,7 +9,10 @@
from scipy import linalg, stats
17
if 'OMP_NUM_THREADS' in os.environ:
18
num_threads = int(os.environ['OMP_NUM_THREADS'])
0 commit comments