{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "WARNING: Method definition describe(AbstractArray) in module StatsBase at /home/ubuntu/.julia/v0.5/StatsBase/src/scalarstats.jl:573 overwritten in module DataFrames at /home/ubuntu/.julia/v0.5/DataFrames/src/abstractdataframe/abstractdataframe.jl:407.\n", "WARNING: Method definition require(Symbol) in module Base at loading.jl:345 overwritten in module Query at /home/ubuntu/.julia/v0.5/Requires/src/require.jl:12.\n", "\u001b[1m\u001b[34mINFO: Recompiling stale cache file /home/ubuntu/.julia/lib/v0.5/Ratios.ji for module Ratios.\n", "\u001b[0m\u001b[1m\u001b[34mINFO: Recompiling stale cache file /home/ubuntu/.julia/lib/v0.5/KernelDensity.ji for module KernelDensity.\n", "\u001b[0m" ] } ], "source": [ "using JLD\n", "using Glob\n", "using DataFrames\n", "using Query\n", "using Plots\n", "using StatPlots\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "using MLLabelUtils\n", "using ColoringNames" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "cd(Pkg.dir(\"ColoringNames\"))" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "function add_run!(all_runs, filename, results_field=\"validation_set_results\")\n", " run_data = load(filename)\n", " row = Dict{Symbol,Any}(Symbol(kk)=>vv for (kk, vv) in run_data if Symbol(kk) in names(all_runs))\n", " merge!(row, run_data[results_field])\n", " push!(all_runs,row)\n", " all_runs\n", "end" ] }, { "cell_type": "code", "execution_count": 32, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
embedding_dimhidden_layer_sizeperpmse_to_peakperp_satperp_hueperp_valperp_uniform_baseline
13225626.908982562591950.1433593659513521841.33819512462669415.14811427561126731.11585565580671599048.01581624868
21625626.9346459038026320.144450193721638241.3813792150592415.16680476418853431.1339880053643799048.01581624868
36425626.938108386728240.143587807428445641.3860024445880215.17977030136223831.11591733114200499048.01581624868
41612827.077515901093710.143605207775110841.53909863394546415.2891701591605131.25974824628531299048.01581624868
56412827.087131077407730.1446111955454510741.5350383375836215.29863818172566631.2767514476163199048.01581624868
63212827.1018610940325080.1437345028317484641.531246156039815.32161633543921731.28367746312509599048.01581624868
7325627.3676914983323020.1485015563647861241.9060858391506415.4573652465585131.644768982260345108545.01036974895
8326427.668460775244110.1492113449855087342.1860643405977415.72075420858297431.93835989375944499048.01581624868
9646427.7935796249830070.160422561107785342.471573773891215.72965385624492532.1377844818077699048.01581624868
10312828.1105424204880450.1681650983162910342.6292054367765615.95283782510178832.66348272898015108545.01036974895
11166429.2221002280359520.1956669544280217645.1824816878197616.10863465499106434.28510350692026108545.01036974895
1236429.9894634821948430.2140050107466852644.9903619618068916.76382699689093835.76131096886941108545.01036974895
13323230.838113315892430.2261261047161613546.3134399598123717.79967178784687635.5749555238506699048.01581624868
14643231.578275753835640.2611626969072120647.90506836061539517.57246687507872837.40684162934318499048.01581624868
1533233.5009232224615940.2918400580366236650.30857457790257618.90213314173469439.53825484523089108545.01036974895
16163233.551350995879240.2706691130053065549.15434526913800519.37268301608363839.6623414487058108545.01036974895
" ], "text/plain": [ "16×8 DataFrames.DataFrame\n", "│ Row │ embedding_dim │ hidden_layer_size │ perp │ mse_to_peak │ perp_sat │\n", "├─────┼───────────────┼───────────────────┼─────────┼─────────────┼──────────┤\n", "│ 1 │ 32 │ 256 │ 26.909 │ 0.143359 │ 41.3382 │\n", "│ 2 │ 16 │ 256 │ 26.9346 │ 0.14445 │ 41.3814 │\n", "│ 3 │ 64 │ 256 │ 26.9381 │ 0.143588 │ 41.386 │\n", "│ 4 │ 16 │ 128 │ 27.0775 │ 0.143605 │ 41.5391 │\n", "│ 5 │ 64 │ 128 │ 27.0871 │ 0.144611 │ 41.535 │\n", "│ 6 │ 32 │ 128 │ 27.1019 │ 0.143735 │ 41.5312 │\n", "│ 7 │ 3 │ 256 │ 27.3677 │ 0.148502 │ 41.9061 │\n", "│ 8 │ 32 │ 64 │ 27.6685 │ 0.149211 │ 42.1861 │\n", "│ 9 │ 64 │ 64 │ 27.7936 │ 0.160423 │ 42.4716 │\n", "│ 10 │ 3 │ 128 │ 28.1105 │ 0.168165 │ 42.6292 │\n", "│ 11 │ 16 │ 64 │ 29.2221 │ 0.195667 │ 45.1825 │\n", "│ 12 │ 3 │ 64 │ 29.9895 │ 0.214005 │ 44.9904 │\n", "│ 13 │ 32 │ 32 │ 30.8381 │ 0.226126 │ 46.3134 │\n", "│ 14 │ 64 │ 32 │ 31.5783 │ 0.261163 │ 47.9051 │\n", "│ 15 │ 3 │ 32 │ 33.5009 │ 0.29184 │ 50.3086 │\n", "│ 16 │ 16 │ 32 │ 33.5514 │ 0.270669 │ 49.1543 │\n", "\n", "│ Row │ perp_hue │ perp_val │ perp_uniform_baseline │\n", "├─────┼──────────┼──────────┼───────────────────────┤\n", "│ 1 │ 15.1481 │ 31.1159 │ 99048.0 │\n", "│ 2 │ 15.1668 │ 31.134 │ 99048.0 │\n", "│ 3 │ 15.1798 │ 31.1159 │ 99048.0 │\n", "│ 4 │ 15.2892 │ 31.2597 │ 99048.0 │\n", "│ 5 │ 15.2986 │ 31.2768 │ 99048.0 │\n", "│ 6 │ 15.3216 │ 31.2837 │ 99048.0 │\n", "│ 7 │ 15.4574 │ 31.6448 │ 108545.0 │\n", "│ 8 │ 15.7208 │ 31.9384 │ 99048.0 │\n", "│ 9 │ 15.7297 │ 32.1378 │ 99048.0 │\n", "│ 10 │ 15.9528 │ 32.6635 │ 108545.0 │\n", "│ 11 │ 16.1086 │ 34.2851 │ 108545.0 │\n", "│ 12 │ 16.7638 │ 35.7613 │ 108545.0 │\n", "│ 13 │ 17.7997 │ 35.575 │ 99048.0 │\n", "│ 14 │ 17.5725 │ 37.4068 │ 99048.0 │\n", "│ 15 │ 18.9021 │ 39.5383 │ 108545.0 │\n", "│ 16 │ 19.3727 │ 39.6623 │ 108545.0 │" ] }, "execution_count": 32, "metadata": {}, "output_type": "execute_result" } ], "source": [ "all_runs= DataFrame(\n", " embedding_dim=Int[],\n", " hidden_layer_size=Int[],\n", " perp=Float64[],\n", " mse_to_peak=Float64[],\n", " perp_sat=Float64[],\n", " perp_hue=Float64[],\n", " perp_val=Float64[],\n", " perp_uniform_baseline=Float64[])\n", "\n", "for fn in glob(glob\"models/hyperparam_validation/*/meta_v2.jld\")\n", " add_run!(all_runs, fn, \"results_validation_set\")\n", "end\n", "\n", "sort!(all_runs; cols=:perp)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "all_runs= DataFrame(\n", " splay_std_dev_in_bins=Float64[],\n", " perp=Float64[],\n", " mse_to_peak=Float64[],\n", " perp_sat=Float64[],\n", " perp_hue=Float64[],\n", " perp_val=Float64[],\n", " perp_uniform_baseline=Float64[])\n", "\n", "for fn in glob(glob\"models/spread_validation/*/params.jld\")\n", " add_run!(all_runs, fn, \"validation_set_results\") \n", "end\n", "\n", "#sort!(all_runs; cols=:perp)\n", "all_runs" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 147, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
splay_std_dev_in_binsoutput_resperpmse_to_peakperp_satperp_hueperp_valperp_uniform_baseline
10.06253213.9194466449104310.125963668499179820.9885437532449478.07500750691975715.912582567625028108545.01036974895
20.031253213.9300733302366360.1259758687148571620.991900358772638.09109017490241715.914808244689898108545.01036974895
30.1253213.8997635723349030.127135967248343620.982388240552588.04542881134146115.908093122733215108545.01036974895
40.253213.8669453483092830.1271611180894790220.9723044535093887.99636372240074215.900241399954785108545.01036974895
50.53213.8276397719772850.1278597285096031220.96075560784677.93863670202843615.888807713549932108545.01036974895
61.03213.8552649438227360.1328987604265573520.9704729246890877.98593366411056315.882197106086828108545.01036974895
70.0312564Inf0.1344654230541015InfInfInf108545.01036974895
80.062564Inf0.1345590103947113InfInfInf108545.01036974895
90.12564Inf0.13459408004710655InfInfInf108545.01036974895
100.2564Inf0.1346025155196911InfInfInf108545.01036974895
110.564Inf0.1361606358093347InfInfInf108545.01036974895
121.064Inf0.13866139818291154InfInfInf108545.01036974895
130.125128Inf0.14122297853358728InfInfInf108545.01036974895
140.25128Inf0.14126555156452594InfInfInf108545.01036974895
150.03125128Inf0.141305511030235InfInfInf108545.01036974895
160.0625128Inf0.14135078952942265InfInfInf108545.01036974895
172.03214.349231401866970.1424346070858157621.1093031497261668.7849020335034615.932176106367118108545.01036974895
180.5128Inf0.14269063302309423InfInfInf108545.01036974895
192.064Inf0.1439852205818157InfInfInf108545.01036974895
201.0128Inf0.14463982309288878InfInfInf108545.01036974895
212.0128Inf0.14608109625516497InfInfInf108545.01036974895
220.03125256Inf0.14832759868050543InfInfInf108545.01036974895
230.0625256Inf0.14833133469491117InfInfInf108545.01036974895
240.25256Inf0.14846922251124808InfInfInf108545.01036974895
250.125256Inf0.14849634787865684InfInfInf108545.01036974895
260.5256Inf0.148670980397359InfInfInf108545.01036974895
271.0256Inf0.15048794916524227InfInfInf108545.01036974895
284.0128Inf0.15143878560665758InfInfInf108545.01036974895
292.0256Inf0.15146099973363153InfInfInf108545.01036974895
304.0256Inf0.15243308598558855InfInfInf108545.01036974895
" ], "text/plain": [ "45×8 DataFrames.DataFrame\n", "│ Row │ splay_std_dev_in_bins │ output_res │ perp │ mse_to_peak │ perp_sat │\n", "├─────┼───────────────────────┼────────────┼─────────┼─────────────┼──────────┤\n", "│ 1 │ 0.0625 │ 32 │ 13.9194 │ 0.125964 │ 20.9885 │\n", "│ 2 │ 0.03125 │ 32 │ 13.9301 │ 0.125976 │ 20.9919 │\n", "│ 3 │ 0.125 │ 32 │ 13.8998 │ 0.127136 │ 20.9824 │\n", "│ 4 │ 0.25 │ 32 │ 13.8669 │ 0.127161 │ 20.9723 │\n", "│ 5 │ 0.5 │ 32 │ 13.8276 │ 0.12786 │ 20.9608 │\n", "│ 6 │ 1.0 │ 32 │ 13.8553 │ 0.132899 │ 20.9705 │\n", "│ 7 │ 0.03125 │ 64 │ Inf │ 0.134465 │ Inf │\n", "│ 8 │ 0.0625 │ 64 │ Inf │ 0.134559 │ Inf │\n", "│ 9 │ 0.125 │ 64 │ Inf │ 0.134594 │ Inf │\n", "│ 10 │ 0.25 │ 64 │ Inf │ 0.134603 │ Inf │\n", "│ 11 │ 0.5 │ 64 │ Inf │ 0.136161 │ Inf │\n", "⋮\n", "│ 34 │ 16.0 │ 256 │ Inf │ 0.170438 │ Inf │\n", "│ 35 │ 32.0 │ 512 │ Inf │ 0.189421 │ Inf │\n", "│ 36 │ 4.0 │ 32 │ 17.2698 │ 0.209089 │ 21.8087 │\n", "│ 37 │ 8.0 │ 64 │ Inf │ 0.226166 │ Inf │\n", "│ 38 │ 16.0 │ 128 │ Inf │ 0.245678 │ Inf │\n", "│ 39 │ 32.0 │ 256 │ Inf │ 0.249596 │ Inf │\n", "│ 40 │ 8.0 │ 32 │ 32.2813 │ 0.315088 │ 24.8518 │\n", "│ 41 │ 16.0 │ 64 │ Inf │ 0.350375 │ Inf │\n", "│ 42 │ 32.0 │ 128 │ Inf │ 0.36496 │ Inf │\n", "│ 43 │ 16.0 │ 32 │ Inf │ 0.76822 │ Inf │\n", "│ 44 │ 32.0 │ 64 │ Inf │ 0.794248 │ Inf │\n", "│ 45 │ 32.0 │ 32 │ Inf │ 1.3941 │ Inf │\n", "\n", "│ Row │ perp_hue │ perp_val │ perp_uniform_baseline │\n", "├─────┼──────────┼──────────┼───────────────────────┤\n", "│ 1 │ 8.07501 │ 15.9126 │ 108545.0 │\n", "│ 2 │ 8.09109 │ 15.9148 │ 108545.0 │\n", "│ 3 │ 8.04543 │ 15.9081 │ 108545.0 │\n", "│ 4 │ 7.99636 │ 15.9002 │ 108545.0 │\n", "│ 5 │ 7.93864 │ 15.8888 │ 108545.0 │\n", "│ 6 │ 7.98593 │ 15.8822 │ 108545.0 │\n", "│ 7 │ Inf │ Inf │ 108545.0 │\n", "│ 8 │ Inf │ Inf │ 108545.0 │\n", "│ 9 │ Inf │ Inf │ 108545.0 │\n", "│ 10 │ Inf │ Inf │ 108545.0 │\n", "│ 11 │ Inf │ Inf │ 108545.0 │\n", "⋮\n", "│ 34 │ Inf │ Inf │ 108545.0 │\n", "│ 35 │ Inf │ Inf │ 108545.0 │\n", "│ 36 │ 14.5128 │ 16.2734 │ 108545.0 │\n", "│ 37 │ Inf │ Inf │ 108545.0 │\n", "│ 38 │ Inf │ Inf │ 108545.0 │\n", "│ 39 │ Inf │ Inf │ 108545.0 │\n", "│ 40 │ 75.4017 │ 17.952 │ 108545.0 │\n", "│ 41 │ Inf │ Inf │ 108545.0 │\n", "│ 42 │ Inf │ Inf │ 108545.0 │\n", "│ 43 │ 165.972 │ Inf │ 108545.0 │\n", "│ 44 │ Inf │ Inf │ 108545.0 │\n", "│ 45 │ Inf │ Inf │ 108545.0 │" ] }, "execution_count": 147, "metadata": {}, "output_type": "execute_result" } ], "source": [ "noml_runs= DataFrame(\n", " splay_std_dev_in_bins=Float64[],\n", " output_res = Int[],\n", " perp=Float64[],\n", " mse_to_peak=Float64[],\n", " perp_sat=Float64[],\n", " perp_hue=Float64[],\n", " perp_val=Float64[],\n", " perp_uniform_baseline=Float64[])\n", "\n", "for fn in glob(glob\"models/noml_validation/*/params_with_model.jld\")\n", " add_run!(noml_runs, fn, \"validation_set_results\") \n", "end\n", "\n", "sort!(noml_runs; cols=:mse_to_peak)\n", "noml_runs" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 43, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "Dict{String,Any} with 7 entries:\n", " \"git_hash\" => \"e50d814a6e3cae536b857849beadc246fe608725\"\n", " \"validation_set_results\" => Dict(:perp_uniform_baseline=>108545.0,:perp=>Inf,…\n", " \"executing_file\" => \"/mnt_volume/julia_dir/v0.5/ColoringNames/expr/ru…\n", " \"model\" => ColoringNames.TermToColorDistributionEmpirical{3}…\n", " \"splay_std_dev\" => 0.0078125\n", " \"output_res\" => 64\n", " \"splay_std_dev_in_bins\" => 0.5" ] }, "execution_count": 43, "metadata": {}, "output_type": "execute_result" } ], "source": [ "\n", "m1 = load(\"models/noml_validation/sib0.5_or64/params_with_model.jld\")" ] }, { "cell_type": "code", "execution_count": 44, "metadata": { "collapsed": false, "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "ColoringNames.TermToColorDistributionEmpirical{3}(64,Dict(\"grass green\"=>(Float32[3.46681f-22,1.47001f-18,2.34105f-15,1.41428f-12,3.30064f-10,3.07994f-8,1.22468f-6,2.30046f-5,0.000230938,0.0013672 … 0.0,0.0,0.0,0.0,0.0,0.0,5.4844f-41,1.21672f-35,1.00036f-30,3.053f-26],Float32[9.88503f-31,3.01526f-26,3.41744f-22,1.44233f-18,2.27352f-15,1.3438f-12,2.99453f-10,2.5342f-8,8.22183f-7,1.0343f-5 … 0.0382473,0.0380517,0.0370082,0.0365966,0.0381575,0.0397527,0.039755,0.0414449,0.0452282,0.0429944],Float32[5.15958f-42,1.39012f-36,1.39103f-31,5.17924f-27,7.19261f-23,3.73705f-19,7.29301f-16,5.37361f-13,1.50527f-10,1.61839f-8 … 0.0332029,0.0308241,0.0269464,0.02304,0.0202082,0.0181884,0.0163083,0.0142603,0.0128536,0.0105627]),\"celery\"=>(Float32[1.68503f-17,2.77729f-14,1.71639f-11,4.00065f-9,3.54985f-7,1.22147f-5,0.000171466,0.00115525,0.0052838,0.0191129 … 0.0,0.0,0.0,0.0,1.4013f-45,5.0542f-40,1.1736f-34,1.00949f-29,3.22077f-25,3.81779f-21],Float32[1.79162f-9,1.94243f-7,8.22826f-6,0.000139244,0.000975536,0.00307057,0.00535714,0.0070853,0.00860261,0.0102388 … 0.00701873,0.00553211,0.00730939,0.00868375,0.00733508,0.00648898,0.00802778,0.00956066,0.00831466,0.00481498],Float32[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0 … 0.04718,0.0476924,0.0559202,0.0619617,0.0690172,0.0799618,0.0824976,0.0794836,0.0827476,0.0757195]),\"lipstick\"=>(Float32[0.076896,0.0325507,0.00924846,0.00142477,9.95811f-5,2.88291f-6,3.31354f-8,1.47903f-10,2.53017f-13,1.6401f-16 … 0.0134629,0.018935,0.0251707,0.0388219,0.0571045,0.0867097,0.139425,0.180491,0.176712,0.134063],Float32[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0 … 0.0388251,0.0331862,0.0267442,0.0304258,0.0429207,0.0482906,0.0425362,0.0355146,0.0341751,0.0289133],Float32[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0 … 0.0423933,0.0421078,0.0435519,0.0367886,0.0287822,0.031865,0.0380646,0.0436181,0.044922,0.0369993]),\"chocolate\"=>(Float32[0.0882984,0.109486,0.132059,0.142491,0.126044,0.0932202,0.0606339,0.0345131,0.0158982,0.00549846 … 0.000877097,0.00128017,0.00232887,0.00441245,0.00780599,0.0113218,0.0158478,0.0254929,0.0434798,0.0674071],Float32[2.07756f-8,1.08833f-6,2.25156f-5,0.000191979,0.000732207,0.00147511,0.00202866,0.00206655,0.00126088,0.000539836 … 0.0239094,0.0222666,0.0245187,0.027089,0.0257464,0.0241908,0.0257125,0.0272286,0.0290488,0.0298928],Float32[8.18755f-11,1.24108f-8,7.26261f-7,1.69979f-5,0.00017212,0.000873755,0.00263357,0.0053411,0.00876873,0.0131248 … 0.000951814,0.000763513,0.000627662,0.000633281,0.000610054,0.000281021,5.23169f-5,3.82566f-6,1.08377f-7,1.17596f-9]),\"pine green\"=>(Float32[6.69423f-22,3.18575f-18,5.67539f-15,3.81012f-12,9.74517f-10,9.67427f-8,3.84883f-6,6.47931f-5,0.000503661,0.0020527 … 0.0,0.0,0.0,0.0,0.0,0.0,6.60068f-41,1.64934f-35,1.52681f-30,5.24362f-26],Float32[5.37808f-31,2.1754f-26,3.27558f-22,1.84083f-18,3.87439f-15,3.06769f-12,9.19233f-10,1.05059f-7,4.62577f-6,7.94501f-5 … 0.0341524,0.0336478,0.0310093,0.0306545,0.0302416,0.0295403,0.0286218,0.0262724,0.0266375,0.0270279],Float32[1.87205f-13,7.85436f-11,1.27489f-8,8.16143f-7,2.11177f-5,0.000227367,0.00105462,0.0022399,0.00267908,0.00328049 … 0.00181737,0.00174439,0.00149785,0.000848706,0.000478609,0.00121371,0.00255855,0.00274035,0.00167859,0.000611219]),\"dark brown\"=>(Float32[0.071476,0.081891,0.0898502,0.0934314,0.0945634,0.0884445,0.0742154,0.0565342,0.0385011,0.0235102 … 0.00266697,0.00467186,0.00719851,0.0102954,0.0151188,0.0219299,0.028107,0.0354671,0.0481991,0.0616601],Float32[0.000471385,0.000663127,0.000524629,0.000457729,0.000394906,0.000442707,0.00115227,0.00197361,0.00186314,0.00160463 … 0.0267686,0.0262669,0.0244771,0.0243011,0.0242803,0.0231389,0.0228862,0.0253964,0.0323548,0.0391965],Float32[0.000199822,0.000427043,0.000929838,0.00230669,0.00532991,0.00989786,0.0150463,0.0213858,0.0288437,0.0358879 … 0.000168965,6.03108f-5,8.50434f-6,4.68444f-7,9.95933f-9,8.08561f-11,2.4853f-13,2.87338f-16,1.16804f-19,0.0]),\"twilight blue\"=>(Float32[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0 … 0.000274638,1.83674f-5,4.75267f-7,4.70566f-9,1.76675f-11,2.49812f-14,1.28552f-17,0.0,0.0,0.0],Float32[4.4695f-12,1.50766f-9,1.94744f-7,9.78489f-6,0.00019525,0.00158591,0.00537416,0.00773836,0.00476406,0.00124382 … 0.0288614,0.0209865,0.0166133,0.0182791,0.0237345,0.0265354,0.0252637,0.025438,0.0229478,0.0125252],Float32[6.72395f-30,2.41205f-25,3.21859f-21,1.60237f-17,2.98895f-14,2.1016f-11,5.61787f-9,5.77752f-7,2.32245f-5,0.000372297 … 0.0260427,0.025851,0.0238042,0.0193153,0.0166621,0.0184081,0.0221719,0.0229999,0.0210574,0.0205289]),\"light olive green\"=>(Float32[4.06077f-13,1.50465f-10,2.11468f-8,1.14588f-6,2.49345f-5,0.000244022,0.00137072,0.0055195,0.0164126,0.038711 … 0.0,0.0,0.0,4.44212f-43,1.65691f-37,2.28558f-32,1.16865f-27,2.21822f-23,1.56597f-19,4.12229f-16],Float32[2.50659f-15,2.05024f-12,6.36863f-10,7.58042f-8,3.50128f-6,6.39533f-5,0.000477005,0.00155679,0.00268868,0.00367874 … 0.0130746,0.0125934,0.0124765,0.0133607,0.0154628,0.0160465,0.0129417,0.00890837,0.00795897,0.00782123],Float32[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,3.25101f-43 … 0.0385652,0.0360822,0.030239,0.0231902,0.0193576,0.0173853,0.0145774,0.0108553,0.0090812,0.00822056]),\"heliotrope\"=>(Float32[0.00398165,0.00641567,0.00572263,0.00311894,0.00257727,0.00249873,0.00113292,0.00020582,1.54418f-5,2.45312f-5 … 0.0793904,0.063045,0.0476435,0.0335383,0.0241015,0.0161161,0.00939483,0.0050472,0.00182605,0.00155534],Float32[8.96063f-7,2.68344f-5,0.000311915,0.00142424,0.00258105,0.00190477,0.00106296,0.00264512,0.00506033,0.00405047 … 0.0166903,0.0197962,0.0232766,0.0226476,0.0169195,0.0136662,0.0140698,0.0149134,0.0181363,0.0187987],Float32[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0 … 0.0590723,0.0607611,0.0637313,0.0649608,0.0599012,0.0536555,0.0580984,0.0687417,0.0706833,0.0589098]),\"mud brown\"=>(Float32[0.0219354,0.0461085,0.0736861,0.0922347,0.102704,0.123414,0.152776,0.154319,0.11172,0.0549519 … 7.47119f-11,1.39153f-8,9.87167f-7,2.70319f-5,0.000292591,0.00131789,0.00279755,0.00370773,0.00501496,0.00951382],Float32[7.25553f-30,2.4137f-25,2.98323f-21,1.37295f-17,2.36018f-14,1.5223f-11,3.70871f-9,3.44864f-7,1.24491f-5,0.000179527 … 0.0271173,0.0241177,0.0225199,0.024522,0.0283274,0.0286492,0.0218187,0.0147949,0.0169549,0.026815],Float32[2.9575f-12,9.31273f-10,1.11051f-7,5.05847f-6,8.89719f-5,0.00061179,0.00167121,0.0019424,0.00160498,0.00210686 … 0.000707617,0.000438167,0.0013179,0.0019386,0.00114011,0.00026613,2.44217f-5,8.70586f-7,1.19171f-8,6.2031f-11])…))" ] }, "execution_count": 44, "metadata": {}, "output_type": "execute_result" } ], "source": [ "mdl = m1[\"model\"]" ] }, { "cell_type": "code", "execution_count": 100, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "Dict{Symbol,Float64} with 6 entries:\n", " :perp_uniform_baseline => 1.0\n", " :perp => Inf\n", " :mse_to_peak => 0.845673\n", " :perp_sat => 308.476\n", " :perp_hue => Inf\n", " :perp_val => 1.98883e14" ] }, "execution_count": 100, "metadata": {}, "output_type": "execute_result" } ], "source": [ "rng = 70_955:70_955\n", "evaluate(mdl, valid_text[rng], valid_hsv[rng,:])" ] }, { "cell_type": "code", "execution_count": 128, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "1 method for generic function descretized_perplexity:" ], "text/plain": [ "# 1 method for generic function \"descretized_perplexity\":\n", "descretized_perplexity(obs, predicted_class_probs) at /home/ubuntu/.julia/v0.5/ColoringNames/src/evaluation.jl:23" ] }, "execution_count": 128, "metadata": {}, "output_type": "execute_result" } ], "source": [ "methods(descretized_perplexity)" ] }, { "cell_type": "code", "execution_count": 109, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "(Float32[0.0397098,0.0573034,0.0823717,0.106618,0.126799,0.134196,0.119233,0.0979447,0.0751083,0.0492329 … 0.00030164,0.000798041,0.000964212,0.0009284,0.00104436,0.00139643,0.00359676,0.00854104,0.0173626,0.0287236],Float32[2.6975f-6,6.22119f-5,0.000573984,0.00221708,0.00396639,0.0043194,0.00485628,0.00661597,0.00818797,0.00825639 … 0.00331553,0.00266177,0.00139798,0.000433133,0.000703525,0.00247234,0.00435376,0.00395598,0.00195483,0.00049983],Float32[0.0,3.72213f-41,1.00472f-35,1.00448f-30,3.72406f-26,5.12819f-22,2.62839f-18,5.02807f-15,3.60355f-12,9.72514f-10 … 0.0207113,0.0224995,0.0264417,0.0259635,0.0192976,0.0129981,0.00968241,0.00615069,0.00228175,0.000401225])" ] }, "execution_count": 109, "metadata": {}, "output_type": "execute_result" } ], "source": [ "hh,ss,vv = query(mdl, valid_text[70_954])" ] }, { "cell_type": "code", "execution_count": 125, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "1-element Array{Int64,1}:\n", " 38" ] }, "execution_count": 125, "metadata": {}, "output_type": "execute_result" } ], "source": [ "find_bin(valid_hsv[rng,1], length(hh))" ] }, { "cell_type": "code", "execution_count": 126, "metadata": { "collapsed": false, "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "0.0f0" ] }, "execution_count": 126, "metadata": {}, "output_type": "execute_result" } ], "source": [ "hh[38]" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Julia 0.5.1", "language": "julia", "name": "julia-0.5" }, "language_info": { "file_extension": ".jl", "mimetype": "application/julia", "name": "julia", "version": "0.5.1" } }, "nbformat": 4, "nbformat_minor": 2 }