Git Product home page Git Product logo

Comments (6)

jrzaurin avatar jrzaurin commented on June 13, 2024

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.

LinXin04 avatar LinXin04 commented on June 13, 2024

@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.

jrzaurin avatar jrzaurin commented on June 13, 2024

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.

LinXin04 avatar LinXin04 commented on June 13, 2024

@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.

jrzaurin avatar jrzaurin commented on June 13, 2024
" 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.

LinXin04 avatar LinXin04 commented on June 13, 2024

Thank you very much!

from pytorch-widedeep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.