Comments (6)
Hi @LinXin04, yes, it can, you can perhaps take these two notebooks (part 1 and part 2 ) as an example.
In there, we use a sequence of movies watched to predict the next movie a user would watch. But in general, the problem can be frame as to use a sequence of events to predict anything.
Let me know if you have other questions
from pytorch-widedeep.
@jrzaurin
Thank you for your advice. I have read the recommended one, but I feel that it is quite different from my scene.
My scenario is to determine the risk type of the user's current transaction.
The factors that need to be considered include the textual data of the current transaction, tabular data, and the transaction behavior sequence (amount, time) of the previous user in a period of time.
how can i achieve it?
from pytorch-widedeep.
Well, that depends more on you than the library really, in the sense that it depends on how you formulate the problem. At the moment we do not support more than one component per mode, for example, we do not support multiple text components. You seem to have a genuine text component and a second data source that is a sequence, that can also be seen/processed as a text component (since text is...well...a sequence).
Therefore, if you wanted to include these two data sources in the model, unfortunately, this is not something we support now, but we are looking into this since you are not the first to ask (see #125 ) .
Now, if you manage to formulate the problem such that you can represent the sequence also in tabular form and have two data modes (tabular and text) then the library could do it as "usual" (i.e. model = WideDeep(deeptabular = ..., deeptext=...)
).
I hope this helps, and let me know if you have more questions :)
from pytorch-widedeep.
@jrzaurin
Thank you. But when i have text and sequence at the same time, i will have two 'deeptext'. but now this is not supported?
for example, now you support:
text_col="review_text"
but not support:
text_cols=["review_text_1", "review_text_2"]
if i have two real texts, then i can concatenate two texts together?
from pytorch-widedeep.
" for example, now you support:
text_col="review_text"
but not support:
text_cols=["review_text_1", "review_text_2"]"
This is correct, we do not support this at the moment, see here: text_col
must be a str
If you concatenate texts together and pass then as a single column, then yes, that is 100% fine
We will address this limitation at some point in the near future, I hope...
from pytorch-widedeep.
Thank you very much!
from pytorch-widedeep.
Related Issues (20)
- Not Being able to reproduce Bert results HOT 5
- pytorch vision module error HOT 1
- save_best_only error and NaN during training HOT 9
- CyclicLR throws ZeroDivisionError when finetuning with a single batch. HOT 2
- EarlyStopping does not store and restore the model HOT 5
- CUDA error: device-side assert triggered HOT 5
- Wrong paper links on ContrastiveDenoisingTrainer HOT 2
- how to save the best Epoch HOT 11
- Dropout layer being created on forward pass (in MultiHeadedAttention) HOT 1
- about Wide's input dim HOT 5
- ImportError: cannot import name 'LRScheduler' from 'torch.optim.lr_scheduler' HOT 8
- OSError when importing the package HOT 4
- AttributeError: 'TabMlp' object has no attribute 'with_fds' HOT 3
- Colab session crash on .fit HOT 3
- IndexError: index out of range in self HOT 4
- how to use lr warmup in traing stage? HOT 3
- Problems running transformer models HOT 5
- 'TextPreprocessor' object has no attribute 'embedding_matrix' HOT 6
- How to install the previous version, the current 1.5 version has been working problems? HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch-widedeep.