Giter VIP home page Giter VIP logo

drl-rec's People

Contributors

luozachary avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drl-rec's Issues

执行的过程中出现的问题

drl-rec-master/pre_process_data.py这个文件中的错误:
list(map(lambda t: list(np.array(t.split(','), dtype=np.float64)), row[org].split('|')))
AttributeError: ("'int' object has no attribute 'split'", 'occurred at index 0')

在我的电脑上运行出现这样的问题。

Error training with sample data

I'm trying to use the sample data to train the model but I get the following error:

  File "build_estimator.py", line 11, in <module>
    from replay_buffer import RelayBuffer
  File "/.../drl-rec/replay_buffer.py", line 7, in <module>
    from simulator import data
  File "/.../drl-rec/simulator.py", line 6, in <module>
    from pre_process_data import data
  File "/.../drl-rec/pre_process_data.py", line 94, in <module>
    data, recall_data = process_data("train.csv", "embed.csv")
  File "/.../drl-rec/pre_process_data.py", line 29, in process_data
    ], axis=1
  File "/.../anaconda2/envs/tensorflow/lib/python3.7/site-packages/pandas/core/frame.py", line 6487, in apply
    return op.get_result()
  File "/.../envs/tensorflow/lib/python3.7/site-packages/pandas/core/apply.py", line 151, in get_result
    return self.apply_standard()
  File "/.../anaconda2/envs/tensorflow/lib/python3.7/site-packages/pandas/core/apply.py", line 257, in apply_standard
    self.apply_series_generator()
  File "/.../anaconda2/envs/tensorflow/lib/python3.7/site-packages/pandas/core/apply.py", line 286, in apply_series_generator
    results[i] = self.f(v)
  File "/.../drl-rec/pre_process_data.py", line 27, in <lambda>
    list(map(lambda t: list(np.array(t.split(','), dtype=np.float64)), row[org].split('|')))
AttributeError: ("'int' object has no attribute 'split'", 'occurred at index 0')

I found that in the README the elements are separated with ',' but in the sample data they are separated with '|'. I don't know if that is the problem, I think that it could also be that I'm using different versions of the dependencies. It would be nice if you could provide a requirements file with that information.

error

gene_action产生的是id,怎么可以reshape成[a_dim,]传入critic网络的不应该是action对应的权重吗

loss

您好,为什么我在结合数据集训练过程中,reward是越来越高的,但是critic网络的loss却越来越大

the version of tensorflow

Thanks for your work , and I have downloaded this project and plan to run it on my computer. However, I failed in tf12 and tf13. So what is the version of tf in this project, or is there any mistakes of my operations?

ValueError: cannot reshape array of size 11 into shape (1,12,30)

Traceback (most recent call last):
File "build_estimator.py", line 398, in
main(args_)
File "build_estimator.py", line 358, in main
env = Simulator()
File "/dockerdata/danielgxu/sucai_paoma/drl-rec-master/simulator.py", line 15, in init
self.init_state = self.reset()
File "/dockerdata/danielgxu/sucai_paoma/drl-rec-master/simulator.py", line 20, in reset
init_state = np.array(self.data['state_float'].sample(1).values[0]).reshape((1, 12, 30))
ValueError: cannot reshape array of size 11 into shape (1,12,30)

数据格式

"train.csv"还有"embed.csv"里面的数据格式具体是怎样的呢?能截图一下吗?

Training and recall data format for the model

Is the training data format as follows:

state action n_state reward embedding
s1,s2,s3| s4,s5,s6 a1,a2,a3| a4,a5,a6 n1,n2,n3| n4,n5,n6 r1,r2,r3| r4,r5,r6 e1,e2,e3| e4,e5,e6

Recall data format and what about the embedding dimension ?

embedding
e1,e2,e3,e4,e5,e6

Does this code work?

您好,这写代码是drl for list-wise recommendation 的代码吗? 最终能跑出结果吗

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.