Skip to content

Mixing Toys: combining numerical and text features. #252

Answered by skyblasy
skyblasy asked this question in Q&A
Discussion options

You must be logged in to vote

Just as an update to this (sorry, but I do find this topic intersitng) I found the answer on stack, and it's pretty simple.

r = model.fit(
  [nlp_train, numeric_train],
  y_train,
  epochs=5, 
  validation_data=([nlp_test, numeric_test], y_test))

What's also super interesting is that changing the model to include both text and extracted features, the model's performance improved DRAMATICALLY. I wasn't necessarily surprised by this, but it was gratifying to see..

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mrdbourke
Comment options

@skyblasy
Comment options

Answer selected by skyblasy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants