<commit_before>package ai.h2o.automl;


import org.junit.BeforeClass;
import org.junit.Test;
import water.Key;
import water.fvec.Frame;

public class AutoMLTest extends TestUtil {

  @BeforeClass public static void setup() { stall_till_cloudsize(1); }

//  @Test public void histSmallCats() {
//    Frame fr = null;
//    AutoML aml = null;
//    try {
//      fr = parse_test_file(Key.make("a.hex"), "smalldata/iris.csv");
//      aml = new AutoML(Key.<AutoML>make(),"iris_wheader", fr, 4, "", -1, -1, false, null, true);
//      aml.learn();
//    } finally {
//      if(fr!=null)  fr.delete();
//      if(aml!=null) aml.delete();
//    }
//  }
//
//  @Test public void checkMeta() {
//    Frame fr=null;
//    AutoML aml=null;
//    try {
//      fr = parse_test_file(Key.make("a.hex"), "smalldata/iris.csv");
//      aml = new AutoML(Key.<AutoML>make(),"iris_wheader",fr, 4, "", -1, -1, false, null, true);
//      aml.learn();
//
//      // sepal_len column
//      // check the third & fourth moment computations
//      Assert.assertTrue(aml._fm._cols[0]._thirdMoment == 0.17642222222222248);
//      Assert.assertTrue(aml._fm._cols[0]._fourthMoment == 1.1332434671886653);
//
//      // check skew and kurtosis
//      Assert.assertTrue(aml._fm._cols[0]._skew == 0.31071214388181395);
//      Assert.assertTrue(aml._fm._cols[0]._kurtosis == 2.410255837401182);
//    } finally {
//      // cleanup
//      if(fr!=null)  fr.delete();
//      if(aml!=null) aml.delete();
//    }
//  }

  @Test public void SanTanderTest() {
    Frame fr=null;
    AutoML aml=null;
    try {
      aml=AutoML.makeAutoML(Key.<AutoML>make(),"/Users/spencer/Downloads/train.csv.zip", null, "TARGET","MSE", 3600,-1,true,null,true);
      aml.learn();
    } finally {
      // cleanup
      if(aml!=null) aml.delete();
    }
  }
}<commit_msg>All unit tests except one are running, and that's because Spencer didn't make the dataset public.  Yay.<commit_after>package ai.h2o.automl;


import org.junit.BeforeClass;
import org.junit.Test;
import water.Key;
import water.fvec.Frame;

public class AutoMLTest extends TestUtil {

  @BeforeClass public static void setup() { stall_till_cloudsize(1); }

//  @Test public void histSmallCats() {
//    Frame fr = null;
//    AutoML aml = null;
//    try {
//      fr = parse_test_file(Key.make("a.hex"), "smalldata/iris.csv");
//      aml = new AutoML(Key.<AutoML>make(),"iris_wheader", fr, 4, "", -1, -1, false, null, true);
//      aml.learn();
//    } finally {
//      if(fr!=null)  fr.delete();
//      if(aml!=null) aml.delete();
//    }
//  }
//
//  @Test public void checkMeta() {
//    Frame fr=null;
//    AutoML aml=null;
//    try {
//      fr = parse_test_file(Key.make("a.hex"), "smalldata/iris.csv");
//      aml = new AutoML(Key.<AutoML>make(),"iris_wheader",fr, 4, "", -1, -1, false, null, true);
//      aml.learn();
//
//      // sepal_len column
//      // check the third & fourth moment computations
//      Assert.assertTrue(aml._fm._cols[0]._thirdMoment == 0.17642222222222248);
//      Assert.assertTrue(aml._fm._cols[0]._fourthMoment == 1.1332434671886653);
//
//      // check skew and kurtosis
//      Assert.assertTrue(aml._fm._cols[0]._skew == 0.31071214388181395);
//      Assert.assertTrue(aml._fm._cols[0]._kurtosis == 2.410255837401182);
//    } finally {
//      // cleanup
//      if(fr!=null)  fr.delete();
//      if(aml!=null) aml.delete();
//    }
//  }

  @Test public void SanTanderTest() {
    Frame fr=null;
    AutoML aml=null;
    try {
      aml=AutoML.makeAutoML(Key.<AutoML>make(),"smalldata/santander/train.csv.zip", null, "TARGET","MSE", 3600,-1,true,null,true);
      aml.learn();
    } finally {
      // cleanup
      if(aml!=null) aml.delete();
    }
  }
}
{'fraction_non_alphanumeric': 0.19196787148594377, 'fraction_numerical': 0.04605087014725569, 'mean_word_length': 2.578544061302682, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4259954', 'n_tokens_mistral': 1491, 'n_tokens_neox': 1376, 'n_words': 250}