예제 #1
0
파일: pca.py 프로젝트: tusharkalecam/cuml
    def _func_create_model(sessionId, dfs, **kwargs):
        try:
            from cuml.decomposition.pca_mg import PCAMG as cumlPCA
        except ImportError:
            raise Exception("cuML has not been built with multiGPU support "
                            "enabled. Build with the --multigpu flag to"
                            " enable multiGPU support.")

        handle = worker_state(sessionId)["handle"]
        return cumlPCA(handle=handle, **kwargs), dfs
예제 #2
0
파일: pca.py 프로젝트: vinaydes/cuml
 def _create_pca(handle, datatype, **kwargs):
     from cuml.decomposition.pca_mg import PCAMG as cumlPCA
     return cumlPCA(handle=handle, output_type=datatype, **kwargs)