def rf_balance_classes(ip, port): # Connect to a pre-existing cluster h2o.init(ip, port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/rf_balance_classes.ipynb"), save_and_norun=False)
def demo_deeplearning(ip, port): # Connect to a pre-existing cluster h2o.init(ip, port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/deeplearning.ipynb"), save_and_norun=False)
def not_equal_factor(ip, port): # Connect to a pre-existing cluster h2o.init(ip, port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/not_equal_factor.ipynb"), save_and_norun=False)
def consistency_check(ip, port): try: small = h2o.locate("h2o-py/demos/citi_bike_small.ipynb") except ValueError: small = h2o.locate("h2o-py/demos/citi_bike_small_NOPASS.ipynb") try: large = h2o.locate("h2o-py/demos/citi_bike_large.ipynb") except ValueError: large = h2o.locate("h2o-py/demos/citi_bike_large_NOPASS.ipynb") h2o.ipy_notebook_exec(small, save_and_norun=True) h2o.ipy_notebook_exec(large, save_and_norun=True) s = os.path.basename(small).split('.')[0] + ".py" l = os.path.basename(large).split('.')[0] + ".py" small_list = list(open(s, 'r')) large_list = list(open(l, 'r')) os.remove(h2o.locate(s)) os.remove(h2o.locate(l)) for s, l in zip(small_list, large_list): if s != l: assert s == "data = h2o.import_frame(path=small_test)\n" and \ l != "data = h2o.import_frame(path=large_test)\n", \ "This difference is not allowed between the small and large citibike demos.\nCitibike small: {0}" \ "Citibike large: {1}".format(s,l)
def consistency_check(ip,port): try: small = h2o.locate("h2o-py/demos/citi_bike_small.ipynb") except ValueError: small = h2o.locate("h2o-py/demos/citi_bike_small_NOPASS.ipynb") try: large = h2o.locate("h2o-py/demos/citi_bike_large.ipynb") except ValueError: large = h2o.locate("h2o-py/demos/citi_bike_large_NOPASS.ipynb") h2o.ipy_notebook_exec(small, save_and_norun=True) h2o.ipy_notebook_exec(large, save_and_norun=True) s = os.path.basename(small).split('.')[0]+".py" l = os.path.basename(large).split('.')[0]+".py" small_list = list(open(s, 'r')) large_list = list(open(l, 'r')) os.remove(h2o.locate(s)) os.remove(h2o.locate(l)) for s, l in zip(small_list, large_list): if s != l: assert s == "data = h2o.import_frame(path=small_test)\n" and \ l != "data = h2o.import_frame(path=large_test)\n", \ "This difference is not allowed between the small and large citibike demos.\nCitibike small: {0}" \ "Citibike large: {1}".format(s,l)
def demo_chicago_crimes(ip, port): # Connect to a pre-existing cluster h2o.init(ip, port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/chicago_crimes.ipynb"), save_and_norun=False)
def demo_prostateGBM(ip, port): # Connect to a pre-existing cluster h2o.init(ip, port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/prostate_gbm.ipynb"), save_and_norun=False)
def demo_citibike(ip, port): # Connect to a pre-existing cluster h2o.init(ip, port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/citi_bike_large.ipynb"), save_and_norun=False)
def demo_prostateGBM(ip, port): # Connect to a pre-existing cluster h2o.init(ip, port) # execute ipython notebook h2o.ipy_notebook_exec( h2o.locate("h2o-py/demos/prostate_gbm.ipynb"), save_and_norun=False)
def consistency_check(ip,port): # Connect to h2o h2o.init(ip,port) h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/citi_bike_small.ipynb"),save_and_norun=True) h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/citi_bike_large.ipynb"),save_and_norun=True) small = list(open('citi_bike_small.py', 'r')) large = list(open('citi_bike_large.py', 'r')) os.remove(h2o.locate("h2o-py/tests/testdir_misc/citi_bike_small.py")) os.remove(h2o.locate("h2o-py/tests/testdir_misc/citi_bike_large.py")) for s, l in zip(small, large): if s != l: assert s == "data = h2o.import_frame(path=small_test)\n" and \ l != "data = h2o.import_frame(path=large_test)\n", \ "This difference is not allowed between the small and large citibike demos.\nCitibike small: {0}" \ "Citibike large: {1}".format(s,l)
def demo_citibike(ip, port): # Connect to a pre-existing cluster h2o.init(ip, port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/CitiBike_Demo.ipynb"))
def demo_imputation(ip,port): # Connect to a pre-existing cluster h2o.init(ip,port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/imputation.ipynb"),save_and_norun=False)
def demo_citibike(ip,port): # Connect to a pre-existing cluster h2o.init(ip,port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/citi_bike_large.ipynb"),save_and_norun=False)
def demo_chicago_crimes(ip,port): # Connect to a pre-existing cluster h2o.init(ip,port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/chicago_crimes.ipynb"),save_and_norun=False)
def rf_balance_classes(ip,port): # Connect to a pre-existing cluster h2o.init(ip,port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/rf_balance_classes_demo.ipynb"),save_and_norun=False)
def demo_citibike(ip,port): # Connect to a pre-existing cluster h2o.init(ip,port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/CitiBike_Demo.ipynb"))
def confusion_matrices_binomial(ip,port): # Connect to a pre-existing cluster h2o.init(ip,port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/confusion_matrices_binomial.ipynb"),save_and_norun=False)
def not_equal_factor(ip,port): # Connect to a pre-existing cluster h2o.init(ip,port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/not_equal_factor.ipynb"),save_and_norun=False)
def confusion_matrices_binomial(ip, port): # Connect to a pre-existing cluster h2o.init(ip, port) # execute ipython notebook h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/confusion_matrices_binomial.ipynb"), save_and_norun=False)