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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |