1syntax = "proto3"; 2 3option cc_enable_arenas = true; 4 5package boosted_trees; 6 7message QuantileConfig { 8 // Maximum eps error when computing quantile summaries. 9 double eps = 1; 10 // Number of quantiles to generate. 11 int64 num_quantiles = 2; 12} 13 14message QuantileEntry { 15 // Value for the entry. 16 float value = 1; 17 // Weight for the entry. 18 float weight = 2; 19 // We need the minimum and maximum rank possible for this entry. 20 // Rank is 0.0 for the absolute minimum and sum of the weights for the maximum 21 // value in the input. 22 float min_rank = 3; 23 float max_rank = 4; 24} 25 26message QuantileSummaryState { 27 repeated QuantileEntry entries = 1; 28} 29 30message QuantileStreamState { 31 repeated QuantileSummaryState summaries = 1; 32} 33