Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 32429

Use for data science questions related to the programming language Python. Not intended for general coding questions (which should be asked on Stack Overflow).

3 votes
1 answer
2k views

SARIMAX with seasonality greater than one year

I would use Statsmodels SARIMAX with data having seasonality greater than one year. In my case, I have seasonality equal 4 years, therefore I have tried: smt.SARIMAX(endog, order=(p, d, q), seasonal_ …
Simone's user avatar
  • 715
0 votes
1 answer
3k views

How to correctly infer vectors in Gensim doc2vec?

I would like to know which is the correct procedure for inferring vectors in Gensim doc2vec. I have a dataframe df with a feature, called name, and composed of two subsets train and test. df = trai …
Simone's user avatar
  • 715
2 votes
1 answer
458 views

Mismatching target dimension in Keras LSTM

I have built this network for text classification: model = Sequential() model.add(Embedding(vocabulary_dim, 150, input_length=max_length)) model.add(LSTM(150, return_sequences=False)) model.add(Dens …
Simone's user avatar
  • 715
4 votes
Accepted

Xgboost - How to use feature_importances_ with XGBRegressor()?

Finally I have solved this issue by: model.booster().get_score(importance_type='weight')
Simone's user avatar
  • 715
12 votes
3 answers
42k views

Xgboost - How to use feature_importances_ with XGBRegressor()?

How could we get feature_importances when we are performing regression with XGBRegressor()? There is something like XGBClassifier().feature_importances_?
Simone's user avatar
  • 715
1 vote
1 answer
707 views

How to correctly pass Word2Vec vectors as input to an LSTM

I am trying to build a text classifier using lstm which, in its first layer, has weights get by a Word2Vecmodel. In order to build a matrix containing the indexes of each word for each sentence, I ha …
Simone's user avatar
  • 715