Skip to content

Instantly share code, notes, and snippets.

@CharlesHD
Created November 30, 2018 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CharlesHD/2dc375b7c0cfda4656cc1d0de915f055 to your computer and use it in GitHub Desktop.
Save CharlesHD/2dc375b7c0cfda4656cc1d0de915f055 to your computer and use it in GitHub Desktop.
chu.trajectory-call.db> pb1
{:simopts
{:name "w2v",
:config
{:min-word-frequency 5,
:layer-size 20,
:window-size 5,
:seed 42,
:iterations 10,
:stop-words []}},
:trajopts
{:numvec "tail-parent",
:comb-1 "average",
:comb-2 "average",
:keep? false,
:quantity-thresh 20,
:quality-thresh 0.78}}
chu.trajectory-call.db> pb2
{:simopts
{:config
{:min-word-frequency 5,
:window-size 5,
:layer-size 20,
:seed 42,
:stop-words [],
:iterations 10},
:name "w2v"},
:trajopts
{:numvec "tail-parent",
:comb-2 "average",
:keep? false,
:quality-thresh 0.78,
:quantity-thresh 20,
:comb-1 "average"}}
chu.trajectory-call.db> (mc/count db "trajectory" pb1)
3
chu.trajectory-call.db> (mc/count db "trajectory" pb2)
0
chu.trajectory-call.db> (monger.conversion/to-db-object pb1)
{"simopts" {"name" "w2v", "config" {"min-word-frequency" 5, "layer-size" 20, "window-size" 5, "seed" 42, "iterations" 10, "stop-words" ()}}, "trajopts" {"numvec" "tail-parent", "comb-1" "average", "comb-2" "average", "keep?" false, "quantity-thresh" 20, "quality-thresh" 0.78}}
chu.trajectory-call.db> (monger.conversion/to-db-object pb2)
{"simopts" {"config" {"min-word-frequency" 5, "window-size" 5, "layer-size" 20, "seed" 42, "stop-words" (), "iterations" 10}, "name" "w2v"}, "trajopts" {"numvec" "tail-parent", "comb-2" "average", "keep?" false, "quality-thresh" 0.78, "quantity-thresh" 20, "comb-1" "average"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment