How to use the h2o.decide_if_localhost function in h2o

To help you get started, we’ve selected a few h2o examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github h2oai / h2o-2 / py / testdir_single_jvm / test_rf_covtype_train_oobe4.py View on Github external
    @classmethod
    def setUpClass(cls):
        global localhost
        localhost = h2o.decide_if_localhost()
        if (localhost):
            h2o.build_cloud(node_count=1, java_heap_GB=10)
        else:
            h2o_hosts.build_cloud_with_hosts(node_count=1, java_heap_GB=10)
github h2oai / h2o-2 / py / testdir_multi_jvm / test_rf_covtype_train_oobe.py View on Github external
    @classmethod
    def setUpClass(cls):
        global localhost
        localhost = h2o.decide_if_localhost()
        if (localhost):
            h2o.build_cloud(node_count=2, java_heap_GB=7)
        else:
            h2o_hosts.build_cloud_with_hosts(java_heap_GB=10)
github h2oai / h2o-2 / py / testdir_0xdata_only / test_RF_mnist_both.py View on Github external
    @classmethod
    def setUpClass(cls):
        # assume we're at 0xdata with it's hdfs namenode
        global localhost
        localhost = h2o.decide_if_localhost()
        if (localhost):
            h2o.build_cloud(1, java_heap_GB=14)
        else:
            # all hdfs info is done thru the hdfs_config michal's ec2 config sets up?
            h2o_hosts.build_cloud_with_hosts(1, 
                # this is for our amazon ec hdfs
                # see https://github.com/0xdata/h2o/wiki/H2O-and-s3n
                hdfs_name_node='10.78.14.235:9000',
                hdfs_version='0.20.2')
github h2oai / h2o-2 / py / testdir_0xdata_only / test_import_multi_syn_datasets.py View on Github external
    @classmethod
    def setUpClass(cls):
        global localhost
        localhost = h2o.decide_if_localhost()
        if (localhost):
            h2o.build_cloud(3,java_heap_GB=10)
        else:
            h2o_hosts.build_cloud_with_hosts()
github h2oai / h2o-2 / py / testdir_multi_jvm / notest_sigar.py View on Github external
    @classmethod
    def setUpClass(cls):
        localhost = h2o.decide_if_localhost()
        if (localhost):
            h2o.build_cloud(3,sigar=True)
        else:
            h2o_hosts.build_cloud_with_hosts()
github h2oai / h2o-2 / py / testdir_multi_jvm / test_exec_arith_precedence.py View on Github external
    @classmethod
    def setUpClass(cls):
        global SEED, localhost
        SEED = h2o.setup_random_seed()
        localhost = h2o.decide_if_localhost()
        if (localhost):
            h2o.build_cloud(3,java_heap_GB=4)
        else:
            h2o_hosts.build_cloud_with_hosts()
github h2oai / h2o-2 / py / testdir_single_jvm / notest_parse5.py View on Github external
def setUpClass(cls):
        global localhost
        localhost = h2o.decide_if_localhost()
        if (localhost):
            h2o.build_cloud(node_count=1)
        else:
            h2o_hosts.build_cloud_with_hosts(node_count=1)
github h2oai / h2o-2 / py / testdir_0xdata_only / test_hdfs_multi_bad_csv.py View on Github external
    @classmethod
    def setUpClass(cls):
        # assume we're at 0xdata with it's hdfs namenode
        global localhost
        localhost = h2o.decide_if_localhost()
        if (localhost):
            h2o.build_cloud(1, use_hdfs=True, hdfs_version='cdh3', hdfs_name_node='192.168.1.176')
        else:
            h2o_hosts.build_cloud_with_hosts(1, use_hdfs=True, hdfs_version='cdh3', hdfs_name_node='192.168.1.176')
github h2oai / h2o-2 / py / testdir_multi_jvm / test_exec2_int2cat.py View on Github external
    @classmethod
    def setUpClass(cls):
        global SEED, localhost
        SEED = h2o.setup_random_seed()
        localhost = h2o.decide_if_localhost()
        if (localhost):
            h2o.build_cloud(3)
        else:
            h2o_hosts.build_cloud_with_hosts()
github h2oai / h2o-2 / py / testdir_multi_jvm / test_exec2_col_scalar.py View on Github external
    @classmethod
    def setUpClass(cls):
        global SEED, localhost
        SEED = h2o.setup_random_seed()
        localhost = h2o.decide_if_localhost()
        if (localhost):
            h2o.build_cloud(3,java_heap_GB=4)
        else:
            h2o_hosts.build_cloud_with_hosts()