Skip to content

Instantly share code, notes, and snippets.

View wamsiv's full-sized avatar
🎯
Focusing

Wamsi Viswanath wamsiv

🎯
Focusing
View GitHub Profile
@wamsiv
wamsiv / Raw_Pointer_NDArray.ipynb
Created July 24, 2017 20:53
Raw Pointer to GPU ND Array
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import h2ogpuml
import numpy as np
import os
from numba import cuda
from numba.cuda.cudadrv import driver
from time import time
from ctypes import *
def runH2oAiGlm(nFolds, nAlphas, nLambdas, xtrain, ytrain, xtest, ytest, wtrain, write, display, use_gpu):
# Loading packages
import os
import sys
PWD = os.getcwd()
# set up elasticnet path
class_path = os.path.join(PWD, '..')
sys.path.append(class_path)
# set up flask network
def main(args):
nalphas, nlambdas, nfolds, keycol, predcol, table, condition, features = args
# Loading packages
import sys
import os
import os.path
import warnings
warnings.filterwarnings('ignore')
from pprint import pprint
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from mapd import MapD
from mapd import ttypes
from mapd.ttypes import TMapDException
from thrift.protocol import TBinaryProtocol
from thrift.protocol import TJSONProtocol
from thrift.transport import TSocket
from thrift.transport import TTransport
from thrift.transport import THttpClient
class MapDCore:
import h2ogpuml
import numpy as np
from numba import cuda
from numba.cuda.cudadrv import driver
from time import time
from ctypes import *
def runH2oAiGlm(nFolds, nAlphas, nLambdas, xtrain, ytrain, xtest, ytest, wtrain, write, display):
# nFolds, nAlphas, nLambdas = arg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.