dsxiangli / ctr Goto Github PK
View Code? Open in Web Editor NEWCTR模型代码和学习笔记总结
CTR模型代码和学习笔记总结
请问模型预测有没有相关代码?
你好,请问代码使用的tensorflow版本是多少呢
拜读了https://www.cnblogs.com/gogoSandy/p/12658051.html 和emmlp的实现,请教一个问题
EmbeddingInput 中 对于sparse feature为什么要单独做 tf.matmul(sparse_input, weight) op?
Just like in which version of tf...
Thanks~
你好,请问NFM代码中model_fn_sparse函数是做什么的呢?model_fn_dense这个函数不是已经实现论文中的模型了吗?多出的这个model_fn_sparse是做什么的呢?
你好,看了PNN下PNN.py中关于OPNN下的代码。有两个疑问:
1.outer_product = tf.concat(outer_collection, axis=1)这句加不加有什么用吗?还是其他什么原因?
2.“tf.einsum('ai,aj->aij',vi,vj)”这一句怎么理解呢?和论文中哪一部分对应呢?
请问PNN.py中 36行outer_product = tf.concat(outer_collection, axis=1)是否应该向前在缩进啊?
1.DIN.py中attention函数下
dense = tf.layers.dense(dense, units= unit, activation = tf.nn.relu, name = 'attention_{}'.format(i))
这里的激活函数tf.nn.relu是不是换成论文中提到的Dice更好?
2.CTR这类模型在对特征做embedding时候,是不是每一个特征变量都要单独做一个从特征维度(即每一个变量one_hot后的维度)到D维(即embedding输出后的固定维度)的变换?
Hello! I've found a performance issue in utils.py: .batch(MODEL_PARAMS['batch_size'] )
(line 72) should be called before .map( parse_example_helper_csv, num_parallel_calls=8 )
(line 46), which could make your program more efficient.
Here is the tensorflow document to support it.
Besides, you need to check the function parse_example_helper_csv
called in .map( parse_example_helper_csv, num_parallel_calls=8 )
whether to be affected or not to make the changed code work properly. For example, if parse_example_helper_csv
needs data with shape (x, y, z) as its input before fix, it would require data with shape (batch_size, x, y, z) after fix.
Looking forward to your reply. Btw, I am very glad to create a PR to fix it if you are too busy.
这个工程能跑起来,为啥载人都是各种错误
你好!FM代码中“interaction_term = 0.5 * tf.reduce_mean(sum_square - square_sum, axis=1, keep_dims= True)”
论文中用的是求和,这里用的是求均值。是考虑到k不同,且k选取越大、二阶交叉项越大,所以才取的均值吗?为了消除不同k取值的影响?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.