Add p_section in SPTAG SetBuildParam
@@ -11,8 +11,8 @@ class Sptag(BaseANN):
def fit(self, X):
self._sptag = SPTAG.AnnIndex(self._algo, 'Float', X.shape[1])
- self._sptag.SetBuildParam("NumberOfThreads", '32')
- self._sptag.SetBuildParam("DistCalcMethod", self._metric)
+ self._sptag.SetBuildParam("NumberOfThreads", '32', "Index")
+ self._sptag.SetBuildParam("DistCalcMethod", self._metric, "Index")
self._sptag.Build(X, X.shape[0])
def set_query_arguments(self, MaxCheck):
