Skip to content

Instantly share code, notes, and snippets.

View wamsiv's full-sized avatar
🎯
Focusing

Wamsi Viswanath wamsiv

🎯
Focusing
View GitHub Profile
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.
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
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:
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.
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
# 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