pg-plan-cache-models / trained /metadata.json
nilenpatel's picture
Upload pg_plan_cache models
406cec4 verified
{
"models": {
"cache_advisor": {
"type": "RandomForestClassifier",
"task": "classification",
"classes": [
"high",
"low",
"medium"
],
"accuracy_cv5": 1.0
},
"ttl_recommender": {
"type": "GradientBoostingRegressor",
"task": "regression",
"unit": "seconds",
"mae": 494.56,
"r2": 0.8994
},
"complexity_estimator": {
"type": "GradientBoostingRegressor",
"task": "regression",
"unit": "score (1-100)",
"mae": 5.57,
"r2": 0.9216
}
},
"features": [
"query_length",
"query_type",
"num_tables",
"num_joins",
"num_conditions",
"num_aggregates",
"num_subqueries",
"num_columns",
"has_distinct",
"has_order_by",
"has_group_by",
"has_having",
"has_limit",
"has_offset",
"has_where",
"has_like",
"has_in_clause",
"has_between",
"has_exists",
"has_window_func",
"has_cte",
"has_union",
"has_case",
"has_cast",
"nesting_depth",
"num_and_or",
"num_string_literals",
"num_numeric_literals"
],
"n_features": 28,
"training_samples": 8000,
"test_samples": 1600
}