Giter VIP home page Giter VIP logo

Comments (6)

shenweichen avatar shenweichen commented on June 4, 2024 1

@Cong-Zou print the shape of train['video_feature'].values and test['video_feature'].values,make sure their shape are(#records,128) .

from deepctr.

shenweichen avatar shenweichen commented on June 4, 2024

@Cong-Zou please refer to

https://github.com/shenweichen/Bytedance_ICME2019_challenge_baseline/blob/master/model.py
image

line 20,21 define a input for continue 128-dimension feature

you can perform the desired operation on video_input tensor

when fit the model,the input to the model is [original input list] + [video_input_array]

from deepctr.

Cong-Zou avatar Cong-Zou commented on June 4, 2024

I have read about the code..
But sorry, I'm a little confused about it.
After I add the two sentences (delete the annotations) in model.py as u suggest,
in train.py, as shown below:
image
do I just need to extend the train and test model input lists with the video feature arrays?

from deepctr.

shenweichen avatar shenweichen commented on June 4, 2024

yes~

from deepctr.

Cong-Zou avatar Cong-Zou commented on June 4, 2024

Hi Weichen,
I have tried like this..
image
The train['video_feature'].values is a ndarray(D=#records) and every entry in it is also an array(D=128).
However, I run the code and get the error as shown below:
image
May I ask the reason about it?
Thanks a lot!

from deepctr.

Cong-Zou avatar Cong-Zou commented on June 4, 2024

Great! It works now..
Thank you again!

from deepctr.

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.