Questions tagged [ranking]

Ranking is the sorted order of an element in a list of elements. Usually a high ranking means the element is good in terms of certain metric.

is used in:

  • sorting algorithms
  • information retrieval to represent the relevance of documents with respective to the search queries.
  • recommendation to rank top-k items.
1634 questions
0
votes
1 answer

Solr / Lucene: scoring individual tag

I'm designing a Lucene search index that includes ranked tags for each document. Example: Document 1 tag: java , rank 1.2 tag: learning, rank 2.1 tag: bugs, rank 1.2 tag: architecture: rank 0.3 The tags comes from an automated classification…
robsf
  • 1,713
  • 3
  • 14
  • 26
0
votes
3 answers

PHP Ranking System Array Sort

I develop a ranking system. I got the following array: [1] => Array ( [botarin - Branding und Kommunikation] => 1 [Raiffeisen Kredit 2 Go] => 2 ) [2] => Array ( [Kindersteckdosen] => 1 [Surf lieber mit…
Clemens
  • 11
  • 5
0
votes
3 answers

How to order a sql query for a ranking system with both average and number of votes?

I'm creating a list for best movies which are based on the users votes like imdb. I have done the list with this sql query: SELECT data_id, COUNT(point), SUM(point) FROM voting_table WHERE data_type='1' GROUP BY data_id order by…
Jenkins
  • 43
  • 1
  • 7
0
votes
1 answer

Oracle: Find previous record for a ranked list of forecasts

Hi I am faced with a difficult problem: I have a table (oracle 9i) of weather forecasts (many 100's of millions of records in size.) whose makeup looks like this: stationid forecastdate forecastinterval forecastcreated …
0
votes
2 answers

Product Movement Algorithm Ranking (Based on Units Sold and Net Income)

I am not totally sure if this is the right place to ask this question. Hopefully someone will have an answer or could give some advice. I run a small shop that sells commodities. I have a program / spreadsheet that will list the top moving items. I…
0
votes
1 answer

How to order list by median?

I'm quite new to R and having some problems understanding the reorder function. Lets say i have a list with 3 vectors like: myList <- (c(7,5,2),c(2,3,4),c(1,1,1)) and I want my list to be reordered by the median of each vector so that boxplotting…
voiDnyx
  • 119
  • 1
  • 2
  • 7
0
votes
1 answer

Determine ranking of generic comparable array

If have this code (taken from https://stackoverflow.com/a/4859279/1178781): import java.util.Comparator; public class ArrayIndexComparator> implements Comparator { private final T[] array; …
justderb
  • 2,835
  • 1
  • 25
  • 38
0
votes
1 answer

MySQL Ranking Query and LEFT JOIN

I have a database of users and facebook_accounts, which belong to users. Users are "ranked" by how many points they have in relation to other users: this is done with an embedded SELECT statement that counts all users with more points than the…
Garrett G
  • 78
  • 8
0
votes
3 answers

Join the best record, if there is one, in Oracle

I have a fairly complex Oracle query, getting data from multiple tables. In one of the joins, I want the best record, if there is one. Therefore, a left outer join. There is a start date field, so for most records, getting the max start date will…
thursdaysgeek
  • 7,696
  • 20
  • 78
  • 115
0
votes
1 answer

How can I make a tags ranking in javascript

I'm trying to create a script for personal purposes. I'm analyzing lists of blog posts, fetching their tags and I need to obtain a tags ranking. post1_tags: ['chocolate','drink','sweet','food','cocoa'] post2_tags:…
Seb
  • 13
  • 3
0
votes
1 answer

Rank Last Values in Arrays and Loop Ranked Number into Previously Created Array?

I need to take the last value of each array in a multidimensional array, compare them to each other, and put the ranked value at the end of the previously created arrays. My PHP: //Arrays $rsIdeas_array = array(); $total_rank_array = array(); //Get…
KevBot
  • 17,900
  • 5
  • 50
  • 68
0
votes
1 answer

searching for and ranking results

I'm trying to write a relatively simple algorithm to search for a string on several attributes Given some data: Some data: 1: name: 'Josh', location: 'los angeles' 2: name: 'Josh', location: 'york' search string: "josh york" The results should be…
jsharpe
  • 2,546
  • 3
  • 26
  • 42
0
votes
3 answers

python dict key sort by multiple values ranking

Its easy to sort a dict to list by values, but I need to order keys by kind of boosting specific values in correlation to others. An example: x = [('key1', {'s': 'foo', 'w': 30}), ('key2', {'s': 'bar', 'w': 26}), ('key3', {'s': 'foo', 'w':…
rebeling
  • 718
  • 9
  • 31
0
votes
3 answers

Rails reputation system for a content management system

I am working on CMS and I need to implement a reputation system which enable these features Badges Points Ranks I found this gem from twitter, activerecord-reputation-system but I'm not pretty sure how to use this on my own application. Appreciate…
randika
  • 1,519
  • 3
  • 18
  • 39
0
votes
1 answer

Improving ordinal ranking

I'm trying to improve an ordinal ranking implementation we are currently using to determine a unique ranking amongst competitors over a set of tasks. The problem is as follows. There are K tasks and N competitors. All of the tasks are equally…
Rikardo Koder
  • 672
  • 9
  • 16
1 2 3
99
100