Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

Using a model to evaluate over or under-priced rental prices for the same apartments used in training

If I have a machine learning model which predicts the rental prices of apartments, can I use the model once complete to analyse the prediction for the same apartments I used to train the model so I ...
AWGIS's user avatar
  • 83
0 votes
0 answers
23 views

Lasso regression test MSE lower than train MSE

Im currently using Lasso to build a predictive model for numeric variable . Before scaling the features I split the data for train test and validation . I have a feature named 'year' and i wanted the ...
liza read's user avatar
1 vote
0 answers
316 views

random split vs temporal/time based split

Some background: I want to train a regression model to predict future prices for used cars. I have about 85,000 observations collected from November 2022 to June 2023 and have around 80 different ...
Jash Shah's user avatar
  • 267
-1 votes
2 answers
2k views

Should I use transformer.fit_transform(X_test, y_test) or not?

tl-dr: The function model.fit() is different from transformer.fit(). My idea is to make all transformations needed on the training set and after that on the test set with fit_transform in both. Hi! I'...
Antonio Caipora's user avatar
0 votes
0 answers
25 views

Running model on full dataset or just test set?

I'm new to using XGBoost and I'm confused about how we should obtain the XGBoost predicted values for each data point. For example, the process for fitting and evaluating an XGBoost model is: ...
codemachino's user avatar
2 votes
1 answer
847 views

How to distinguish two versions of R-squared calculated on test set?

I've come across two ways that people calculate R-squared on a test set: Calculate the square of the correlation between predictions and actual values (in practice, I've seen people do this in R by ...
Adrian's user avatar
  • 4,404
4 votes
1 answer
642 views

Rule based label - random split vs time-based split

We have a dataset of 977 records (77:23 class ratio) where we try to predict a binary outcome using random forests and neural networks. whether supplier met the target or not. However, we didn't have ...
The Great's user avatar
  • 3,342
2 votes
1 answer
3k views

random split vs time based split of train and test data

I have been working on binary classification problem using algorithms such as Random Forest, Boosting methods, neural networks and logistic regression. I have data from Jan 2017 to Jan 2022. We wish ...
The Great's user avatar
  • 3,342