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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

1
vote
1answer
11 views

Using historical label as a feature in my ML model?

I am working on a predictive model to predict change in the price of an asset (up, down, no change). The labeling is based on the derivative of the price and is exponentially smoothed with an alpha of ...
0
votes
0answers
11 views

Adding and Normalizing extra features to Word2Vec representation

My problem is kind of similar to this question I am currently using a word2vec 100 features representation of my words. However, I want to add more features to have more similarity between synonyms ...
0
votes
1answer
11 views

kde plot for interpreting the correlation

i have created some new features for my model. I found people use kde plot to find out the correlation between the created feature and the target variable, but I am not really sure how to find the ...
0
votes
0answers
8 views

How to understand when partial dependence plot and feature importance don't agree

I'm checking partial dependence plot and feature importance on my binary classification using gradient boosting. The top feature based on the feature importance is a flat line at partial dependence ...
1
vote
2answers
18 views

how to represent location-code as a feature in machine learning model?

I am trying to predict the damage to a buildings after earthquake on a dataset which contains "district number" as feature. I think the feature will have a significant importance in predicting the ...
1
vote
0answers
28 views

How to do feature engineering for email cleaning / text extraction?

I have a large batch of email data that I want to analyse. In order to do that, I need to first prepare the data, as the messages are quite often >80% noise. Generally speaking, my dataset's structure ...
0
votes
1answer
21 views

Categorical data for sklearns Isolation Forrest

I'm trying to do anomaly detection with Isolation Forests (IF) in sklearn. Except for the fact that it is a great method of anomaly detection, I also want to use it because about half of my features ...
0
votes
2answers
16 views

How to handle NaNs for ratio feature for binary classifier?

I'm creating a churn model and would like to create a ratio (# customers / total transaction) for each merchant. About 70% of the data are NaNs (zero/zero). I was wondering what I should impute for ...
0
votes
2answers
55 views

What is a good approach for a lifespan?

Let's say I wan't to predict the lifespan of an ad in a listing. I know a bunch of thing from the ad like: the title the price the location etc The target value is the duration of the ad in the ...
1
vote
2answers
31 views

How would you deal with inf. or NA for rate or ratio as a feature variable

I'm trying to create a feature for a churn model (binary classifier). The feature is mean of sales growth rates for several months. But if I just take the mean of sales for several months, I often ...
0
votes
1answer
16 views

automatic feature selection

I have a lot (thousands are possible) of automatically-generated ordinal features that i'd like to exploit , to differentiate between two classes. I'm looking for some measure that will select the ...
0
votes
2answers
23 views

How to standarize feature vector with data in different scales?

Let's suppose I have a dataset with numerical attributes of different types. Let's suppose I want to employ a Neural Network for supervised classification with that dataset. For that, I need to ...
0
votes
0answers
16 views

Classifying variable types on a list of variables

I have a list of around 700 variables which I need to perform a variable cleanup on. What complicates things is there are different numeric codes which flag an invalid value and these differ by the ...
0
votes
1answer
15 views

How to transform dictionary data into a string vector?

I have key,value data where each record is in a Python string. An example record looks like this: ...
0
votes
1answer
15 views

How to aggregate data where instances occur over different time intervals [closed]

I am working on a problem in which I have several instances that have predictors that have activity over various different time periods (i.e. <3 months to well over 20 months.) Originally I ...
3
votes
0answers
49 views

Extract features from a survey

I need to use the answers from a questionnaire for training a classifier. I discovered that some questions can have nested sub-questions.. Let's say (just an example) that I want to predict whether a ...
0
votes
0answers
18 views

Does it make sense to add word embeddings as additional features for LSTM model?

I have an LSTM model. This model takes as input tokens. Those tokens represent XML markups extracted from some XML files. My model is working fine. However, I want to optimize it by adding word ...
1
vote
1answer
27 views

How to model a Machine learning problem considering links between features

Context: To predict employee turnover ( will an employee leave? ), I have used one of the classification algorithms (LDA) to train my dataset, and then make predictions. The dataset is quite small (...
2
votes
2answers
50 views

Time series binary classificaiton with labelling issues

My situation is quite complicated so I will give a similar example from a simpler domain. Suppose we want to try to predict WHEN a mobile game users will make a purchase if given a sale. Almost every ...
0
votes
0answers
9 views

Should I rescale tfidf features?

I have a dataset which contains both text and numeric features. I have encoded the text ones using the TfidfVectorizer from sklearn. I would now like to apply logistic regression to the resulting ...
0
votes
0answers
8 views

About effective features for cut out images

What you want to ask We are looking for valid features (regardless of local and global) for data extracted from arbitrary areas from images. Ultimately, I think that it can be applied to matching of ...
0
votes
0answers
9 views

Is it bad to add bias to the model?

I have this data where I have to predict the probability of a rare event, and there is a feature that always precedes the event when it turns negative. However, the magnitude and variance of the ...
3
votes
1answer
92 views

Too much inputs = overfitting?

First question : can I mix different sorts of inputs types for example, height and age (of course my inputs are normalized)? in general, can we mix different types of inputs in a neural network ? ...
9
votes
3answers
569 views

Is this a good practice of feature engineering?

I have a practical question about feature engineering... say I want to predict house prices by using logistic regression and used a bunch of features including zip code. Then by checking the feature ...
0
votes
2answers
38 views

Training a regression algorithm with a variable number of features

I need to train a regression algorithm with multiple features and a single label (predicted value). The problem is that this algorithm has to be able to do on-line learning and the number of features ...
1
vote
1answer
28 views

feature engineering in test and train sets (on combined data or separately on train and test)

Background: As part of prediction analysis, I am given a train and test dataset. Both train and test data have numerical and categorical predictor variables and additionally, train data has a ...
0
votes
1answer
16 views

Devise a single metric to measure retention of listeners using the service on a daily basis for the last month

I have dummy data for a music streaming service, the data is as follows:- Monthly uniques = the number of unique listeners on each platform for the entirety of a given month All-time uniques = the ...
-1
votes
1answer
18 views

Is it safe to say if features are generated once for a dataset, it may be used for any relevant algorithm?

If I have generated features using state of the art feature engineering methods of a dataset, can I use it for any kind of algorithm to build the model apart from few modifications in the features so ...
0
votes
1answer
23 views

Storing engineered features in a database

I have some data in raw csv files which I would like to store in a MySQL database. The problem is there are constant feature engineering done on this dataset so coming up with one schema to fit all ...
1
vote
3answers
128 views

Time series feature extraction from raw sensor data for classification?

I have a tabular raw data from sensors with associated label and i want to extract the time series features like mean,max,min and std from the data all the sensor data and form another table or export ...
1
vote
0answers
22 views

Feature Engineering for POS register events: Anomaly Detection

I am working on a dataset with only one variable: POS Journal Events.It has different values such as Items ordered, Order Placed, OrderItems,Discount applied, Promotion applied, order voided etc. I ...
2
votes
0answers
15 views

How to combine heterogeneous image features extracted with different algorithms for similar image retrieval?

Say I have access to several pre-trained CNNs (e.g. AlexNet, VGG, GoogleLeNet, ResNet, DenseNet, etc.) which I can use to extract features from an image by saving the activations of some hidden layer ...
1
vote
0answers
12 views

Feature building - phone device type

I want to use phone type (e.g., "iPhone 6s", "Lenovo K8 Note", etc.) as a feature in a model. Does anyone know of a way to obtain release date, price, etc of a phone (besides scraping)? That seems ...
3
votes
1answer
39 views

Should one hot vectors be scaled with numerical attributes

In the case of having a combination of categorical and numerical Attributes, I usually convert the categorical attributes to one hot vectors. My question is do I leave those vectors as is and scale ...
2
votes
0answers
40 views

Exploratory analysis and feature engineering for time till failure prediction using sensor data of engines

I am trying to do some data exploration and analysis on a dataset of engine sensor readings. I would like to determine if the data I have is good enough to predict a time till failure and possibly ...
1
vote
0answers
47 views

Skewed distributions in predictive models

What are the issues of dealing with highly skewed variable in a supervised problem? What are the machine learning algorithms that suffer more from skewness in the data and what are the solutions to ...
1
vote
3answers
54 views

Feature Selection in Linear Regression

I have a insurance dataset as given below. For which I need to build a model to calculate the charges. ...
0
votes
0answers
27 views

Continuous to binary feature conversion

Let's say I have a binary classification problem with labels $y$ and features $x_1,\dots,x_n$. I observe that when $x_1$ is lower than a threshold $x^*$, then it is very likely that the class is $0$, ...
1
vote
0answers
171 views

How to extract relative importance of features from a tensorflow DNNRegressor model?

I followed these two posts to understand about restoring a saved model and then extracting variables from it: Extracting weights values from a tensorflow model checkpoint How to examine the feature ...
0
votes
2answers
84 views

Linear Regression in Python

Below is the dataset for which I am trying to implement Linear regression in python. ...
1
vote
0answers
66 views

How can I prepare my data from multiple time series sources for time series regression? [closed]

I have multiple sensors providing time series sources with slightly different time stamps and different sampling rates. For example I have a breathing rate feature from 1 sensor at 1 Hz, EKG from ...
0
votes
0answers
11 views

Building Recommender system alike model with two major issues

I am building a model for an organization which recommends tour packages to travelers. I am thinking about building a recommender system which is feasible with the data I have seen so far but there ...
4
votes
1answer
164 views

Instead of one-hot encoding a categorical variable, could I profile the data and use the percentile value from it's cumulative density distribution?

I have a categorical variable which has thousands of values, for a dataset which has millions of records. The data is being used to create a binary classification model. I am in the early steps of ...
0
votes
0answers
23 views

Feature concatenation or multiple branches

I am building some neural network models to classify my dataset. From the dataset, I can extract several kinds of feature vectors. The simplest model I can think about is to concatenate features, then ...
0
votes
0answers
42 views

Cumulative F Score and MSE in regression problems

I know that this question may sound a little bit anecdotal, but I will ask it nevertheless. When performing a classification task, an higher cumulative F Score of the features - as computed by the ...
2
votes
2answers
49 views

How to represent a set of sets as a vector

I'm pretty new to machine learning. I know I can represent a set of discrete values as a vector of 0/1 values. For instance, in the set of features {a, b, c, d, e}, the subset containing ...
0
votes
0answers
18 views

Feature Question

I am trying to implement a feature into my machine learning model in which an entry feature is ranked in terms of other entry features. So normally I would just have the feature ranked (1st...2nd.......
0
votes
0answers
41 views

How to know if a model actually link a pair of cyclical features?

After encoding a time of the day into a cyclical feature (using trigonometry) we create an extra column in the data set. For example: ...
1
vote
2answers
302 views

Different number of features after using OneHotEncoder

I have train and test data in two separate files. OneHotEncoder gives different number of features for Train and Test Data based on the different values they have. But the classifier requires that ...
0
votes
0answers
31 views

Discretization of continous value feature

I am doing feature engineering to improve my ML model. In my dataset, there are some continues value features which I want to be discrete. I know that this is one of the pre-processing steps that the ...