ranking Questions

8

Solved

After reading How Not to Sort by Average Rating, I was curious if anyone has a Python implementation of a Lower bound of Wilson score confidence interval for a Bernoulli parameter?
Drawn asked 5/4, 2012 at 13:32

5

Solved

I have a vector say c(1,1,1,1,1,1,2,3,4,5,7,7,5,7,7,7) How do I count each element, and then return the e.g. 3 most common elements, i.e. 1, 7, 5?
Parentage asked 28/6, 2013 at 22:35

6

Solved

In R I want to allocate projects to people based on their rank preferences but also their performance. Say I have 5 projects and 3 people. In this case, all three people want project A because it's...
Craner asked 13/3, 2023 at 12:16

2

Solved

Consider a dataframe with three columns: group_ID, item_ID and value. Say we have 10 itemIDs total. I need to rank each item_ID (1 to 10) within each group_ID based on value , and then see the mean...
Bangup asked 24/11, 2015 at 16:50

4

Solved

I am working with database data that manipulates college students exam results. Basically, I am pulling the records from a MySQL database and pulling one class at any given time. I want to rank the...
Avivah asked 28/5, 2011 at 17:26

3

My objective is to create a simple density or barplot of a long dataframe which shows the relative frequency of nationalities in a course (MOOC). I just don't want all of the nationalities in there...
Calvo asked 11/12, 2014 at 11:51

3

My array structure is as follows - [ [ "points" => 10, "details" => ["name" => "Team A", "rank" => ""] ], [ "point...
Odericus asked 7/4, 2013 at 13:11

0

I am getting an issue when trying to rank documents based on score and attempts "$rank must be specified with a top level sortBy expression with exactly one element" The query is : $res...
Gurl asked 15/11, 2022 at 13:1

14

The following query: SELECT year, id, rate FROM h WHERE year BETWEEN 2000 AND 2009 ORDER BY id, rate DESC yields: year | id | rate 2006 | p01 | 8.0 2003 | p01 | 7.4 2008 | p01 | 6.8 2001 | p01 | ...
Pauli asked 25/1, 2010 at 1:25

25

Solved

I'm looking for a string similarity algorithm that yields better results on variable length strings than the ones that are usually suggested (levenshtein distance, soundex, etc). For example, Giv...
Vindication asked 17/3, 2009 at 6:10

3

Solved

I have a matrix which I want to convert to one with binary output (0 vs 1). The matrix to be converted contains four rows of rankings (1 to 4): mat1.data <- c(4, 3, 3, 3, 3, 2, 2, 1, 1, 1, 3, 4...
Syck asked 16/7, 2022 at 14:3

2

Solved

I want to calculate and store the dense rank and gapped rank for all entries in an array using PHP. I want to do this in PHP (not MySQL because I am dealing with dynamic combinations 100,000 to 900...
Ratty asked 28/6, 2022 at 18:6

5

Solved

For a school project, we'll have to implement a ranking system. However, we figured that a dumb rank average would suck: something that one user ranked 5 stars would have a better average that some...
Arsphenamine asked 22/3, 2010 at 20:33

12

Solved

How do I find the above without removing the largest element and searching again? Is there a more efficient way to do this? It does not matter if the these elements are duplicates.
Besom asked 11/9, 2009 at 19:7

3

I have a question that can we normalize the levenshtein edit distance by dividing the e.d value by the length of the two strings? I am asking this because, if we compare two strings of unequal leng...

3

Solved

First Create some example data (e1,e2,e3 are types and test is the index name): PUT test/e1/1 { "id":1 "subject": "subject 1" } PUT test/e2/1 { "id":1 "subject": "subject 2" } PUT test/e3/2 { ...
Nightclub asked 27/4, 2015 at 3:0

2

Solved

TL;DR I can't figure out how to write a recursive Postgres query that doesn't use aggregate functions in its recursive part. Is there an alternative way to write the recursive query shown below? L...
Nuke asked 31/7, 2019 at 22:36

4

Solved

I have a mongoDB collection that looks like this: { "_id": 1, "name": "John Doe", "company": "Acme", "email": "[email prote...
Loris asked 16/3, 2017 at 18:35

2

Solved

I am trying to sort the number in descending order using javascript. It works well for strings but when I use numbers it gives me wrong results. Following is the code: <html> <head> &...
Botanical asked 12/11, 2015 at 16:50

4

Solved

I am building a site with a ton of 1999 style capitalization of navigation and headings. I have been simply adding in the text content as it appears (capitalized), but the other designer on the pro...
Sullage asked 6/2, 2010 at 1:24

9

I have seen: how do I find the closest value to a given number in an array? How do I find the closest array element to an arbitrary (non-member) number?. These relate to vanilla python and not ...
Apache asked 7/5, 2015 at 21:43

13

Solved

I'm looking for an efficient way to calculate the rank vector of a list in Python, similar to R's rank function. In a simple list with no ties between the elements, element i of the rank vector of ...
Steinman asked 18/6, 2010 at 16:27

7

Solved

This seems like it must be a very common task, but I can't find a solution in google or SO. I want to add a column called 'rank' to 'dat1' based on the sequence that 'order.scores' applies to 'dat'...
Palaver asked 24/7, 2014 at 15:39

8

I am trying to match a single search term against a dictionary of possible matches using a Levenshtein distance algorithm. The algorithm returns a distance expressed as number of operations require...
Ptolemaic asked 1/5, 2012 at 22:46

2

In Wikidata (Wikidata SPARQL endpoint), is there a way to order the SPARQL query results with something like a PageRank? SELECT DISTINCT ?entity ?entityLabel WHERE { ?entity wdt:P31 wd:Q5. SERVI...
Coalfish asked 11/9, 2016 at 16:3

© 2022 - 2024 — McMap. All rights reserved.