Questions tagged [weighting]
81 questions
10
votes
2 answers
Machine learning for weighting adjustment
I'm trying to work out how to implement some machine learning library to help me find out what the correct weighting for each parameter is in order to make a good decision.
In more detail:
Context: trying to implement a date of publication extractor…

dud5
- 210
- 1
- 10
7
votes
2 answers
Weighting samples in multiclass image segmentation using keras
I am using a Unet based model to perform image segmentation on a biomedical image. Each image is 224x224 and I have four classes including the background class. Each mask is sized as (224x224x4) and so my generator creates batches of numpy arrays…

maracuja
- 417
- 8
- 24
6
votes
4 answers
Sharepoint Search Property Weighting
I'm using the code listed here:
http://msdn.microsoft.com/en-us/library/ms553069.aspx
With an additional line added as a call to .update() after the property is set in order to save the changes, but even with a weight of 10,000 the search results…

Stefan Mai
- 23,367
- 6
- 55
- 61
5
votes
1 answer
Reweighting (rake) in Python
I'm looking for a python library for replace the rake function from "Survey", an R library (https://www.rdocumentation.org/packages/survey/versions/4.0/topics/rake)
I have found and try Quantipy, but the weights quality is poor compared to the…

Hantlowt
- 107
- 9
5
votes
1 answer
How can I generate marginal effects for a logit model when using survey weights?
I normally generate logit model marginal effects using the mfx package and the logitmfx function. However, the current survey I am using has weights (which have a large effect on the proportion of the DV in the sample because of oversampling in some…

Jon M
- 1,157
- 1
- 10
- 16
5
votes
2 answers
Use max column value in order by
I'm trying to order a table by two columns, each with a different weighting. The first is uptime, which is a value between 0 and 1 and has a weighting of 0.3. The second is votes, which is a non-negative integer and has a weighting of 0.7.
The…

Matt
- 11,157
- 26
- 81
- 110
3
votes
1 answer
Look up weighting dataframe and apply to a column
I have two dataframes:
df1:
Variable Name Weight
Variable1 2
Variable2 .5
df2:
Variable1 Variable2
3 4
2 5
How can I multiply the weights by the numbers…

RyanG73
- 63
- 1
- 4
3
votes
4 answers
Whats the best way to implement weighted random selection, based on 2 types variables (in php)?
Basically my dilemma is this. I have a list of x servers that host files. There is another server, that hosts the site's mysql db and application. When a file is uploaded (to the frontend server), the application checks to see which server has the…
user15063
2
votes
0 answers
Solving for weights as coefficients using linear optimization in Python
I have a numpy array containing x variables and a y variable that I'd like to use to calculate coefficients on where each coefficient is between 0 and 1 and the sum of all the weights equals 1. How would I go about doing this in Python. I'm using…

finman69
- 309
- 1
- 8
2
votes
1 answer
mnps function of R twang package shows warning errors for Absolute Standardized Difference plot
I have a dataset with 3465 observation and 5 variables as follows (named: dataset)
Variables
$ Treat --> factor(3 level: "1", "2", "3")
$ Age --> integer(eg. 24,54,etc.)
$ Mortality --> integer(0=no,1= yes)
$ LDL --> integer(eg. 200,120,143,…

Behnam Hedayat
- 837
- 4
- 18
2
votes
1 answer
R anesrake package producing NA in summary statistics table
The r anesrake package is listing na in its summary statistics table instead of providing percentages. A reproducible example is pasted below. I cannot figure out what is causing this.
data<-NULL
library(anesrake)
#Dummy data…

CK7
- 229
- 1
- 11
2
votes
2 answers
Anesrake run error when executing multiple target variables
I currently am trying to execute the anesrake function (part of the anesrake package https://cran.r-project.org/web/packages/anesrake/index.html which weights population attribute sets based on sample attribute sets) within R to approximate weight…

Stu Richards
- 141
- 1
- 11
2
votes
0 answers
Explaining methodolgy behind this ARIMA weighted code
I have a code that was given to me that runs an ARIMA model putting weight on more recent errors, it gives excellent results, much better than simple ARIMA, but i do not understand the methodology behind it. If you can understand whats going on and…

Summer-Jade Gleek'away
- 872
- 1
- 6
- 22
2
votes
0 answers
Log-Likelihood Ratio statistic by PyLucene
Currently I am analyzing a pretty huge amount of text. I would like to perform a Log-Likelihood Ratio on two wordlists in order to identify frequency deviations of terms in the foreground corpus vs the normative corpus. I have coded the…

user1313158
- 21
- 1
1
vote
1 answer
weighted mean (%) of dichotomous variables in expss tables
I want to create a weighted mean of a dichotomous variables (0 or 1) using expss packages. AND the results will be presented in percentage. These dichotomous variables contain missing values.
fisrt of all, i create a function :
tableau = function…

Legarraudien
- 21
- 3