Code Monkey home page Code Monkey logo

deepconn's People

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

deepconn's Issues

Dropout rate

Can I ask you why you use drop rate with 1.0??

I am new to tensorflow, and I found that it means you make all your feature goes to zero.

I don't understand why you choose this..

with tf.name_scope("dropout"):
            self.h_drop_u = tf.nn.dropout(self.h_pool_flat_u, 1.0)
            self.h_drop_i= tf.nn.dropout(self.h_pool_flat_i, 1.0)

in model/deepconn.py

Thanks,

memory error

hello,
When I read 'google.bin',I also got 'memory error'.i change the google.bin file to a smaller one ,but got the same error ,how can i fix it?

def clean_str(string)

感谢您开源代码,对我帮助很大。在data processing里面发现一个问题。clean_str(string)这个函数里面第一行代码只会保留英文字符,所以后面的代码基本没用了。我访问了您提供的链接,发现那部分参考代码更新了。你留意一下就知道我在说啥了。哈哈。

Brilliant Job!

Hi chenchong, after reading your project. I noticed this part 'DeepCoNN++', this part is related to the yelp data set. But after I downloaded yelp's data set, I didn't find the same data set as in ur code like :
yelp.valid, yelp.test, yelp.train, user_review, item_review

My dataset is downloaded from this link 'https://www.yelp.com/dataset/download' and contains like :
business.json, photos.json, review.json and etc..

Could u tell me where can I find ur dataset? Best Wishes! Thank u :)

google.bin

hello,
When I read 'google.bin',I got 'memory error'.
Can I use other smaller data in “.bin” file format instead of this data?Can you provide download link?

Thank you!

改成python3

你好,把代码改成python3的版本相应的tensorflow应该用什么版本呢?

IOError: [Errno 2] No such file or directory: '../data/music/music.valid'

Loading data...
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:885] Found device 0 with properties:
name: GeForce GTX 950M
major: 5 minor: 0 memoryClockRate (GHz) 1.124
pciBusID 0000:01:00.0
Total memory: 3.95GiB
Free memory: 3.21GiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:906] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 0: Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 950M, pci bus id: 0000:01:00.0)
Tensor("fm/Sum:0", shape=(?, 1), dtype=float32)
Tensor("fm/add_1:0", shape=(?, 1), dtype=float32)
WARNING:tensorflow:From train.py:149 in .: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use tf.global_variables_initializer instead.
Load word2vec u file ../data/google.bin

Load word2vec i file ../data/google.bin

518
Traceback (most recent call last):
File "train.py", line 223, in
pkl_file = open(FLAGS.valid_data, 'rb')
IOError: [Errno 2] No such file or directory: '../data/music/music.valid'
(.venv) mldl@ub1604:~/ub16_prj/DeepCoNN/model$

no dataset?

hi author,
Do you have shared the dataset of this project?

Some errors occurred When I run your code

Hello authors:
After I run your code , some errors happened . my running environment is python2.7 and Tensorflow 0.12.1
, Here are some basic errors:

Load word2vec u file ../data/google.bin
File "/home/zxj/PycharmProjects/DeepCoNN/model/train.py", line 157, in
with open(FLAGS.word2vec, "rb") as f:
IOError: [Errno 2] No such file or directory: '../data/google.bin'

user与item是否应该使用同样的词向量矩阵

with tf.name_scope("user_embedding"):
self.W1 = tf.Variable(
tf.random_uniform([user_vocab_size, embedding_size], -1.0, 1.0),
name="W")

with tf.name_scope("item_embedding"):
self.W2 = tf.Variable(
tf.random_uniform([item_vocab_size, embedding_size], -1.0, 1.0),
name="W")

你好, 你的实现中针对user,item使用了不同的lookup 矩阵,也就是说,同一个单词在user中对应的词向量,跟item中对应的词向量是不一样的;
这似乎有点说不通。

google.bin 相关疑问

前辈您好,
您在代码里注释的
#tf.flags.DEFINE_string("word2vec", "./data/rt-polaritydata/google.bin", "Word2vec file with pre-trained embeddings (default: None)")
这个google.bin文件就是谷歌的GoogleNews-vectors-negative300.bin文件是么?

修改

厉害,多谢分享

Overfitting

Hello i want to ask if your results are overfitting on the test set,but the train loss has been decreasing.

关于训练机器内存

大佬,您好
我想问一下,你当时训练时候机器的内存是多少呢。我目前训练这个机器的内存是22g,然后虚拟内存是55g,最后还是内存爆满。

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.