Skip to content

Instantly share code, notes, and snippets.

@blehman
Created March 26, 2024 18:49
Show Gist options
  • Save blehman/e91e0241aa76f5fa8b4ce84667ad82e7 to your computer and use it in GitHub Desktop.
Save blehman/e91e0241aa76f5fa8b4ce84667ad82e7 to your computer and use it in GitHub Desktop.
Coherence Scores (broken chart)
{
"config": {
"view": {"continuousWidth": 300, "continuousHeight": 300},
"axis": {"titleFontSize": 15},
"legend": {
"labelFont": "Courier",
"labelFontSize": 15,
"labelOverlap": false,
"symbolSize": 400,
"symbolStrokeWidth": 5,
"title": null,
"titleFontSize": 15
},
"title": {
"anchor": "start",
"color": "gray",
"font": "Courier",
"fontSize": 30
}
},
"layer": [
{
"mark": {"type": "line"},
"encoding": {"color": {"field": "Measure", "type": "nominal"}},
"transform": [{"fold": ["c_v", "u_mass"], "as": ["Measure", "Value"]}]
},
{
"mark": {"type": "line", "color": "#1f77b4", "point": true},
"encoding": {
"tooltip": [
{"field": "num_topics", "type": "quantitative"},
{"field": "c_v", "type": "quantitative"},
{"field": "alpha", "type": "nominal"},
{"field": "method", "type": "nominal"}
],
"x": {"field": "num_topics", "type": "quantitative"},
"y": {"field": "c_v", "type": "quantitative"}
}
},
{
"mark": {"type": "line", "color": "#ff7f0e", "point": true},
"encoding": {
"tooltip": [
{"field": "num_topics", "type": "quantitative"},
{"field": "u_mass", "type": "quantitative"},
{"field": "alpha", "type": "nominal"},
{"field": "method", "type": "nominal"}
],
"x": {"field": "num_topics", "type": "quantitative"},
"y": {"field": "u_mass", "type": "quantitative"}
}
}
],
"data": {"name": "data-158e851b658bf115a1b9c8d3135d23c8"},
"height": 400,
"resolve": {"scale": {"y": "independent"}},
"title": {"text": ["Coherence Scores"], "subtitle": [""]},
"width": 800,
"$schema": "https://vega.github.io/schema/vega-lite/v5.8.0.json",
"datasets": {
"data-158e851b658bf115a1b9c8d3135d23c8": [
{
"c_v": 0.38576657424883387,
"u_mass": -15.138826886367623,
"num_topics": 3,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.3786172873055715,
"u_mass": -15.08493258523967,
"num_topics": 3,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.38576657424883387,
"u_mass": -15.138826886367623,
"num_topics": 3,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.3786172873055715,
"u_mass": -15.08493258523967,
"num_topics": 3,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.38576657424883387,
"u_mass": -15.138826886367623,
"num_topics": 3,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.40354754670770904,
"u_mass": -15.404245752681952,
"num_topics": 4,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.4075324670291686,
"u_mass": -15.361146241919467,
"num_topics": 4,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.40354754670770904,
"u_mass": -15.404245752681952,
"num_topics": 4,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.4075324670291686,
"u_mass": -15.361146241919467,
"num_topics": 4,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.40354754670770904,
"u_mass": -15.404245752681952,
"num_topics": 4,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.37813917576675166,
"u_mass": -13.561106754233489,
"num_topics": 5,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.3842093407736307,
"u_mass": -13.572590891702884,
"num_topics": 5,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.37813917576675166,
"u_mass": -13.561106754233489,
"num_topics": 5,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.3842093407736307,
"u_mass": -13.572590891702884,
"num_topics": 5,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.37813917576675166,
"u_mass": -13.561106754233489,
"num_topics": 5,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.34379083116735587,
"u_mass": -12.159011587575103,
"num_topics": 6,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.348600346351154,
"u_mass": -12.203400952543793,
"num_topics": 6,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.34379083116735587,
"u_mass": -12.159011587575103,
"num_topics": 6,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.348600346351154,
"u_mass": -12.203400952543793,
"num_topics": 6,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.34379083116735587,
"u_mass": -12.159011587575103,
"num_topics": 6,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.36641434901945186,
"u_mass": -12.430619571218035,
"num_topics": 7,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.37399970518812153,
"u_mass": -12.595452154962235,
"num_topics": 7,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.36641434901945186,
"u_mass": -12.430619571218035,
"num_topics": 7,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.37399970518812153,
"u_mass": -12.595452154962235,
"num_topics": 7,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.36641434901945186,
"u_mass": -12.430619571218035,
"num_topics": 7,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.3906435170495448,
"u_mass": -12.283182055864689,
"num_topics": 8,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.39000327102039256,
"u_mass": -12.253456002067232,
"num_topics": 8,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.3906435170495448,
"u_mass": -12.283182055864689,
"num_topics": 8,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.39000327102039256,
"u_mass": -12.253456002067232,
"num_topics": 8,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.3906435170495448,
"u_mass": -12.283182055864689,
"num_topics": 8,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.4208788151699155,
"u_mass": -11.699820972050873,
"num_topics": 9,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.410964298489358,
"u_mass": -11.418123003323451,
"num_topics": 9,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.4208788151699155,
"u_mass": -11.699820972050873,
"num_topics": 9,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.410964298489358,
"u_mass": -11.418123003323451,
"num_topics": 9,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.4208788151699155,
"u_mass": -11.699820972050873,
"num_topics": 9,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.394853419464528,
"u_mass": -11.52794640874888,
"num_topics": 10,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.38999753812367166,
"u_mass": -11.813170883419488,
"num_topics": 10,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.394853419464528,
"u_mass": -11.52794640874888,
"num_topics": 10,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.38999753812367166,
"u_mass": -11.813170883419488,
"num_topics": 10,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.394853419464528,
"u_mass": -11.52794640874888,
"num_topics": 10,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.40411059504549307,
"u_mass": -10.967024593284277,
"num_topics": 11,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.408282856680155,
"u_mass": -10.822335465798153,
"num_topics": 11,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.40411059504549307,
"u_mass": -10.967024593284277,
"num_topics": 11,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.408282856680155,
"u_mass": -10.822335465798153,
"num_topics": 11,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.40411059504549307,
"u_mass": -10.967024593284277,
"num_topics": 11,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.4231138497688758,
"u_mass": -9.54276902805483,
"num_topics": 12,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.42576661983303327,
"u_mass": -9.595523711613787,
"num_topics": 12,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.4231138497688758,
"u_mass": -9.54276902805483,
"num_topics": 12,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.42576661983303327,
"u_mass": -9.595523711613787,
"num_topics": 12,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.4231138497688758,
"u_mass": -9.54276902805483,
"num_topics": 12,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.4123065749731335,
"u_mass": -10.618304616569057,
"num_topics": 13,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.4168731522784058,
"u_mass": -10.658039187420107,
"num_topics": 13,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.4123065749731335,
"u_mass": -10.618304616569057,
"num_topics": 13,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.4168731522784058,
"u_mass": -10.658039187420107,
"num_topics": 13,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.4123065749731335,
"u_mass": -10.618304616569057,
"num_topics": 13,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.40868905202129285,
"u_mass": -10.714064569781483,
"num_topics": 14,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.4103538908461354,
"u_mass": -10.72234680934103,
"num_topics": 14,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.40868905202129285,
"u_mass": -10.714064569781483,
"num_topics": 14,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.4103538908461354,
"u_mass": -10.72234680934103,
"num_topics": 14,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.40868905202129285,
"u_mass": -10.714064569781483,
"num_topics": 14,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.4187594028904367,
"u_mass": -10.436031988425016,
"num_topics": 15,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.41987405909825565,
"u_mass": -10.383911991865368,
"num_topics": 15,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.4187594028904367,
"u_mass": -10.436031988425016,
"num_topics": 15,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.41987405909825565,
"u_mass": -10.383911991865368,
"num_topics": 15,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.4187594028904367,
"u_mass": -10.436031988425016,
"num_topics": 15,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.4034561218923667,
"u_mass": -10.589758007737508,
"num_topics": 16,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.4024294166198177,
"u_mass": -10.55069915719764,
"num_topics": 16,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.4034561218923667,
"u_mass": -10.589758007737508,
"num_topics": 16,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.4024294166198177,
"u_mass": -10.55069915719764,
"num_topics": 16,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.4034561218923667,
"u_mass": -10.589758007737508,
"num_topics": 16,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.39564628591129014,
"u_mass": -10.312682749706601,
"num_topics": 17,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.4065288057031773,
"u_mass": -10.405474411157757,
"num_topics": 17,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.39564628591129014,
"u_mass": -10.312682749706601,
"num_topics": 17,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.4065288057031773,
"u_mass": -10.405474411157757,
"num_topics": 17,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.39564628591129014,
"u_mass": -10.312682749706601,
"num_topics": 17,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.37614847800539813,
"u_mass": -10.867013489506155,
"num_topics": 18,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.3807137856777964,
"u_mass": -10.856894157154882,
"num_topics": 18,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.37614847800539813,
"u_mass": -10.867013489506155,
"num_topics": 18,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.3807137856777964,
"u_mass": -10.856894157154882,
"num_topics": 18,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.37614847800539813,
"u_mass": -10.867013489506155,
"num_topics": 18,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.41816982242111317,
"u_mass": -10.849085124925017,
"num_topics": 19,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.4195193174507677,
"u_mass": -10.839532829904774,
"num_topics": 19,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.41816982242111317,
"u_mass": -10.849085124925017,
"num_topics": 19,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.4195193174507677,
"u_mass": -10.839532829904774,
"num_topics": 19,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.41816982242111317,
"u_mass": -10.849085124925017,
"num_topics": 19,
"eta": "auto",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.3934268797797406,
"u_mass": -10.652674413126274,
"num_topics": 20,
"eta": "symmetric",
"alpha": "auto",
"method": "m1"
},
{
"c_v": 0.39600442202229635,
"u_mass": -10.576468823558711,
"num_topics": 20,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m1"
},
{
"c_v": 0.3934268797797406,
"u_mass": -10.652674413126274,
"num_topics": 20,
"eta": "symmetric",
"alpha": "auto",
"method": "m2"
},
{
"c_v": 0.39600442202229635,
"u_mass": -10.576468823558711,
"num_topics": 20,
"eta": "symmetric",
"alpha": "symmetric",
"method": "m2"
},
{
"c_v": 0.3934268797797406,
"u_mass": -10.652674413126274,
"num_topics": 20,
"eta": "auto",
"alpha": "auto",
"method": "m2"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment