New answers tagged

1 vote
Accepted

Making a netcdf data using xarray

...
  • 120
1 vote

What techniques are used to analyze data drift?

One way to start is fundamental exploratory data analysis. Compare univariate, bivariate, and multivariate distributions between training data and new data. Those comparisons can be done visually, ...
2 votes

What techniques are used to analyze data drift?

It depends about what type of data are we talking: tabular, image, text... This is part of my PhD, so I am completely biased, I will suggest Explanation Shift. (I would love some feedback). It works ...
0 votes

How to forecast a timeseries with geolocation data?

On first impressions, I'm inclined to segregate data for locations which have significance (need not just be home, gym, office), from insignificant ones (travel, traffic) using continuous time spent ...
1 vote

How to forecast a timeseries with geolocation data?

You are correct there are many ways to model that data, in particular predicting future latitude and longitude coordinates. It sounds like you want to model the geospatial data probabilistically. One ...
1 vote
Accepted

How to forecast a timeseries with geolocation data?

I see multiple possibilities, here: In General Some general remarks first: When designing you model, you should take reoccurring patterns into account: There will probably be a 24h pattern (for ...
  • 523
0 votes

99% accuracy in train and 96% in test is too much overfitting?

A significantly higher accuracy on the training set than the test set is generally an indication of overfitting. In your case, the difference in accuracy between the train and test sets is relatively ...
  • 2,361
1 vote

How to handle missing value if imputation doesnt make sense

If the variable is categorical and not ordered, it may make sense to create a new category 'not_married' to represent the missing values. This would allow you to keep the information about marital ...
3 votes

What to do if your model's prediciton result wrong because of unlucky?

All models are wrong, some are useful. The most useful ones are the ones constructed by people who understand the probabilities of things happening, even "black swan" events (things everyone ...
  • 1,972
0 votes

How to handle missing value if imputation doesnt make sense

I'm not sure of the performance, but if it was me I would also explore categorical variables (One-hot encoding). You could make the features: ...
0 votes

I am getting all scores as 100% on my machine learning models. Is it okay to have this kind of result?

This could indicate one of two things. Either your model is overfitting to the test data, or your features fully explain your target variable. The only way to be sure would be if you had (or could ...
  • 991
3 votes

How to handle missing value if imputation doesnt make sense

Your approach of a binary categorical feature, is_married definitely sounds good. In some of my projects, I have checked for the percentage of missing values in a column. For instance, if a certain ...
  • 131
6 votes

How to handle missing value if imputation doesnt make sense

You could consider setting years_married to -1, then it is different from columns for the ones that are just married and could thus be understood by a decision tree....
  • 126
6 votes

How to handle missing value if imputation doesnt make sense

I think this is a good solution. You could also try to set a unique negative value for non-married people, especially if you are using a tree-based model.

Top 50 recent answers are included