def call(self, ex): # some algos do not support CSR matrices if ex.__name__.startswith('sorting'): self.skipTest("not supporting CSR") method = 'singlePassCSR' if any( x in ex.__name__ for x in ['low_order_moms', 'covariance']) else 'fastCSR' # cannot use fastCSR ofr implicit als; bug in Intel(R) DAAL? if 'implicit_als' in ex.__name__: method = 'defaultDense' if hasattr(ex, 'dflt_method'): low_order_moms method = ex.dflt_method.replace('defaultDense', 'fastCSR').replace('Dense', 'CSR') return ex.main(readcsv=csr_read_csv, method=method)
def call(self, ex): # some algos do not support CSR matrices if ex.__name__.startswith('sorting'): self.skipTest("not supporting CSR") if any (ex.__name__.startswith(x) for x in ['adaboost', 'brownboost', 'stump_classification', 'gbt_cls_model_create']): self.skipTest("not supporting CSR") method = 'singlePassCSR' if any(x in ex.__name__ for x in ['low_order_moms', 'covariance']) else 'fastCSR' # cannot use fastCSR ofr implicit als if 'implicit_als' in ex.__name__: method = 'defaultDense' # kmeans have no special method for CSR if 'kmeans' in ex.__name__: method = 'randomDense' if hasattr(ex, 'dflt_method'): low_order_moms method = ex.dflt_method.replace('defaultDense', 'fastCSR').replace('Dense', 'CSR') return ex.main(readcsv=csr_read_csv, method=method)
def call(self, ex): return ex.main(readcsv=pd_read_csv)