<commit_before>package hex.tree.drf;

import static hex.genmodel.GenModel.getPrediction;
import hex.tree.SharedTreeModel;
import water.Key;
import water.fvec.Chunk;
import water.util.MathUtils;
import water.util.SB;

public class DRFModel extends SharedTreeModel<DRFModel,DRFModel.DRFParameters,DRFModel.DRFOutput> {

  public static class DRFParameters extends SharedTreeModel.SharedTreeParameters {
    int _mtries = -1;
    float _sample_rate = 2f/3f;
    public boolean _build_tree_one_node = false;
    public DRFParameters() {
      super();
      // Set DRF-specific defaults (that differ from SharedTreeModel's defaults)
      _ntrees = 50;
      _max_depth = 20;
      _min_rows = 1;
    }
  }

  public static class DRFOutput extends SharedTreeModel.SharedTreeOutput {
    public DRFOutput( DRF b, double mse_train, double mse_valid ) { super(b,mse_train,mse_valid); }
  }<commit_msg>PUBDEV-455: Use default _min_rows = 10 instead of 1.<commit_after>package hex.tree.drf;

import static hex.genmodel.GenModel.getPrediction;
import hex.tree.SharedTreeModel;
import water.Key;
import water.fvec.Chunk;
import water.util.MathUtils;
import water.util.SB;

public class DRFModel extends SharedTreeModel<DRFModel,DRFModel.DRFParameters,DRFModel.DRFOutput> {

  public static class DRFParameters extends SharedTreeModel.SharedTreeParameters {
    int _mtries = -1;
    float _sample_rate = 2f/3f;
    public boolean _build_tree_one_node = false;
    public DRFParameters() {
      super();
      // Set DRF-specific defaults (that differ from SharedTreeModel's defaults)
      _ntrees = 50;
      _max_depth = 20; //reasonable compromise between speed and accuracy
      _min_rows = 10; //less overfitting than with 1
    }
  }

  public static class DRFOutput extends SharedTreeModel.SharedTreeOutput {
    public DRFOutput( DRF b, double mse_train, double mse_valid ) { super(b,mse_train,mse_valid); }
  }
{'fraction_non_alphanumeric': 0.08272251308900523, 'fraction_numerical': 0.012565445026178011, 'mean_word_length': 4.137096774193548, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4223746', 'n_tokens_mistral': 636, 'n_tokens_neox': 599, 'n_words': 154}