Skip to content

Instantly share code, notes, and snippets.

@MikeLing
Last active July 10, 2017 04:37
Show Gist options
  • Save MikeLing/b9f4aaf3eac0f65a956b866bc2b4a214 to your computer and use it in GitHub Desktop.
Save MikeLing/b9f4aaf3eac0f65a956b866bc2b4a214 to your computer and use it in GitHub Desktop.
matrix=[[ 1, 0.357435345649719238, 0.881105303764343262, 0.264614194631576538, 0.392460733652114868, 0.29888606071472168, 0.77649921178817749, 0.392304211854934692, 0.415194451808929443, 0.284810483455657959, 0.0661987736821174622, 0.264099746942520142, 0.346782028675079346, 0.25590476393699646, 0.805517375469207764, 0.192790955305099487, 0.913285493850708008, 0.15366363525390625, 0.567021012306213379, 0.133734241127967834, 0.071564696729183197, 0.596106052398681641, 0.146366193890571594, 0.281917452812194824, 0.639549732208251953, 0.213880911469459534, 0.372015953063964844, 0.911623120307922363, 0.0226767528802156448, 0.0492779314517974854, 0.150228172540664673, 0.182678699493408203, 0.194619730114936829, 0.223039060831069946, 0.0562533959746360779, 0.177665024995803833, 0.0953366979956626892, 0.427403718233108521, 0.805513143539428711, 0.11347990483045578, 0.101488135755062103, 0.131193011999130249, 0.133451938629150391, 0.40705949068069458, 0.371909797191619873, 0.0475207827985286713, 0.125142842531204224, 0.379643231630325317, 0.151225417852401733, 0.242343336343765259],[ 0.357435345649719238, 1, 0.561927437782287598, 0.854806661605834961, 0.530831336975097656, 0.712739408016204834, 0.753707170486450195, 0.962326228618621826, 0.526182651519775391, 0.728163659572601318, 0.573994874954223633, 0.878541469573974609, 0.966297805309295654, 0.798527777194976807, 0.366745322942733765, 0.902861952781677246, 0.34661555290222168, 0.76191401481628418, 0.422591179609298706, 0.246665239334106445, 0.604867279529571533, 0.881548464298248291, 0.696786701679229736, 0.725827991962432861, 0.764996170997619629, 0.656486630439758301, 0.863387703895568848, 0.450656980276107788, 0.396767795085906982, 0.345941364765167236, 0.729647517204284668, 0.846411168575286865, 0.864171743392944336, 0.649189949035644531, 0.529367506504058838, 0.852901279926300049, 0.395043104887008667, 0.812472522258758545, 0.578141212463378906, 0.746109068393707275, 0.290072381496429443, 0.817041099071502686, 0.378980070352554321, 0.938196778297424316, 0.381223857402801514, 0.487374335527420044, 0.828692197799682617, 0.990866243839263916, 0.820381343364715576, 0.573285579681396484],[ 0.881105303764343262, 0.561927437782287598, 1, 0.447892367839813232, 0.599734723567962646, 0.378624320030212402, 0.94646155834197998, 0.571613490581512451, 0.689045906066894531, 0.543196618556976318, 0.138885661959648132, 0.390563040971755981, 0.55186694860458374, 0.493446797132492065, 0.642950832843780518, 0.326531916856765747, 0.778270184993743896, 0.321267455816268921, 0.549984574317932129, 0.208016008138656616, 0.131751462817192078, 0.838109910488128662, 0.214341536164283752, 0.371893167495727539, 0.731928050518035889, 0.319428086280822754, 0.639424443244934082, 0.867989897727966309, 0.0529787652194499969, 0.083194442093372345, 0.245168209075927734, 0.290312588214874268, 0.322235137224197388, 0.298960715532302856, 0.117820322513580322, 0.359211117029190063, 0.133464783430099487, 0.697133004665374756, 0.77083897590637207, 0.241094350814819336, 0.113988056778907776, 0.235769867897033691, 0.193096891045570374, 0.564515888690948486, 0.317648410797119141, 0.0863752663135528564, 0.24183046817779541, 0.600056052207946777, 0.258469581604003906, 0.383707761764526367],[ 0.264614194631576538, 0.854806661605834961, 0.447892367839813232, 1, 0.296326398849487305, 0.41267046332359314, 0.607196807861328125, 0.908144533634185791, 0.572470605373382568, 0.7961539626121521, 0.361537277698516846, 0.609897911548614502, 0.953873157501220703, 0.877685427665710449, 0.306647300720214844, 0.721679627895355225, 0.312099337577819824, 0.552857637405395508, 0.198915794491767883, 0.5077667236328125, 0.651068150997161865, 0.714827358722686768, 0.507307291030883789, 0.813761889934539795, 0.497775375843048096, 0.881705403327941895, 0.870271444320678711, 0.413069844245910645, 0.419376254081726074, 0.15817926824092865, 0.845581889152526855, 0.662517189979553223, 0.893952727317810059, 0.351264089345932007, 0.713519454002380371, 0.902840256690979004, 0.578486382961273193, 0.851826906204223633, 0.488083183765411377, 0.876134395599365234, 0.392895370721817017, 0.707175672054290771, 0.655093848705291748, 0.680113852024078369, 0.205510735511779785, 0.361357361078262329, 0.732580721378326416, 0.807951807975769043, 0.812121570110321045, 0.862878203392028809],[ 0.392460733652114868, 0.530831336975097656, 0.599734723567962646, 0.296326398849487305, 1, 0.46169590950012207, 0.634207725524902344, 0.412018835544586182, 0.473155349493026733, 0.471725136041641235, 0.339109152555465698, 0.464392483234405518, 0.427091628313064575, 0.436184704303741455, 0.207456290721893311, 0.391195625066757202, 0.245810061693191528, 0.614127874374389648, 0.580913424491882324, 0.0502369105815887451, 0.117292381823062897, 0.703484296798706055, 0.237522795796394348, 0.178141549229621887, 0.621726572513580322, 0.141615137457847595, 0.534207761287689209, 0.319420963525772095, 0.0718453079462051392, 0.235091805458068848, 0.158623278141021729, 0.325891971588134766, 0.251978933811187744, 0.443879395723342896, 0.0911709815263748169, 0.368247389793395996, 0.0477310791611671448, 0.502391040325164795, 0.329244494438171387, 0.231005042791366577, 0.0323244594037532806, 0.277500957250595093, 0.0555249527096748352, 0.561044394969940186, 0.22879423201084137, 0.13369634747505188, 0.308524191379547119, 0.611801564693450928, 0.22873002290725708, 0.154566407203674316],[ 0.29888606071472168, 0.712739408016204834, 0.378624320030212402, 0.41267046332359314, 0.46169590950012207, 1, 0.537954747676849365, 0.653444111347198486, 0.191284671425819397, 0.286898255348205566, 0.593722522258758545, 0.923871874809265137, 0.577803969383239746, 0.334522843360900879, 0.344857782125473022, 0.767990410327911377, 0.252792000770568848, 0.537987887859344482, 0.679447174072265625, 0.0579931959509849548, 0.421493709087371826, 0.601968646049499512, 0.820539772510528564, 0.484302490949630737, 0.824904441833496094, 0.322147965431213379, 0.416710585355758667, 0.305095881223678589, 0.267809092998504639, 0.640901446342468262, 0.445742666721343994, 0.806430995464324951, 0.562663793563842773, 0.9790840744972229, 0.24947841465473175, 0.415182024240493774, 0.220493584871292114, 0.373830914497375488, 0.496313184499740601, 0.343881487846374512, 0.209592118859291077, 0.657568156719207764, 0.143658190965652466, 0.888846039772033691, 0.73147815465927124, 0.561777293682098389, 0.600061535835266113, 0.71615147590637207, 0.580916225910186768, 0.204371914267539978],[ 0.77649921178817749, 0.753707170486450195, 0.94646155834197998, 0.607196807861328125, 0.634207725524902344, 0.537954747676849365, 1, 0.761222183704376221, 0.68036574125289917, 0.638080298900604248, 0.238732755184173584, 0.575030624866485596, 0.734033405780792236, 0.617981553077697754, 0.648688375949859619, 0.504842281341552734, 0.711981058120727539, 0.45463225245475769, 0.59771120548248291, 0.241497114300727844, 0.239554837346076965, 0.953034162521362305, 0.359499901533126831, 0.529876172542572021, 0.860415875911712646, 0.453524857759475708, 0.766530215740203857, 0.822381854057312012, 0.109867386519908905, 0.148837044835090637, 0.390686452388763428, 0.462192773818969727, 0.494182974100112915, 0.442484050989151001, 0.207858070731163025, 0.510499119758605957, 0.217556804418563843, 0.800585746765136719, 0.830296933650970459, 0.372647911310195923, 0.182917043566703796, 0.390458792448043823, 0.270888775587081909, 0.755519747734069824, 0.411948055028915405, 0.169460728764533997, 0.394071668386459351, 0.783509790897369385, 0.418329745531082153, 0.482262372970581055],[ 0.392304211854934692, 0.962326228618621826, 0.571613490581512451, 0.908144533634185791, 0.412018835544586182, 0.653444111347198486, 0.761222183704376221, 1, 0.512737274169921875, 0.689230024814605713, 0.444836527109146118, 0.813029110431671143, 0.980594158172607422, 0.763531386852264404, 0.456916600465774536, 0.839071094989776611, 0.423101246356964111, 0.603164494037628174, 0.38203921914100647, 0.335470706224441528, 0.633000969886779785, 0.846206486225128174, 0.679000258445739746, 0.862757325172424316, 0.744018673896789551, 0.792666971683502197, 0.833697736263275146, 0.529240906238555908, 0.377507388591766357, 0.262206971645355225, 0.812397599220275879, 0.80882340669631958, 0.903669774532318115, 0.567676663398742676, 0.568887054920196533, 0.805294215679168701, 0.525072395801544189, 0.810820639133453369, 0.671748697757720947, 0.731156051158905029, 0.413460254669189453, 0.77402728796005249, 0.515498161315917969, 0.89423978328704834, 0.402348339557647705, 0.445483237504959106, 0.762351870536804199, 0.927189230918884277, 0.838587820529937744, 0.688619077205657959],[ 0.415194451808929443, 0.526182651519775391, 0.689045906066894531, 0.572470605373382568, 0.473155349493026733, 0.191284671425819397, 0.680365741252899170.512737274169921875, 1, 0.869838535785675049, 0.139105334877967834, 0.273879975080490112, 0.582060396671295166, 0.773351848125457764, 0.259781092405319214, 0.298152327537536621, 0.387840092182159424, 0.398604720830917358, 0.193467170000076294, 0.376839131116867065, 0.14943656325340271, 0.713828146457672119, 0.140548840165138245, 0.308721005916595459, 0.388109892606735229, 0.360405474901199341, 0.820128738880157471, 0.504773139953613281, 0.0777706950902938843, 0.0475131794810295105, 0.265723079442977905, 0.233308225870132446, 0.339251846075057983, 0.152993917465209961, 0.191674008965492249, 0.543111264705657959, 0.132475674152374268, 0.872745335102081299, 0.393718332052230835, 0.398217171430587769, 0.0781776085495948792, 0.237128704786300659, 0.247586876153945923, 0.393706917762756348, 0.0902510806918144226, 0.0714803487062454224, 0.277702987194061279, 0.558552861213684082, 0.267638236284255981, 0.551019430160522461],[ 0.284810483455657959, 0.728163659572601318, 0.543196618556976318, 0.7961539626121521, 0.471725136041641235, 0.286898255348205566, 0.638080298900604248, 0.689230024814605713, 0.869838535785675049, 1, 0.297071754932403564, 0.43772068619728088,....]...

]

statistic before normalization is 0.088586
statistic after normalization is 1.063031
vector=[0.264452062547206879,0.012948980089277029,-0.255108073353767395,0.361381128430366516,-0.206819929182529449,-0.164887011051177979,-0.0500220414251089096,-0.015680226031690836,0.386611238121986389,0.36762595921754837]
10.000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment