Anoncheg on Nostr: Part2: #dailyreport #negativesampleing #sampling #llm #recsys samples Selecting more ...
Part2: #dailyreport #negativesampleing #sampling #llm #recsys
samples
Selecting more frequent words from noise
distribution. P(w) = (f(w)^3/4)/Z, where f(w) frequency
of word, Z - normalization constant.
Example "The dog is playing with a bone," and assume a
window size of 2 positive samples for the target word
"dog" would include:
- ("dog", "The")
- ("dog", "is")
- ("dog", "playing")
- ("dog", "with")
- ("dog", "a")
- ("dog", "bone")
Negative Samples: ("dog", "car"), ("dog", "apple"),
("dog", "house"), ("dog", "tree")
calc:
logσ(vdog⋅vbone)+logσ(−vdog⋅vcar)+logσ(−vdog⋅vapple)+logσ(−vdog⋅vhouse)
蠡
Published at
2024-11-03 19:26:46 UTCEvent JSON
{
"id": "765b26826384f6b86076f4ab44823e1e4a9fecc0b0f59b7e1fe832e3e8eff8e7",
"pubkey": "0e41ac9e1529c613ae11d63424e5bb6ed3e61dcc4cb156ccbd8c7dbfc66b6711",
"created_at": 1730662006,
"kind": 1,
"tags": [
[
"t",
"dailyreport"
],
[
"t",
"negativesampleing"
],
[
"t",
"sampling"
],
[
"t",
"llm"
],
[
"t",
"recsys"
],
[
"proxy",
"https://techhub.social/users/Anoncheg/statuses/113420665279299416",
"activitypub"
]
],
"content": "Part2: #dailyreport #negativesampleing #sampling #llm #recsys \n samples\n\nSelecting more frequent words from noise\n distribution. P(w) = (f(w)^3/4)/Z, where f(w) frequency\n of word, Z - normalization constant.\n\nExample \"The dog is playing with a bone,\" and assume a\n window size of 2 positive samples for the target word\n \"dog\" would include:\n- (\"dog\", \"The\")\n- (\"dog\", \"is\")\n- (\"dog\", \"playing\")\n- (\"dog\", \"with\")\n- (\"dog\", \"a\")\n- (\"dog\", \"bone\")\n\nNegative Samples: (\"dog\", \"car\"), (\"dog\", \"apple\"),\n (\"dog\", \"house\"), (\"dog\", \"tree\")\n\ncalc:\n logσ(vdog⋅vbone)+logσ(−vdog⋅vcar)+logσ(−vdog⋅vapple)+logσ(−vdog⋅vhouse)\n\n蠡",
"sig": "57ae618715f96fdf2fb66f7649aa7b73195bea53f88308d221a654a280d8dc56d123154421237480849d4a964bd7e5d03a4834caca406987a1e56e607f729f58"
}