|
13 | 13 |
|
14 | 14 | package attribute |
15 | 15 |
|
16 | | -// XGBoostObjectiveJSON is xgboost objective param json extracted |
| 16 | +// XGBoostObjectiveDocs is xgboost objective parameter docs extracted |
17 | 17 | // from https://xgboost.readthedocs.io/en/latest/parameter.html |
18 | | -const XGBoostObjectiveJSON = ` |
19 | | -{ |
20 | | - "binary:hinge": "hinge loss for binary classification. This makes predictions of 0 or 1, rather than producing probabilities.", |
21 | | - "binary:logistic": "logistic regression for binary classification, output probability", |
22 | | - "binary:logitraw": "logistic regression for binary classification, output score before logistic transformation", |
23 | | - "multi:softmax": "set XGBoost to do multiclass classification using the softmax objective, you also need to set num_class(number of classes)", |
24 | | - "multi:softprob": "same as softmax, but output a vector of ndata * nclass, which can be further reshaped to ndata * nclass matrix. The result contains predicted probability of each data point belonging to each class.", |
25 | | - "rank:map": "Use LambdaMART to perform list-wise ranking where Mean Average Precision (MAP) is maximized", |
26 | | - "rank:ndcg": "Use LambdaMART to perform list-wise ranking where Normalized Discounted Cumulative Gain (NDCG) is maximized", |
27 | | - "rank:pairwise": "Use LambdaMART to perform pairwise ranking where the pairwise loss is minimized", |
28 | | - "reg:gamma": "gamma regression with log-link. Output is a mean of gamma distribution. It might be useful, e.g., for modeling insurance claims severity, or for any outcome that might be gamma-distributed.", |
29 | | - "reg:logistic": "logistic regression", |
30 | | - "reg:squarederror": "regression with squared loss.", |
31 | | - "reg:squaredlogerror": "regression with squared log loss 1/2[log(pred+1)\u2212log(label+1)]^2", |
32 | | - "reg:tweedie": "Tweedie regression with log-link. It might be useful, e.g., for modeling total loss in insurance, or for any outcome that might be Tweedie-distributed.", |
33 | | - "survival:cox": "Cox regression for right censored survival time data (negative values are considered right censored). Note that predictions are returned on the hazard ratio scale (i.e., as HR = exp(marginal_prediction) in the proportional hazard function h(t) = h0(t) * HR)." |
| 18 | +var XGBoostObjectiveDocs = map[string]string{ |
| 19 | + "binary:hinge": "hinge loss for binary classification. This makes predictions of 0 or 1, rather than producing probabilities.", |
| 20 | + "binary:logistic": "logistic regression for binary classification, output probability", |
| 21 | + "binary:logitraw": "logistic regression for binary classification, output score before logistic transformation", |
| 22 | + "multi:softmax": "set XGBoost to do multiclass classification using the softmax objective, you also need to set num_class(number of classes)", |
| 23 | + "multi:softprob": "same as softmax, but output a vector of ndata * nclass, which can be further reshaped to ndata * nclass matrix. The result contains predicted probability of each data point belonging to each class.", |
| 24 | + "rank:map": "Use LambdaMART to perform list-wise ranking where Mean Average Precision (MAP) is maximized", |
| 25 | + "rank:ndcg": "Use LambdaMART to perform list-wise ranking where Normalized Discounted Cumulative Gain (NDCG) is maximized", |
| 26 | + "rank:pairwise": "Use LambdaMART to perform pairwise ranking where the pairwise loss is minimized", |
| 27 | + "reg:gamma": "gamma regression with log-link. Output is a mean of gamma distribution. It might be useful, e.g., for modeling insurance claims severity, or for any outcome that might be gamma-distributed.", |
| 28 | + "reg:logistic": "logistic regression", |
| 29 | + "reg:squarederror": "regression with squared loss.", |
| 30 | + "reg:squaredlogerror": "regression with squared log loss 1/2[log(pred+1)\u2212log(label+1)]^2", |
| 31 | + "reg:tweedie": "Tweedie regression with log-link. It might be useful, e.g., for modeling total loss in insurance, or for any outcome that might be Tweedie-distributed.", |
| 32 | + "survival:cox": "Cox regression for right censored survival time data (negative values are considered right censored). Note that predictions are returned on the hazard ratio scale (i.e., as HR = exp(marginal_prediction) in the proportional hazard function h(t) = h0(t) * HR).", |
34 | 33 | } |
35 | | -` |
0 commit comments