Skip to content

Instantly share code, notes, and snippets.

View cyberandy's full-sized avatar
:octocat:
Yo!

Andrea Volpini cyberandy

:octocat:
Yo!
View GitHub Profile
@cyberandy
cyberandy / embeddings_projectors.tsv
Last active December 8, 2021 15:13
KG embeddings WordLift Blog
We can't make this file beautiful and searchable because it's too large.
-1.939915269613265991e-01 1.591661721467971802e-01 -1.672201305627822876e-01 1.209882497787475586e-01 -5.643929913640022278e-02 4.935293793678283691e-01 -6.038862466812133789e-02 -1.090269684791564941e-01 2.572527155280113220e-02 3.857810050249099731e-02 -1.982329189777374268e-01 -1.586464643478393555e-01 2.125328406691551208e-02 -4.903687909245491028e-02 1.097567379474639893e-01 -9.682913124561309814e-02 -1.226566657423973083e-01 -2.898987829685211182e-01 5.542956665158271790e-02 1.637598723173141479e-01 9.308864921331405640e-02 9.676701575517654419e-02 -1.217111721634864807e-01 -1.757894456386566162e-01 -4.662900418043136597e-02 -1.659229546785354614e-01 1.724372655153274536e-01 8.154600858688354492e-02 -1.724783033132553101e-01 3.298109024763107300e-02 -1.414460539817810059e-01 3.574710339307785034e-02 -2.298669368028640747e-01 8.744690567255020142e-02 -1.625491678714752197e-01 -1.283032745122909546e-01 -2.943382263183593750e-01 -6.229398399591445923e-02 1.395162492990493774e-01 -1.934481412172317505e-01 -
{
"embeddings": [
{
"tensorName": "My tensor",
"tensorShape": [
1000,
50
],
"tensorPath": "https://gist.githubusercontent.com/cyberandy/f40e161d69188df7d5a901b50a64f0fe/raw/674f5c78a0c33d6b6a3da4d726ef918938d4bd68/embeddings_projectors.tsv",
"metadataPath": "https://gist.githubusercontent.com/cyberandy/092f00976a842497a113280197cb61d7/raw/6aab7043891897269c5c35df81f878e4e0a040b1/embeddings_meta.tsv"
@cyberandy
cyberandy / generate-kw.py
Last active April 26, 2019 20:30
How to generate keywords using textgenrnn (read more about it here: https://wordlift.io/blog/en/keyword-suggestion-tool-tensorflow/)
from textgenrnn import textgenrnn
textgen = textgenrnn(weights_path='keygen_weights.hdf5',
vocab_path='keygen_vocab.json',
config_path='keygen_config.json')
textgen.generate_samples(max_gen_length=5, temperatures=[0.2,0.5])
Verifying my Blockstack ID is secured with the address 13a7qtZbLBSMrY32fZLoKtcnnkEzRmezob https://explorer.blockstack.org/address/13a7qtZbLBSMrY32fZLoKtcnnkEzRmezob