warchildmd / game2vec Goto Github PK
View Code? Open in Web Editor NEWTensorFlow implementation of word2vec applied on https://www.kaggle.com/tamber/steam-video-games dataset, using both CBOW and Skip-gram.
TensorFlow implementation of word2vec applied on https://www.kaggle.com/tamber/steam-video-games dataset, using both CBOW and Skip-gram.
I don't understand why you would use word2vec. I think what you want is to learn association rules. Association rules would answer a question like "given someone has played/purchased game x what other games have they played/purchased?" Word2vec is going to be sensitive to the order the games are presented in the data, which is probably not want you want here (seeing as the dataset has no information about what order the games were played/purchased in).
Association rules would not care about order, and would be able to consider the full set of games someone has played/purchased, rather than just the plays/purchases near the game in the possibly arbitrarily ordered data.
Also, if you're training word vectors with a dataset this small, you might want to use gensim--using tensorflow here is like bringing a nuclear missle to a knife fight.
Although maybe I've missed something--why didn't you use association rules? Why use word vectors when you have a set where order doesn't matter, especially with a dataset this small, where you certainly can't expect any problem scaling association rules. Why not use gensim?
I am confused about the random_multinomial_choice() function in your train_cbow_weighted.py
file.
The condition of if sentence seems not right.. More likely, if y>=x:
should be here.
In my opinion, if the play time of a game is quite bigger, this game should be return.
Am I right?
Waiting for your reply.
And here is your code.
def random_multinomial_choice(tuples):
x = random.random()
total = sum([hours for _, hours in tuples])
for game, hours in tuples:
y = hours / total
if y <= x:
return game
x -= y
return tuples[-1][0]
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.