Skip to content

Instantly share code, notes, and snippets.

@nomoa
Created August 22, 2019 14:41
Show Gist options
  • Select an option

  • Save nomoa/6cd4bf7f44b23859142cce7622c833b9 to your computer and use it in GitHub Desktop.

Select an option

Save nomoa/6cd4bf7f44b23859142cce7622c833b9 to your computer and use it in GitHub Desktop.
suggest explain
Array
(
[value] => 8225100
[description] => Convert to an integer score: 0.82251003228174 * 10000000
[details] => Array
(
[0] => Array
(
[value] => 0.82251003228174
[description] => Weighted sum of doc quality score and popularity
[details] => Array
(
[popularity] => Array
(
[value] => 0.30302951280122
[description] => popularity * weight / total; popularity = 1.0606032948043, weight = 0.4, total = 1.4
[details] => Array
(
[0] => Array
(
[value] => 1.0606032948043
[description] => log(1+(popularity*max_docs), pop_logbase); popularity = 0.00042462845010616, max_docs = 76, pop_logbase = 1.0304
[details] => Array
(
[pop_logbase] => Array
(
[value] => 1.0304
[description] => 1+popularity_max*max_docs; popularity_max = 0.0004, max_docs = 76
)
)
)
)
)
[page_quality] => Array
(
[value] => 0.51948051948052
[description] => popularity * weight / total; popularity = 0.72727272727273, weight = 1, total = 1.4
[details] => Array
(
[0] => Array
(
[value] => 0.72727272727273
[description] => score+(((1-score)/2)*boost); score = 0.72727272727273, boost = 0
[details] => Array
(
[0] => Array
(
[value] => 0.72727272727273
[description] => weighted sum of document metadata
[details] => Array
(
[0] => Array
(
[value] => 0.54545454545455
[description] => incoming_links_normalized * weight / total; incoming_links_normalized = 1, weight = 0.6, total = 1.1
[details] => Array
(
[0] => Array
(
[value] => 1
[explanation] => log₂( min(incoming_links,max)/max + 1 ); incoming_links = 195, max = 7
)
)
)
[1] => Array
(
[value] => 0
[description] => external_links_count_normalized * weight / total; external_links_count_normalized = 0, weight = 0.1, total = 1.1
[details] => Array
(
[0] => Array
(
[value] => 0
[explanation] => min(external_links_count,max)/max; external_links_count = 0, max = 20
)
)
)
[2] => Array
(
[value] => 0
[description] => text_bytes_normalized * weight / total; text_bytes_normalized = 0, weight = 0.1, total = 1.1
[details] => Array
(
[0] => Array
(
[value] => 0
[explanation] => log₂( min(text_bytes,max)/max + 1 ); text_bytes = 0, max = 50000
)
)
)
[3] => Array
(
[value] => 0.18181818181818
[description] => headings_count_normalized * weight / total; headings_count_normalized = 1, weight = 0.2, total = 1.1
[details] => Array
(
[0] => Array
(
[value] => 1
[explanation] => min(headings_count,max)/max; headings_count = 21, max = 20
)
)
)
[4] => Array
(
[value] => 0
[description] => redirects_count_notmalized * weight / total; redirects_count_notmalized = 0, weight = 0.1, total = 1.1
[details] => Array
(
[0] => Array
(
[value] => 0
[explanation] => min(redirects_count,max)/max; redirects_count = 0, max = 30
)
)
)
)
)
[1] => Array
(
[value] => 0
[description] => -(1-boost); boost = 1
[detail] => Array
(
[0] => Array
(
[value] => 1
[description] => No templates
)
)
)
)
)
)
)
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment