search for: recenc

Displaying 20 results from an estimated 23 matches for "recenc".

Did you mean: recent
2016 Apr 22
2
Weighting recent results
I did some digging and found a thread from 2011 talking about how to subclass Xapian::PostingSource in order to incorporate the date or recency of a document in its weighting: http://thread.gmane.org/gmane.comp.search.xapian.general/8849/focus=8856 As in that thread, I want to be clear that I don't want to sort by date, but rather incorporate date information into the score by which I sort the results. I may be able to stumble aro...
2017 Oct 13
2
How to define proper breaks in RFM analysis
....1 8/31/2017 0 2 32.57 292630 24.34 7/31/2017 31 1 24.34 295204 21.86 7/18/2017 44 1 21.86 295989 8.98 8/20/2017 11 2 14.095 298883 14.38 8/24/2017 7 2 11.185 308824 10.77 7/31/2017 31 1 10.77") names(dat) <- c("user_id", "subtotal_amount", "created_at", "Recency", "Frequency", "Monetary") dat <- data.frame(dat,stringsAsFactors=FALSE) I suspect read.table would also have worked for me, but I was expecting difficulties based on Petr's posting. #And ended up with this result (on the original copied data): > str(dat) '...
2016 May 03
2
Weighting recent results
On 5/2/2016 9:03 PM, Olly Betts wrote: > On Fri, Apr 22, 2016 at 12:23:15PM -0400, Alex Aminoff wrote: >> I did some digging and found a thread from 2011 talking about how to >> subclass Xapian::PostingSource in order to incorporate the date or >> recency of a document in its weighting: >> >> http://thread.gmane.org/gmane.comp.search.xapian.general/8849/focus=8856 >> >> As in that thread, I want to be clear that I don't want to sort by >> date, but rather incorporate date information into the score by >> whic...
2016 May 16
2
Weighting recent results
I was thinking about this some more: Is there a reason I can't just weight by some function of recency at indexing time? $weight = get_weight_based_on_recency(...); $tg->index_text($txt,$weight); If I wanted to allow the user the option of searching either in recency-weighted mode or not, I could index each document into 2 different databases, one with and one without. This avoids havin...
2017 Oct 13
0
How to define proper breaks in RFM analysis
...24.34 7/31/2017 31 1 24.34 > 295204 21.86 7/18/2017 44 1 21.86 > 295989 8.98 8/20/2017 11 2 14.095 > 298883 14.38 8/24/2017 7 2 11.185 > 308824 10.77 7/31/2017 31 1 10.77") > > names(dat) <- c("user_id", "subtotal_amount", "created_at", "Recency", "Frequency", "Monetary") > dat <- data.frame(dat,stringsAsFactors=FALSE) > > I suspect read.table would also have worked for me, but I was expecting difficulties based on Petr's posting. > > > #And ended up with this result (on the original copie...
2017 Oct 11
0
RFM analysis
Hi Hemant, Let's take it one step at a time. Save this code as "qdrfm.R" in your R working directory: It includes the comments I added last time and fixes a bug in the recency scoring. qdrfm<-function(x,rbreaks=3,fbreaks=3,mbreaks=3, date.format="%Y-%m-%d",weights=c(1,1,1),finish=NA) { # if no finish date is specified, use current date if(is.na(finish)) finish<-as.Date(date(), "%a %b %d %H:%M:%S %Y") x$rscore<-as.numeric(finish-as.Date...
2017 Oct 23
1
How to define proper breaks in RFM analysis
...t; > 295204 21.86 7/18/2017 44 1 21.86 > > 295989 8.98 8/20/2017 11 2 14.095 > > 298883 14.38 8/24/2017 7 2 11.185 > > 308824 10.77 7/31/2017 31 1 10.77") > > > > names(dat) <- c("user_id", "subtotal_amount", "created_at", "Recency", > "Frequency", "Monetary") > > dat <- data.frame(dat,stringsAsFactors=FALSE) > > > > I suspect read.table would also have worked for me, but I was expecting > difficulties based on Petr's posting. > > > > > > #And ended up...
2017 Oct 10
0
Help RFM analysis in R (i want a code where i can define my own breaks instead of system defined breaks used in auto_RFM package)
...18 3453 18.9 2017-03-22 7689 8 2017-03-24 but when I'm passing the data into the function it is giving me same values for entire observations i. r=2, f=2, m=2 and which part of your code is responsible to calculate recency and frequency score i mean how it will determine how many times a user made a purchase in last 30 days so that we can put that user into our own defined category. one more thing it would be great if you can explain lil bit about finish date. because i'm not able to understand what do you mean...
2016 May 03
0
Weighting recent results
On Fri, Apr 22, 2016 at 12:23:15PM -0400, Alex Aminoff wrote: > I did some digging and found a thread from 2011 talking about how to > subclass Xapian::PostingSource in order to incorporate the date or > recency of a document in its weighting: > > http://thread.gmane.org/gmane.comp.search.xapian.general/8849/focus=8856 > > As in that thread, I want to be clear that I don't want to sort by > date, but rather incorporate date information into the score by > which I sort the results....
2017 Oct 06
3
Help RFM analysis in R (i want a code where i can define my own breaks instead of system defined breaks used in auto_RFM package)
..._at = as.Date(df$created_at)* *occurences = table(unlist(df$user_id))* *occurences = as.data.frame(occurences)* *occurences = occurences[order(-occurences$Freq),]* * r <-c(30,60,90)* * f <-c(2,5,8)* * m <-c(10,20,30)* * getScoreWithBreaks <- function(df,r,f,m) {* * ## scoring the Recency* * len = length(r)* * R_Score <- c(rep(1,length(df[,1])))* * df <- cbind(df,R_Score)* * for(i in 1:len){* * if(i == 1){* * p1=0* * }else{* * p1=r[i-1]* * }* * p2=r[i]* * if(dim(df[p1<df$Recency & df$Recency<=p2,])[1]>0) df[p1<df$Recenc...
2017 Oct 09
2
Help RFM analysis in R (i want a code where i can define my own breaks instead of system defined breaks used in auto_RFM package)
I seriously doubt that you are running the code I sent. What you have probably done is to run your data, which has a different date format, without changing the breaks or the date format arguments. As you haven't provided any example that shows what you are doing, I can't guess what the problem is. Jim On Mon, Oct 9, 2017 at 9:40 PM, Hemant Sain <hemantsain55 at gmail.com> wrote:
2017 Oct 05
0
RFM Analysis Help
...occurences = table(unlist(df$user_id)) > occurences = as.data.frame(occurences) > occurences = occurences[order(-occurences$Freq),] > > r <-c(30,60,90) > f <-c(2,5,8) > m <-c(10,20,30) > > getScoreWithBreaks <- function(df,r,f,m) { > > ## scoring the Recency > len = length(r) > R_Score <- c(rep(1,length(df[,1]))) > df <- cbind(df,R_Score) > for(i in 1:len){ > if(i == 1){ > p1=0 > }else{ > p1=r[i-1] > } > p2=r[i] > > if(dim(df[p1<df$Recency & df$Recency&...
2008 Jun 10
4
Hello
Hello, I am facing a problem in drawing heat map using R. I have a 70X3 matrix and I want to draw a heat map with 1 coloumn on X axis another on Y axis and want to show the value of 3rd coloumn using heat colours. Could you please help me with this . Thank you . Regards, Sumit [[alternative HTML version deleted]]
2011 Aug 10
0
Setting X-Axis labels in Lattice Barchart
Hello, I'm attempting to plot out a series of bar charts of recency, frequency and monetary (RFM) scores using recency as a conditioning variable so we can see the details of the FM components. My dataset looks like this: rfmCellPop{rfm_score, orecency, ofrequency, omonetary, cellpop} Where rfm_score is the composite score (cellID), oRecency, oFrequency and oM...
2016 May 18
0
Weighting recent results
On Mon, May 16, 2016 at 12:35:53PM -0400, Alex Aminoff wrote: > I was thinking about this some more: Is there a reason I can't just > weight by some function of recency at indexing time? > > $weight = get_weight_based_on_recency(...); > $tg->index_text($txt,$weight); The second parameter there is a WDF multiplier, which isn't really "weight". It depends on the weighting formula you're using (and the parameters set for it), but s...
2017 Oct 13
0
How to define proper breaks in RFM analysis
...one of those variables is attached in the previous email, i don't want to consider quartile method because quartile is not working ideally for that data set because data distribution is non normal. so i want you to suggest another method so that i can define 3 breaks with the ideal interval for Recency, frequency and monetary to calculate RFM score. i'm again attaching you some of the data set. please look into it and help me with the R code. Thanks Data user_id subtotal_amount created_at Recency Frequency Monetary 194849 6.99 8/22/2017 9 5 9.996 194978 14.78 8/28/2017 3...
2017 Oct 13
2
How to define proper breaks in RFM analysis
...one of those variables is attached in the previous email, i don't want to consider quartile method because quartile is not working ideally for that data set because data distribution is non normal. so i want you to suggest another method so that i can define 3 breaks with the ideal interval for Recency, frequency and monetary to calculate RFM score. i'm again attaching you some of the data set. please look into it and help me with the R code. Thanks *Data* user_id subtotal_amount created_at Recency Frequency Monetary 194849 6.99 8/22/2017 9 5 9.996 194978 14.78 8/28/2017 3 15 16.308 1986...
2006 Sep 18
7
drbd using zfs send/receive?
hi everyone, I am planning on creating a local SAN via NFS(v4) and several redundant nodes. I have been using DRBD on linux before and now am asking whether some of you have experience on on-demand network filesystem mirrors. I have yet little Solaris sysadmin know how, but i am interesting whether there is an on-demand support for sending snapshots. I.e. not via a cron job, but via a
2007 May 10
4
Value at Risk
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: https://stat.ethz.ch/pipermail/r-help/attachments/20070510/b26482f4/attachment.pl
2007 Nov 15
1
Problem with rsync recent file logic ?
Hello, I have 2 servers I'm synchronizing using rsync, I have a situation where I : 1. rsync from rnd-dev2 to rnd-dev1 2. change the rsynched file on rnd-dev1 3. rsync from rnd-dev2 to rnd-dev1 again 4. File gets overridden on rnd-dev1 over though it has newer change time then file on rnd-dev2. here is the bug(?) reproduction: [root@rnd-dev1 test_rsync]# rsync --version rsync version