Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [weighted-data]

The tag has no usage guidance.

1
vote
0answers
16 views

How to use class_weight parmater for validation set?

I am using Keras' class_weight parameter to deal imbalanced class problem. So I am doing like this to define the weights : ...
0
votes
1answer
20 views

Differentiating roadmap of a loss function

Let's say I'm performing Stochastic Gradient Descent (SGD) on binary cross entropy error while optimizing weight $w_{2}$. Binary cross entropy error: $$L(y|p(x_{i}))=-y_{i}*ln(p(x_{i}))-(1-y_{i})*...
2
votes
1answer
923 views

How to set class-weight for imbalanced classes in KerasClassifier while it is used inside the GridSearchCV?

Could you please let me know how to set class-weight for imbalanced classes in KerasClassifier while it is used inside the ...
1
vote
2answers
635 views

Sample Importance (Training Weights) in Keras

How do you add more importance to some samples than others (sample weights) in Keras? I'm not looking for class_weightwhich is a fix for unbalanced datasets. ...
0
votes
2answers
40 views

emphasise some observation weights more than the others

I want to emphasise (increase the weight) of only a subset of data. Lets say I have old and fresh data, I would like to say that old data has to have more weight and therefore has more influence in ...
4
votes
1answer
247 views

Purpose of weights in neural networks

I'm beginner at Neural Networks. After reading multiple articles on wikipedia, i've seen the term "weight" being used a lot, although it is a little confusing. I know, that before the inputs are ...
1
vote
0answers
14 views

Are we allowed to give the weight value for svm's predictors?

I have this public data that has 9 predictors in it and it's labeled with two classes. I tried linear svm on it (by computer) and the accuracy was fascinating. But, I I ran through this problem when ...
-2
votes
1answer
34 views

How to redistribute weightage proportionally?

I want to increase proportional increase weightage. For example, I have weights w1 = 0.4 w2 = 0.3 w3 = 0.2 w4 = 0.1 with a constraint that the total sum of the ...
0
votes
0answers
18 views

How does Hebbian theory work?

In my Knowledge and Data mining lecture I have just been introduced to the Hebbian theory about the weights $w_i$ learning. In case of success, we have to add to each connection something ...
4
votes
1answer
66 views

Range to define emotions

We are capturing emotions as survey responses. We need to assign values for the responses(emotions) for analysis purposes. Is there an optimum range that can be assigned to achieve this? (like from -...
6
votes
3answers
1k views

Unbalanced class: class_weight for ML algorithms in Spark MLLib

In python sklearn, there are multiple algorithms (e.g. regression, random forest ... etc.) that have the class_weight parameter to handle unbalanced data. However, I do not find such parameter for ...
0
votes
2answers
255 views

Calculate feature weight vector for one-hot-encoded data frame in R

I have the following data frame with one categorical and two numerical columns: V1 V2 V3 1 A 1 3 2 A 3 5 3 B 3 3 4 C 2 3 I have ...
68
votes
5answers
70k views

How to set class weights for imbalanced classes in Keras?

I know that there is a possibility in Keras with the class_weights parameter dictionary at fitting, but I couldn't find any example. Would somebody so kind to ...
2
votes
1answer
417 views

Sklearn Linear Regression examples

Could someone give an example of the application of Tf-idf with sparse data (lots of zeros) in sklearn? I am not quite sure where to insert the weight of Tf-idf and how to rightly obtain the weight. ...
3
votes
1answer
1k views

How can the process of hypertuning of XGBoost parameters be automated?

I'm using xgboost for training a model on a data with extreme class imbalance. After referring from here. After performing grid search and some manual settings, I ...
4
votes
2answers
1k views

How can give weight to feature before PCA

I wonder how can I give weight to my feature before employing PCA. I mean somehow weighted PCA. Because I know that one of the features is better than others and want to give importance to it in ...
3
votes
1answer
3k views

Machine learning technique to calculate weighted average weights?

I'm just starting to investigate machine learning concepts, so I'm sorry if this question is very naive, but I'm hoping that it will be an easy one to answer! I have a document matching algorithm ...
0
votes
3answers
1k views

@RISK Vs R. Monte Carlo simulation in R?

Are there any cheaper or open source alternatives to @RISK or are there packages for R that would be able to perform the same tasks? http://www.palisade.com/risk/ @RISK (pronounced “at risk”) ...
2
votes
2answers
137 views

Sort by average votes/ratings

I have a data set that's a dictionary of tuples. Each key represents an ID number and each tuple is (yesvotes, totalvotes). Example: ...
15
votes
3answers
14k views

xgboost: give more importance to recent samples

Is there a way to add more importance to points which are more recent when analyzing data with xgboost?
1
vote
2answers
133 views

Creating validation data for model comparison

I am working on building a scoring algorithm for student data, say the attributes are : name, location, age, class, school_name, skill1, skill2, skill3 based ...