You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

run_treepatternkernel.ipynb 195 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "code",
  5. "execution_count": 1,
  6. "metadata": {},
  7. "outputs": [
  8. {
  9. "name": "stdout",
  10. "output_type": "stream",
  11. "text": [
  12. "\n",
  13. " --- This is a regression problem ---\n",
  14. "\n",
  15. "\n",
  16. " #--- calculating kernel matrix when lmda = 1e-10 ---#\n",
  17. "\n",
  18. " Loading dataset from file...\n",
  19. "\n",
  20. " Calculating kernel matrix, this could take a while...\n",
  21. "\n",
  22. " --- kernel matrix of tree pattern kernel of size 185 built in 37.36956548690796 seconds ---\n",
  23. "[[ 13. 14. 4. ... 20. 20.\n",
  24. " 20. ]\n",
  25. " [ 14. 20. 4. ... 20. 20.\n",
  26. " 20. ]\n",
  27. " [ 4. 4. 13. ... 29. 29.\n",
  28. " 29. ]\n",
  29. " ...\n",
  30. " [ 20. 20. 29. ... 365.00000001 365.00000001\n",
  31. " 365.00000001]\n",
  32. " [ 20. 20. 29. ... 365.00000001 365.00000001\n",
  33. " 365.00000001]\n",
  34. " [ 20. 20. 29. ... 365.00000001 365.00000001\n",
  35. " 365.00000002]]\n",
  36. "\n",
  37. " Starting calculate accuracy/rmse...\n",
  38. "calculate performance: 91%|█████████▏| 914/1000 [00:01<00:00, 751.28it/s]\n",
  39. " Mean performance on train set: 5.993535\n",
  40. "With standard deviation: 0.356922\n",
  41. "\n",
  42. " Mean performance on test set: 7.464904\n",
  43. "With standard deviation: 1.718585\n",
  44. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 795.88it/s]\n",
  45. "\n",
  46. "\n",
  47. " #--- calculating kernel matrix when lmda = 1e-09 ---#\n",
  48. "\n",
  49. " Loading dataset from file...\n",
  50. "\n",
  51. " Calculating kernel matrix, this could take a while...\n",
  52. "\n",
  53. " --- kernel matrix of tree pattern kernel of size 185 built in 37.47467517852783 seconds ---\n",
  54. "[[ 13. 14. 4. ... 20. 20.\n",
  55. " 20. ]\n",
  56. " [ 14. 20.00000001 4. ... 20. 20.\n",
  57. " 20. ]\n",
  58. " [ 4. 4. 13. ... 29. 29.\n",
  59. " 29. ]\n",
  60. " ...\n",
  61. " [ 20. 20. 29. ... 365.00000015 365.00000015\n",
  62. " 365.00000015]\n",
  63. " [ 20. 20. 29. ... 365.00000015 365.00000015\n",
  64. " 365.00000015]\n",
  65. " [ 20. 20. 29. ... 365.00000015 365.00000015\n",
  66. " 365.0000002 ]]\n",
  67. "\n",
  68. " Starting calculate accuracy/rmse...\n",
  69. "calculate performance: 98%|█████████▊| 975/1000 [00:01<00:00, 654.33it/s]\n",
  70. " Mean performance on train set: 5.963041\n",
  71. "With standard deviation: 0.374107\n",
  72. "\n",
  73. " Mean performance on test set: 7.375105\n",
  74. "With standard deviation: 1.769252\n",
  75. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 711.24it/s]\n",
  76. "\n",
  77. "\n",
  78. " #--- calculating kernel matrix when lmda = 1e-08 ---#\n",
  79. "\n",
  80. " Loading dataset from file...\n",
  81. "\n",
  82. " Calculating kernel matrix, this could take a while...\n",
  83. "\n",
  84. " --- kernel matrix of tree pattern kernel of size 185 built in 37.32968211174011 seconds ---\n",
  85. "[[ 13.00000004 14. 4. ... 20. 20.\n",
  86. " 20. ]\n",
  87. " [ 14. 20.00000008 4. ... 20. 20.\n",
  88. " 20. ]\n",
  89. " [ 4. 4. 13.00000004 ... 29.00000004 29.00000004\n",
  90. " 29.00000004]\n",
  91. " ...\n",
  92. " [ 20. 20. 29.00000004 ... 365.00000148 365.00000148\n",
  93. " 365.00000148]\n",
  94. " [ 20. 20. 29.00000004 ... 365.00000148 365.00000148\n",
  95. " 365.00000148]\n",
  96. " [ 20. 20. 29.00000004 ... 365.00000148 365.00000148\n",
  97. " 365.00000202]]\n",
  98. "\n",
  99. " Starting calculate accuracy/rmse...\n",
  100. "calculate performance: 97%|█████████▋| 967/1000 [00:01<00:00, 809.48it/s]\n",
  101. " Mean performance on train set: 5.965110\n",
  102. "With standard deviation: 0.378249\n",
  103. "\n",
  104. " Mean performance on test set: 7.350689\n",
  105. "With standard deviation: 1.780556\n",
  106. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 786.78it/s]\n",
  107. "\n",
  108. "\n",
  109. " #--- calculating kernel matrix when lmda = 1e-07 ---#\n",
  110. "\n",
  111. " Loading dataset from file...\n",
  112. "\n",
  113. " Calculating kernel matrix, this could take a while...\n",
  114. "\n",
  115. " --- kernel matrix of tree pattern kernel of size 185 built in 37.74151062965393 seconds ---\n",
  116. "[[ 13.0000004 14. 4. ... 20. 20.\n",
  117. " 20. ]\n",
  118. " [ 14. 20.0000008 4. ... 20. 20.\n",
  119. " 20. ]\n",
  120. " [ 4. 4. 13.0000004 ... 29.0000004 29.0000004\n",
  121. " 29.0000004]\n",
  122. " ...\n",
  123. " [ 20. 20. 29.0000004 ... 365.0000148 365.0000148\n",
  124. " 365.0000148]\n",
  125. " [ 20. 20. 29.0000004 ... 365.0000148 365.0000148\n",
  126. " 365.0000148]\n",
  127. " [ 20. 20. 29.0000004 ... 365.0000148 365.0000148\n",
  128. " 365.0000202]]\n",
  129. "\n",
  130. " Starting calculate accuracy/rmse...\n",
  131. "calculate performance: 95%|█████████▌| 954/1000 [00:01<00:00, 735.76it/s]\n",
  132. " Mean performance on train set: 5.966982\n",
  133. "With standard deviation: 0.382093\n",
  134. "\n",
  135. " Mean performance on test set: 7.350999\n",
  136. "With standard deviation: 1.781470\n",
  137. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 804.24it/s]\n",
  138. "\n",
  139. "\n",
  140. " #--- calculating kernel matrix when lmda = 1e-06 ---#\n",
  141. "\n",
  142. " Loading dataset from file...\n",
  143. "\n",
  144. " Calculating kernel matrix, this could take a while...\n",
  145. "\n",
  146. " --- kernel matrix of tree pattern kernel of size 185 built in 37.52131748199463 seconds ---\n",
  147. "[[ 13.000004 14. 4. ... 20. 20. 20. ]\n",
  148. " [ 14. 20.000008 4. ... 20. 20. 20. ]\n",
  149. " [ 4. 4. 13.000004 ... 29.000004 29.000004 29.000004]\n",
  150. " ...\n",
  151. " [ 20. 20. 29.000004 ... 365.000148 365.000148 365.000148]\n",
  152. " [ 20. 20. 29.000004 ... 365.000148 365.000148 365.000148]\n",
  153. " [ 20. 20. 29.000004 ... 365.000148 365.000148 365.000202]]\n",
  154. "\n",
  155. " Starting calculate accuracy/rmse...\n",
  156. "calculate performance: 97%|█████████▋| 970/1000 [00:01<00:00, 759.32it/s]\n",
  157. " Mean performance on train set: 5.969758\n",
  158. "With standard deviation: 0.386318\n",
  159. "\n",
  160. " Mean performance on test set: 7.351225\n",
  161. "With standard deviation: 1.780522\n",
  162. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 783.42it/s]\n",
  163. "\n",
  164. "\n",
  165. " #--- calculating kernel matrix when lmda = 1e-05 ---#\n",
  166. "\n",
  167. " Loading dataset from file...\n",
  168. "\n",
  169. " Calculating kernel matrix, this could take a while...\n",
  170. "\n",
  171. " --- kernel matrix of tree pattern kernel of size 185 built in 37.67099857330322 seconds ---\n",
  172. "[[ 13.00004 14. 4. ... 20. 20.\n",
  173. " 20. ]\n",
  174. " [ 14. 20.00008 4. ... 20. 20.\n",
  175. " 20. ]\n",
  176. " [ 4. 4. 13.00004 ... 29.00004 29.00004\n",
  177. " 29.00004 ]\n",
  178. " ...\n",
  179. " [ 20. 20. 29.00004 ... 365.00148001 365.00148001\n",
  180. " 365.00148 ]\n",
  181. " [ 20. 20. 29.00004 ... 365.00148001 365.00148001\n",
  182. " 365.00148 ]\n",
  183. " [ 20. 20. 29.00004 ... 365.00148 365.00148\n",
  184. " 365.00202 ]]\n",
  185. "\n",
  186. " Starting calculate accuracy/rmse...\n",
  187. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 801.70it/s]\n",
  188. " Mean performance on train set: 5.970557\n",
  189. "With standard deviation: 0.390719\n",
  190. "\n",
  191. " Mean performance on test set: 7.348129\n",
  192. "With standard deviation: 1.780293\n",
  193. "\n",
  194. "\n",
  195. "\n",
  196. " #--- calculating kernel matrix when lmda = 0.0001 ---#\n",
  197. "\n",
  198. " Loading dataset from file...\n",
  199. "\n",
  200. " Calculating kernel matrix, this could take a while...\n",
  201. "\n",
  202. " --- kernel matrix of tree pattern kernel of size 185 built in 36.80127692222595 seconds ---\n",
  203. "[[ 13.0004 14. 4. ... 20. 20.\n",
  204. " 20. ]\n",
  205. " [ 14. 20.0008 4. ... 20. 20.\n",
  206. " 20. ]\n",
  207. " [ 4. 4. 13.0004 ... 29.0004 29.0004\n",
  208. " 29.0004 ]\n",
  209. " ...\n",
  210. " [ 20. 20. 29.0004 ... 365.01480072 365.01480072\n",
  211. " 365.0148 ]\n",
  212. " [ 20. 20. 29.0004 ... 365.01480072 365.01480072\n",
  213. " 365.0148 ]\n",
  214. " [ 20. 20. 29.0004 ... 365.0148 365.0148\n",
  215. " 365.0202 ]]\n",
  216. "\n",
  217. " Starting calculate accuracy/rmse...\n",
  218. "calculate performance: 98%|█████████▊| 980/1000 [00:01<00:00, 889.41it/s]\n",
  219. " Mean performance on train set: 5.942495\n",
  220. "With standard deviation: 0.331983\n",
  221. "\n",
  222. " Mean performance on test set: 7.349836\n",
  223. "With standard deviation: 1.781100\n",
  224. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 883.76it/s]\n",
  225. "\n",
  226. "\n",
  227. " #--- calculating kernel matrix when lmda = 0.001 ---#\n",
  228. "\n",
  229. " Loading dataset from file...\n",
  230. "\n",
  231. " Calculating kernel matrix, this could take a while...\n",
  232. "\n",
  233. " --- kernel matrix of tree pattern kernel of size 185 built in 35.8681423664093 seconds ---\n",
  234. "[[ 13.004 14. 4. ... 20. 20. 20. ]\n",
  235. " [ 14. 20.008 4. ... 20. 20. 20. ]\n",
  236. " [ 4. 4. 13.004 ... 29.004 29.004 29.004 ]\n",
  237. " ...\n",
  238. " [ 20. 20. 29.004 ... 365.148072 365.148072 365.148 ]\n",
  239. " [ 20. 20. 29.004 ... 365.148072 365.148072 365.148 ]\n",
  240. " [ 20. 20. 29.004 ... 365.148 365.148 365.202 ]]\n",
  241. "\n",
  242. " Starting calculate accuracy/rmse...\n"
  243. ]
  244. },
  245. {
  246. "name": "stdout",
  247. "output_type": "stream",
  248. "text": [
  249. "calculate performance: 99%|█████████▉| 988/1000 [00:01<00:00, 886.54it/s]\n",
  250. " Mean performance on train set: 5.933395\n",
  251. "With standard deviation: 0.324965\n",
  252. "\n",
  253. " Mean performance on test set: 7.357745\n",
  254. "With standard deviation: 1.780977\n",
  255. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 888.00it/s]\n",
  256. "\n",
  257. "\n",
  258. " #--- calculating kernel matrix when lmda = 0.01 ---#\n",
  259. "\n",
  260. " Loading dataset from file...\n",
  261. "\n",
  262. " Calculating kernel matrix, this could take a while...\n",
  263. "\n",
  264. " --- kernel matrix of tree pattern kernel of size 185 built in 36.001843214035034 seconds ---\n",
  265. "[[ 13.04 14. 4. ... 20. 20. 20. ]\n",
  266. " [ 14. 20.08 4. ... 20. 20. 20. ]\n",
  267. " [ 4. 4. 13.04 ... 29.04 29.04 29.04 ]\n",
  268. " ...\n",
  269. " [ 20. 20. 29.04 ... 366.4872 366.4872 366.48 ]\n",
  270. " [ 20. 20. 29.04 ... 366.4872 366.4872 366.48 ]\n",
  271. " [ 20. 20. 29.04 ... 366.48 366.48 367.02 ]]\n",
  272. "\n",
  273. " Starting calculate accuracy/rmse...\n",
  274. "calculate performance: 98%|█████████▊| 978/1000 [00:01<00:00, 863.94it/s]\n",
  275. " Mean performance on train set: 5.940695\n",
  276. "With standard deviation: 0.347431\n",
  277. "\n",
  278. " Mean performance on test set: 7.374269\n",
  279. "With standard deviation: 1.791145\n",
  280. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 878.96it/s]\n",
  281. "\n",
  282. "\n",
  283. " #--- calculating kernel matrix when lmda = 0.1 ---#\n",
  284. "\n",
  285. " Loading dataset from file...\n",
  286. "\n",
  287. " Calculating kernel matrix, this could take a while...\n",
  288. "\n",
  289. " --- kernel matrix of tree pattern kernel of size 185 built in 36.37146854400635 seconds ---\n",
  290. "[[ 13.4 14. 4. ... 20. 20. 20. ]\n",
  291. " [ 14. 20.8 4. ... 20. 20. 20. ]\n",
  292. " [ 4. 4. 13.4 ... 29.4 29.4 29.4 ]\n",
  293. " ...\n",
  294. " [ 20. 20. 29.4 ... 380.52 380.52 379.8 ]\n",
  295. " [ 20. 20. 29.4 ... 380.52 380.52 379.8 ]\n",
  296. " [ 20. 20. 29.4 ... 379.8 379.8 385.2 ]]\n",
  297. "\n",
  298. " Starting calculate accuracy/rmse...\n",
  299. "calculate performance: 99%|█████████▉| 993/1000 [00:01<00:00, 860.40it/s]\n",
  300. " Mean performance on train set: 6.427114\n",
  301. "With standard deviation: 1.293674\n",
  302. "\n",
  303. " Mean performance on test set: 7.329299\n",
  304. "With standard deviation: 1.913634\n",
  305. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 883.01it/s]\n",
  306. "\n",
  307. "\n",
  308. " #--- calculating kernel matrix when lmda = 1.0 ---#\n",
  309. "\n",
  310. " Loading dataset from file...\n",
  311. "\n",
  312. " Calculating kernel matrix, this could take a while...\n",
  313. "\n",
  314. " --- kernel matrix of tree pattern kernel of size 185 built in 37.83972358703613 seconds ---\n",
  315. "[[ 17. 14. 4. ... 20. 20. 20.]\n",
  316. " [ 14. 28. 4. ... 20. 20. 20.]\n",
  317. " [ 4. 4. 17. ... 33. 33. 33.]\n",
  318. " ...\n",
  319. " [ 20. 20. 33. ... 585. 585. 513.]\n",
  320. " [ 20. 20. 33. ... 585. 585. 513.]\n",
  321. " [ 20. 20. 33. ... 513. 513. 567.]]\n",
  322. "\n",
  323. " Starting calculate accuracy/rmse...\n",
  324. "calculate performance: 98%|█████████▊| 979/1000 [00:01<00:00, 616.77it/s]\n",
  325. " Mean performance on train set: 6.624254\n",
  326. "With standard deviation: 1.224196\n",
  327. "\n",
  328. " Mean performance on test set: 7.271336\n",
  329. "With standard deviation: 2.207735\n",
  330. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 630.82it/s]\n",
  331. "\n",
  332. "\n",
  333. " #--- calculating kernel matrix when lmda = 10.0 ---#\n",
  334. "\n",
  335. " Loading dataset from file...\n",
  336. "\n",
  337. " Calculating kernel matrix, this could take a while...\n",
  338. "\n",
  339. " --- kernel matrix of tree pattern kernel of size 185 built in 37.50818395614624 seconds ---\n",
  340. "[[5.300e+01 1.400e+01 4.000e+00 ... 2.000e+01 2.000e+01 2.000e+01]\n",
  341. " [1.400e+01 1.000e+02 4.000e+00 ... 2.000e+01 2.000e+01 2.000e+01]\n",
  342. " [4.000e+00 4.000e+00 5.300e+01 ... 6.900e+01 6.900e+01 6.900e+01]\n",
  343. " ...\n",
  344. " [2.000e+01 2.000e+01 6.900e+01 ... 9.045e+03 9.045e+03 1.845e+03]\n",
  345. " [2.000e+01 2.000e+01 6.900e+01 ... 9.045e+03 9.045e+03 1.845e+03]\n",
  346. " [2.000e+01 2.000e+01 6.900e+01 ... 1.845e+03 1.845e+03 2.385e+03]]\n",
  347. "\n",
  348. " Starting calculate accuracy/rmse...\n",
  349. "calculate performance: 8%|▊ | 77/1000 [00:00<00:01, 764.71it/s]"
  350. ]
  351. },
  352. {
  353. "name": "stderr",
  354. "output_type": "stream",
  355. "text": [
  356. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  357. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  358. "Reciprocal condition number/precision: 4.069543502626658e-18 / 1.1102230246251565e-16\n",
  359. " RuntimeWarning)\n",
  360. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  361. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  362. "Reciprocal condition number/precision: 1.1303298666315776e-17 / 1.1102230246251565e-16\n",
  363. " RuntimeWarning)\n",
  364. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  365. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  366. "Reciprocal condition number/precision: 1.70249458866672e-17 / 1.1102230246251565e-16\n",
  367. " RuntimeWarning)\n",
  368. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  369. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  370. "Reciprocal condition number/precision: 4.63992169055093e-17 / 1.1102230246251565e-16\n",
  371. " RuntimeWarning)\n",
  372. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  373. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  374. "Reciprocal condition number/precision: 7.438093960487116e-17 / 1.1102230246251565e-16\n",
  375. " RuntimeWarning)\n",
  376. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  377. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  378. "Reciprocal condition number/precision: 1.0002169262936346e-17 / 1.1102230246251565e-16\n",
  379. " RuntimeWarning)\n",
  380. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  381. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  382. "Reciprocal condition number/precision: 1.5920339281975188e-17 / 1.1102230246251565e-16\n",
  383. " RuntimeWarning)\n",
  384. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  385. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  386. "Reciprocal condition number/precision: 2.5874866272574162e-17 / 1.1102230246251565e-16\n",
  387. " RuntimeWarning)\n",
  388. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  389. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  390. "Reciprocal condition number/precision: 4.0599424240471626e-17 / 1.1102230246251565e-16\n",
  391. " RuntimeWarning)\n",
  392. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  393. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  394. "Reciprocal condition number/precision: 6.468773818521402e-17 / 1.1102230246251565e-16\n",
  395. " RuntimeWarning)\n",
  396. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  397. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  398. "Reciprocal condition number/precision: 8.958334441043603e-17 / 1.1102230246251565e-16\n",
  399. " RuntimeWarning)\n"
  400. ]
  401. },
  402. {
  403. "name": "stdout",
  404. "output_type": "stream",
  405. "text": [
  406. "calculate performance: 27%|██▋ | 267/1000 [00:00<00:01, 654.82it/s]"
  407. ]
  408. },
  409. {
  410. "name": "stderr",
  411. "output_type": "stream",
  412. "text": [
  413. "/home/ljia/.local/lib/python3.5/site-packages/sklearn/linear_model/ridge.py:154: UserWarning: Singular matrix in solving dual problem. Using least-squares solution instead.\n",
  414. " warnings.warn(\"Singular matrix in solving dual problem. Using \"\n",
  415. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  416. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  417. "Reciprocal condition number/precision: 3.055618175730539e-18 / 1.1102230246251565e-16\n",
  418. " RuntimeWarning)\n",
  419. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  420. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  421. "Reciprocal condition number/precision: 3.7159074038024934e-17 / 1.1102230246251565e-16\n",
  422. " RuntimeWarning)\n",
  423. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  424. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  425. "Reciprocal condition number/precision: 5.895455126720251e-17 / 1.1102230246251565e-16\n",
  426. " RuntimeWarning)\n",
  427. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  428. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  429. "Reciprocal condition number/precision: 9.400306511546424e-17 / 1.1102230246251565e-16\n",
  430. " RuntimeWarning)\n",
  431. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  432. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  433. "Reciprocal condition number/precision: 9.206478316049589e-19 / 1.1102230246251565e-16\n",
  434. " RuntimeWarning)\n",
  435. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  436. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  437. "Reciprocal condition number/precision: 2.8083631222444177e-18 / 1.1102230246251565e-16\n",
  438. " RuntimeWarning)\n",
  439. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  440. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  441. "Reciprocal condition number/precision: 4.49051280863482e-18 / 1.1102230246251565e-16\n",
  442. " RuntimeWarning)\n",
  443. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  444. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  445. "Reciprocal condition number/precision: 3.339852738992424e-17 / 1.1102230246251565e-16\n",
  446. " RuntimeWarning)\n",
  447. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  448. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  449. "Reciprocal condition number/precision: 5.277544863160196e-17 / 1.1102230246251565e-16\n",
  450. " RuntimeWarning)\n",
  451. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  452. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  453. "Reciprocal condition number/precision: 8.458523723353626e-17 / 1.1102230246251565e-16\n",
  454. " RuntimeWarning)\n"
  455. ]
  456. },
  457. {
  458. "name": "stdout",
  459. "output_type": "stream",
  460. "text": [
  461. "calculate performance: 48%|████▊ | 477/1000 [00:00<00:00, 685.70it/s]"
  462. ]
  463. },
  464. {
  465. "name": "stderr",
  466. "output_type": "stream",
  467. "text": [
  468. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  469. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  470. "Reciprocal condition number/precision: 1.6380760737666547e-18 / 1.1102230246251565e-16\n",
  471. " RuntimeWarning)\n",
  472. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  473. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  474. "Reciprocal condition number/precision: 2.3843421259537676e-17 / 1.1102230246251565e-16\n",
  475. " RuntimeWarning)\n",
  476. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  477. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  478. "Reciprocal condition number/precision: 3.890544546973404e-17 / 1.1102230246251565e-16\n",
  479. " RuntimeWarning)\n",
  480. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  481. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  482. "Reciprocal condition number/precision: 7.054758730954765e-17 / 1.1102230246251565e-16\n",
  483. " RuntimeWarning)\n",
  484. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  485. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  486. "Reciprocal condition number/precision: 2.9172765626494813e-18 / 1.1102230246251565e-16\n",
  487. " RuntimeWarning)\n",
  488. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  489. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  490. "Reciprocal condition number/precision: 1.4455093698440067e-17 / 1.1102230246251565e-16\n",
  491. " RuntimeWarning)\n",
  492. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  493. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  494. "Reciprocal condition number/precision: 2.2914256710839066e-17 / 1.1102230246251565e-16\n",
  495. " RuntimeWarning)\n",
  496. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  497. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  498. "Reciprocal condition number/precision: 3.65667341282596e-17 / 1.1102230246251565e-16\n",
  499. " RuntimeWarning)\n",
  500. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  501. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  502. "Reciprocal condition number/precision: 5.852926745577629e-17 / 1.1102230246251565e-16\n",
  503. " RuntimeWarning)\n",
  504. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  505. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  506. "Reciprocal condition number/precision: 9.285092924342139e-17 / 1.1102230246251565e-16\n",
  507. " RuntimeWarning)\n"
  508. ]
  509. },
  510. {
  511. "name": "stdout",
  512. "output_type": "stream",
  513. "text": [
  514. "calculate performance: 69%|██████▉ | 694/1000 [00:01<00:00, 712.57it/s]"
  515. ]
  516. },
  517. {
  518. "name": "stderr",
  519. "output_type": "stream",
  520. "text": [
  521. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  522. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  523. "Reciprocal condition number/precision: 7.700250453064005e-18 / 1.1102230246251565e-16\n",
  524. " RuntimeWarning)\n",
  525. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  526. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  527. "Reciprocal condition number/precision: 1.6205193931367065e-17 / 1.1102230246251565e-16\n",
  528. " RuntimeWarning)\n",
  529. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  530. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  531. "Reciprocal condition number/precision: 2.4925504318417794e-17 / 1.1102230246251565e-16\n",
  532. " RuntimeWarning)\n",
  533. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  534. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  535. "Reciprocal condition number/precision: 4.0111387119813346e-17 / 1.1102230246251565e-16\n",
  536. " RuntimeWarning)\n",
  537. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  538. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  539. "Reciprocal condition number/precision: 6.343123723749221e-17 / 1.1102230246251565e-16\n",
  540. " RuntimeWarning)\n",
  541. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  542. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  543. "Reciprocal condition number/precision: 1.0143662852277667e-16 / 1.1102230246251565e-16\n",
  544. " RuntimeWarning)\n",
  545. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  546. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  547. "Reciprocal condition number/precision: 9.206690575125046e-18 / 1.1102230246251565e-16\n",
  548. " RuntimeWarning)\n",
  549. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  550. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  551. "Reciprocal condition number/precision: 2.049999246995425e-17 / 1.1102230246251565e-16\n",
  552. " RuntimeWarning)\n",
  553. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  554. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  555. "Reciprocal condition number/precision: 3.4232350203422674e-17 / 1.1102230246251565e-16\n",
  556. " RuntimeWarning)\n",
  557. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  558. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  559. "Reciprocal condition number/precision: 5.350008400303505e-17 / 1.1102230246251565e-16\n",
  560. " RuntimeWarning)\n",
  561. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  562. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  563. "Reciprocal condition number/precision: 8.251763015291957e-17 / 1.1102230246251565e-16\n",
  564. " RuntimeWarning)\n"
  565. ]
  566. },
  567. {
  568. "name": "stdout",
  569. "output_type": "stream",
  570. "text": [
  571. "calculate performance: 90%|█████████ | 902/1000 [00:01<00:00, 666.85it/s]"
  572. ]
  573. },
  574. {
  575. "name": "stderr",
  576. "output_type": "stream",
  577. "text": [
  578. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  579. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  580. "Reciprocal condition number/precision: 8.924869742342744e-18 / 1.1102230246251565e-16\n",
  581. " RuntimeWarning)\n",
  582. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  583. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  584. "Reciprocal condition number/precision: 1.4010401637647583e-17 / 1.1102230246251565e-16\n",
  585. " RuntimeWarning)\n",
  586. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  587. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  588. "Reciprocal condition number/precision: 3.5117924740400373e-17 / 1.1102230246251565e-16\n",
  589. " RuntimeWarning)\n",
  590. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  591. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  592. "Reciprocal condition number/precision: 5.626753798403599e-17 / 1.1102230246251565e-16\n",
  593. " RuntimeWarning)\n",
  594. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  595. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  596. "Reciprocal condition number/precision: 8.911227588173856e-17 / 1.1102230246251565e-16\n",
  597. " RuntimeWarning)\n",
  598. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  599. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  600. "Reciprocal condition number/precision: 2.0660043401009468e-17 / 1.1102230246251565e-16\n",
  601. " RuntimeWarning)\n",
  602. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  603. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  604. "Reciprocal condition number/precision: 3.3099139652029694e-17 / 1.1102230246251565e-16\n",
  605. " RuntimeWarning)\n",
  606. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  607. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  608. "Reciprocal condition number/precision: 5.2680602391853274e-17 / 1.1102230246251565e-16\n",
  609. " RuntimeWarning)\n",
  610. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  611. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  612. "Reciprocal condition number/precision: 8.396574210735164e-17 / 1.1102230246251565e-16\n",
  613. " RuntimeWarning)\n"
  614. ]
  615. },
  616. {
  617. "name": "stdout",
  618. "output_type": "stream",
  619. "text": [
  620. "calculate performance: 97%|█████████▋| 969/1000 [00:01<00:00, 600.11it/s]\n",
  621. " Mean performance on train set: 6.816974\n",
  622. "With standard deviation: 1.501822\n",
  623. "\n",
  624. " Mean performance on test set: 7.497870\n",
  625. "With standard deviation: 2.368148\n",
  626. "calculate performance: 100%|██████████| 1000/1000 [00:01<00:00, 648.87it/s]\n",
  627. "\n",
  628. "\n",
  629. " #--- calculating kernel matrix when lmda = 100.0 ---#\n",
  630. "\n",
  631. " Loading dataset from file...\n",
  632. "\n",
  633. " Calculating kernel matrix, this could take a while...\n",
  634. "\n",
  635. " --- kernel matrix of tree pattern kernel of size 185 built in 37.09455919265747 seconds ---\n",
  636. "[[4.13000e+02 1.40000e+01 4.00000e+00 ... 2.00000e+01 2.00000e+01\n",
  637. " 2.00000e+01]\n",
  638. " [1.40000e+01 8.20000e+02 4.00000e+00 ... 2.00000e+01 2.00000e+01\n",
  639. " 2.00000e+01]\n",
  640. " [4.00000e+00 4.00000e+00 4.13000e+02 ... 4.29000e+02 4.29000e+02\n",
  641. " 4.29000e+02]\n",
  642. " ...\n",
  643. " [2.00000e+01 2.00000e+01 4.29000e+02 ... 7.35165e+05 7.35165e+05\n",
  644. " 1.51650e+04]\n",
  645. " [2.00000e+01 2.00000e+01 4.29000e+02 ... 7.35165e+05 7.35165e+05\n",
  646. " 1.51650e+04]\n",
  647. " [2.00000e+01 2.00000e+01 4.29000e+02 ... 1.51650e+04 1.51650e+04\n",
  648. " 2.05650e+04]]\n",
  649. "\n",
  650. " Starting calculate accuracy/rmse...\n",
  651. "calculate performance: 10%|▉ | 97/1000 [00:00<00:02, 436.93it/s]"
  652. ]
  653. },
  654. {
  655. "name": "stderr",
  656. "output_type": "stream",
  657. "text": [
  658. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  659. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  660. "Reciprocal condition number/precision: 1.249229588791739e-20 / 1.1102230246251565e-16\n",
  661. " RuntimeWarning)\n",
  662. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  663. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  664. "Reciprocal condition number/precision: 1.6092761314568358e-18 / 1.1102230246251565e-16\n",
  665. " RuntimeWarning)\n",
  666. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  667. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  668. "Reciprocal condition number/precision: 1.6033357497241564e-17 / 1.1102230246251565e-16\n",
  669. " RuntimeWarning)\n",
  670. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  671. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  672. "Reciprocal condition number/precision: 3.0333531111165975e-17 / 1.1102230246251565e-16\n",
  673. " RuntimeWarning)\n",
  674. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  675. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  676. "Reciprocal condition number/precision: 4.073851980749357e-17 / 1.1102230246251565e-16\n",
  677. " RuntimeWarning)\n",
  678. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  679. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  680. "Reciprocal condition number/precision: 6.497880470461594e-17 / 1.1102230246251565e-16\n",
  681. " RuntimeWarning)\n",
  682. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  683. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  684. "Reciprocal condition number/precision: 1.0349745182117167e-16 / 1.1102230246251565e-16\n",
  685. " RuntimeWarning)\n"
  686. ]
  687. },
  688. {
  689. "name": "stdout",
  690. "output_type": "stream",
  691. "text": [
  692. "calculate performance: 17%|█▋ | 169/1000 [00:00<00:02, 372.64it/s]"
  693. ]
  694. },
  695. {
  696. "name": "stderr",
  697. "output_type": "stream",
  698. "text": [
  699. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  700. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  701. "Reciprocal condition number/precision: 4.227908145504113e-18 / 1.1102230246251565e-16\n",
  702. " RuntimeWarning)\n",
  703. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  704. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  705. "Reciprocal condition number/precision: 1.1894008132724887e-17 / 1.1102230246251565e-16\n",
  706. " RuntimeWarning)\n",
  707. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  708. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  709. "Reciprocal condition number/precision: 1.9131474526752795e-17 / 1.1102230246251565e-16\n",
  710. " RuntimeWarning)\n",
  711. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  712. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  713. "Reciprocal condition number/precision: 3.0421770253846576e-17 / 1.1102230246251565e-16\n",
  714. " RuntimeWarning)\n",
  715. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  716. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  717. "Reciprocal condition number/precision: 4.864916618602575e-17 / 1.1102230246251565e-16\n",
  718. " RuntimeWarning)\n",
  719. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  720. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  721. "Reciprocal condition number/precision: 7.663676730244888e-17 / 1.1102230246251565e-16\n",
  722. " RuntimeWarning)\n"
  723. ]
  724. },
  725. {
  726. "name": "stdout",
  727. "output_type": "stream",
  728. "text": [
  729. "calculate performance: 31%|███▏ | 314/1000 [00:00<00:01, 429.29it/s]"
  730. ]
  731. },
  732. {
  733. "name": "stderr",
  734. "output_type": "stream",
  735. "text": [
  736. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  737. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  738. "Reciprocal condition number/precision: 2.6989200751598342e-18 / 1.1102230246251565e-16\n",
  739. " RuntimeWarning)\n",
  740. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  741. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  742. "Reciprocal condition number/precision: 1.9988176582222278e-17 / 1.1102230246251565e-16\n",
  743. " RuntimeWarning)\n",
  744. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  745. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  746. "Reciprocal condition number/precision: 3.173259131422707e-17 / 1.1102230246251565e-16\n",
  747. " RuntimeWarning)\n",
  748. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  749. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  750. "Reciprocal condition number/precision: 5.069621878854856e-17 / 1.1102230246251565e-16\n",
  751. " RuntimeWarning)\n",
  752. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  753. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  754. "Reciprocal condition number/precision: 8.087601566853754e-17 / 1.1102230246251565e-16\n",
  755. " RuntimeWarning)\n",
  756. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  757. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  758. "Reciprocal condition number/precision: 2.1827598831940232e-18 / 1.1102230246251565e-16\n",
  759. " RuntimeWarning)\n",
  760. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  761. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  762. "Reciprocal condition number/precision: 3.428244298929586e-18 / 1.1102230246251565e-16\n",
  763. " RuntimeWarning)\n",
  764. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  765. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  766. "Reciprocal condition number/precision: 1.1120965359644164e-17 / 1.1102230246251565e-16\n",
  767. " RuntimeWarning)\n",
  768. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  769. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  770. "Reciprocal condition number/precision: 2.8329496119281176e-17 / 1.1102230246251565e-16\n",
  771. " RuntimeWarning)\n",
  772. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  773. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  774. "Reciprocal condition number/precision: 4.5128147762765525e-17 / 1.1102230246251565e-16\n",
  775. " RuntimeWarning)\n",
  776. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  777. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  778. "Reciprocal condition number/precision: 7.173155329882729e-17 / 1.1102230246251565e-16\n",
  779. " RuntimeWarning)\n"
  780. ]
  781. },
  782. {
  783. "name": "stdout",
  784. "output_type": "stream",
  785. "text": [
  786. "calculate performance: 50%|█████ | 501/1000 [00:01<00:00, 516.57it/s]"
  787. ]
  788. },
  789. {
  790. "name": "stderr",
  791. "output_type": "stream",
  792. "text": [
  793. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  794. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  795. "Reciprocal condition number/precision: 6.874621241781873e-18 / 1.1102230246251565e-16\n",
  796. " RuntimeWarning)\n",
  797. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  798. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  799. "Reciprocal condition number/precision: 1.9047959204426696e-17 / 1.1102230246251565e-16\n",
  800. " RuntimeWarning)\n",
  801. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  802. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  803. "Reciprocal condition number/precision: 3.03000007539236e-17 / 1.1102230246251565e-16\n",
  804. " RuntimeWarning)\n",
  805. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  806. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  807. "Reciprocal condition number/precision: 4.8198639503150797e-17 / 1.1102230246251565e-16\n",
  808. " RuntimeWarning)\n",
  809. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  810. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  811. "Reciprocal condition number/precision: 7.679200342495213e-17 / 1.1102230246251565e-16\n",
  812. " RuntimeWarning)\n",
  813. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  814. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  815. "Reciprocal condition number/precision: 1.6211471280327221e-18 / 1.1102230246251565e-16\n",
  816. " RuntimeWarning)\n",
  817. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  818. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  819. "Reciprocal condition number/precision: 3.74280825574767e-18 / 1.1102230246251565e-16\n",
  820. " RuntimeWarning)\n",
  821. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  822. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  823. "Reciprocal condition number/precision: 1.685372827008377e-17 / 1.1102230246251565e-16\n",
  824. " RuntimeWarning)\n",
  825. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  826. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  827. "Reciprocal condition number/precision: 1.9723233156997277e-17 / 1.1102230246251565e-16\n",
  828. " RuntimeWarning)\n",
  829. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  830. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  831. "Reciprocal condition number/precision: 3.142362330339379e-17 / 1.1102230246251565e-16\n",
  832. " RuntimeWarning)\n",
  833. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  834. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  835. "Reciprocal condition number/precision: 5.0042133764798303e-17 / 1.1102230246251565e-16\n",
  836. " RuntimeWarning)\n",
  837. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  838. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  839. "Reciprocal condition number/precision: 7.987833375253946e-17 / 1.1102230246251565e-16\n",
  840. " RuntimeWarning)\n"
  841. ]
  842. },
  843. {
  844. "name": "stdout",
  845. "output_type": "stream",
  846. "text": [
  847. "calculate performance: 71%|███████ | 706/1000 [00:01<00:00, 471.97it/s]"
  848. ]
  849. },
  850. {
  851. "name": "stderr",
  852. "output_type": "stream",
  853. "text": [
  854. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  855. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  856. "Reciprocal condition number/precision: 4.63949546549065e-19 / 1.1102230246251565e-16\n",
  857. " RuntimeWarning)\n",
  858. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  859. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  860. "Reciprocal condition number/precision: 3.76170805410039e-18 / 1.1102230246251565e-16\n",
  861. " RuntimeWarning)\n",
  862. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  863. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  864. "Reciprocal condition number/precision: 1.3721058293845662e-17 / 1.1102230246251565e-16\n",
  865. " RuntimeWarning)\n",
  866. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  867. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  868. "Reciprocal condition number/precision: 2.178277242767302e-17 / 1.1102230246251565e-16\n",
  869. " RuntimeWarning)\n",
  870. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  871. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  872. "Reciprocal condition number/precision: 3.4883373934010664e-17 / 1.1102230246251565e-16\n",
  873. " RuntimeWarning)\n",
  874. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  875. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  876. "Reciprocal condition number/precision: 5.526360275338589e-17 / 1.1102230246251565e-16\n",
  877. " RuntimeWarning)\n",
  878. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  879. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  880. "Reciprocal condition number/precision: 8.827383891217367e-17 / 1.1102230246251565e-16\n",
  881. " RuntimeWarning)\n"
  882. ]
  883. },
  884. {
  885. "name": "stdout",
  886. "output_type": "stream",
  887. "text": [
  888. "calculate performance: 81%|████████ | 807/1000 [00:01<00:00, 457.30it/s]"
  889. ]
  890. },
  891. {
  892. "name": "stderr",
  893. "output_type": "stream",
  894. "text": [
  895. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  896. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  897. "Reciprocal condition number/precision: 7.052622499085628e-18 / 1.1102230246251565e-16\n",
  898. " RuntimeWarning)\n",
  899. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  900. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  901. "Reciprocal condition number/precision: 1.70793549450487e-17 / 1.1102230246251565e-16\n",
  902. " RuntimeWarning)\n",
  903. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  904. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  905. "Reciprocal condition number/precision: 2.8190124240850417e-17 / 1.1102230246251565e-16\n",
  906. " RuntimeWarning)\n",
  907. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  908. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  909. "Reciprocal condition number/precision: 4.349104192126423e-17 / 1.1102230246251565e-16\n",
  910. " RuntimeWarning)\n",
  911. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  912. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  913. "Reciprocal condition number/precision: 7.132340452050677e-17 / 1.1102230246251565e-16\n",
  914. " RuntimeWarning)\n"
  915. ]
  916. },
  917. {
  918. "name": "stdout",
  919. "output_type": "stream",
  920. "text": [
  921. "calculate performance: 91%|█████████ | 909/1000 [00:01<00:00, 451.90it/s]"
  922. ]
  923. },
  924. {
  925. "name": "stderr",
  926. "output_type": "stream",
  927. "text": [
  928. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  929. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  930. "Reciprocal condition number/precision: 5.78695142234395e-20 / 1.1102230246251565e-16\n",
  931. " RuntimeWarning)\n",
  932. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  933. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  934. "Reciprocal condition number/precision: 1.8765535280551442e-17 / 1.1102230246251565e-16\n",
  935. " RuntimeWarning)\n",
  936. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  937. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  938. "Reciprocal condition number/precision: 2.9917255115528226e-17 / 1.1102230246251565e-16\n",
  939. " RuntimeWarning)\n",
  940. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  941. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  942. "Reciprocal condition number/precision: 4.781650263544808e-17 / 1.1102230246251565e-16\n",
  943. " RuntimeWarning)\n",
  944. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  945. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  946. "Reciprocal condition number/precision: 7.581768670551366e-17 / 1.1102230246251565e-16\n",
  947. " RuntimeWarning)\n",
  948. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  949. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  950. "Reciprocal condition number/precision: 3.0493867289518776e-20 / 1.1102230246251565e-16\n",
  951. " RuntimeWarning)\n",
  952. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  953. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  954. "Reciprocal condition number/precision: 5.9787087068181396e-18 / 1.1102230246251565e-16\n",
  955. " RuntimeWarning)\n",
  956. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  957. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  958. "Reciprocal condition number/precision: 1.756012232435961e-17 / 1.1102230246251565e-16\n",
  959. " RuntimeWarning)\n",
  960. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  961. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  962. "Reciprocal condition number/precision: 2.800283208793992e-17 / 1.1102230246251565e-16\n",
  963. " RuntimeWarning)\n",
  964. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  965. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  966. "Reciprocal condition number/precision: 4.468606690086715e-17 / 1.1102230246251565e-16\n",
  967. " RuntimeWarning)\n",
  968. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  969. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  970. "Reciprocal condition number/precision: 7.119459703249427e-17 / 1.1102230246251565e-16\n",
  971. " RuntimeWarning)\n"
  972. ]
  973. },
  974. {
  975. "name": "stdout",
  976. "output_type": "stream",
  977. "text": [
  978. "calculate performance: 96%|█████████▌| 956/1000 [00:02<00:00, 445.96it/s]\n",
  979. " Mean performance on train set: 6.687664\n",
  980. "With standard deviation: 1.348089\n",
  981. "\n",
  982. " Mean performance on test set: 7.428867\n",
  983. "With standard deviation: 2.647892\n",
  984. "calculate performance: 100%|██████████| 1000/1000 [00:02<00:00, 467.65it/s]\n",
  985. "\n",
  986. "\n",
  987. " #--- calculating kernel matrix when lmda = 1000.0 ---#\n",
  988. "\n",
  989. " Loading dataset from file...\n",
  990. "\n",
  991. " Calculating kernel matrix, this could take a while...\n",
  992. "\n",
  993. " --- kernel matrix of tree pattern kernel of size 185 built in 37.517051219940186 seconds ---\n",
  994. "[[4.0130000e+03 1.4000000e+01 4.0000000e+00 ... 2.0000000e+01\n",
  995. " 2.0000000e+01 2.0000000e+01]\n",
  996. " [1.4000000e+01 8.0200000e+03 4.0000000e+00 ... 2.0000000e+01\n",
  997. " 2.0000000e+01 2.0000000e+01]\n",
  998. " [4.0000000e+00 4.0000000e+00 4.0130000e+03 ... 4.0290000e+03\n",
  999. " 4.0290000e+03 4.0290000e+03]\n",
  1000. " ...\n",
  1001. " [2.0000000e+01 2.0000000e+01 4.0290000e+03 ... 7.2148365e+07\n",
  1002. " 7.2148365e+07 1.4836500e+05]\n",
  1003. " [2.0000000e+01 2.0000000e+01 4.0290000e+03 ... 7.2148365e+07\n",
  1004. " 7.2148365e+07 1.4836500e+05]\n",
  1005. " [2.0000000e+01 2.0000000e+01 4.0290000e+03 ... 1.4836500e+05\n",
  1006. " 1.4836500e+05 2.0236500e+05]]\n",
  1007. "\n",
  1008. " Starting calculate accuracy/rmse...\n",
  1009. "calculate performance: 10%|█ | 102/1000 [00:00<00:02, 330.46it/s]"
  1010. ]
  1011. },
  1012. {
  1013. "name": "stderr",
  1014. "output_type": "stream",
  1015. "text": [
  1016. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1017. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1018. "Reciprocal condition number/precision: 3.374017095746491e-19 / 1.1102230246251565e-16\n",
  1019. " RuntimeWarning)\n",
  1020. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1021. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1022. "Reciprocal condition number/precision: 7.687507275679712e-18 / 1.1102230246251565e-16\n",
  1023. " RuntimeWarning)\n",
  1024. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1025. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1026. "Reciprocal condition number/precision: 1.7645414168071277e-17 / 1.1102230246251565e-16\n",
  1027. " RuntimeWarning)\n",
  1028. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1029. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1030. "Reciprocal condition number/precision: 2.8090152927008474e-17 / 1.1102230246251565e-16\n",
  1031. " RuntimeWarning)\n",
  1032. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1033. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1034. "Reciprocal condition number/precision: 4.474194561968185e-17 / 1.1102230246251565e-16\n",
  1035. " RuntimeWarning)\n",
  1036. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1037. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1038. "Reciprocal condition number/precision: 7.130856876335615e-17 / 1.1102230246251565e-16\n",
  1039. " RuntimeWarning)\n"
  1040. ]
  1041. },
  1042. {
  1043. "name": "stdout",
  1044. "output_type": "stream",
  1045. "text": [
  1046. "calculate performance: 19%|█▉ | 188/1000 [00:00<00:02, 348.40it/s]"
  1047. ]
  1048. },
  1049. {
  1050. "name": "stderr",
  1051. "output_type": "stream",
  1052. "text": [
  1053. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1054. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1055. "Reciprocal condition number/precision: 2.7794644716713837e-18 / 1.1102230246251565e-16\n",
  1056. " RuntimeWarning)\n",
  1057. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1058. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1059. "Reciprocal condition number/precision: 1.3130943734340723e-17 / 1.1102230246251565e-16\n",
  1060. " RuntimeWarning)\n",
  1061. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1062. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1063. "Reciprocal condition number/precision: 2.7505566440337117e-17 / 1.1102230246251565e-16\n",
  1064. " RuntimeWarning)\n",
  1065. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1066. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1067. "Reciprocal condition number/precision: 3.3279670378456666e-17 / 1.1102230246251565e-16\n",
  1068. " RuntimeWarning)\n",
  1069. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1070. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1071. "Reciprocal condition number/precision: 5.318466984022222e-17 / 1.1102230246251565e-16\n",
  1072. " RuntimeWarning)\n",
  1073. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1074. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1075. "Reciprocal condition number/precision: 8.418445519765442e-17 / 1.1102230246251565e-16\n",
  1076. " RuntimeWarning)\n"
  1077. ]
  1078. },
  1079. {
  1080. "name": "stdout",
  1081. "output_type": "stream",
  1082. "text": [
  1083. "calculate performance: 28%|██▊ | 285/1000 [00:00<00:01, 380.47it/s]"
  1084. ]
  1085. },
  1086. {
  1087. "name": "stderr",
  1088. "output_type": "stream",
  1089. "text": [
  1090. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1091. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1092. "Reciprocal condition number/precision: 3.1356199672921913e-18 / 1.1102230246251565e-16\n",
  1093. " RuntimeWarning)\n",
  1094. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1095. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1096. "Reciprocal condition number/precision: 1.6464620684950592e-18 / 1.1102230246251565e-16\n",
  1097. " RuntimeWarning)\n",
  1098. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1099. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1100. "Reciprocal condition number/precision: 2.179430869121561e-17 / 1.1102230246251565e-16\n",
  1101. " RuntimeWarning)\n",
  1102. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1103. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1104. "Reciprocal condition number/precision: 3.473887201835687e-17 / 1.1102230246251565e-16\n",
  1105. " RuntimeWarning)\n",
  1106. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1107. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1108. "Reciprocal condition number/precision: 5.570987725305032e-17 / 1.1102230246251565e-16\n",
  1109. " RuntimeWarning)\n",
  1110. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1111. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1112. "Reciprocal condition number/precision: 8.854640029504099e-17 / 1.1102230246251565e-16\n",
  1113. " RuntimeWarning)\n"
  1114. ]
  1115. },
  1116. {
  1117. "name": "stdout",
  1118. "output_type": "stream",
  1119. "text": [
  1120. "calculate performance: 38%|███▊ | 385/1000 [00:00<00:01, 389.24it/s]"
  1121. ]
  1122. },
  1123. {
  1124. "name": "stderr",
  1125. "output_type": "stream",
  1126. "text": [
  1127. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1128. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1129. "Reciprocal condition number/precision: 3.3781828327775562e-18 / 1.1102230246251565e-16\n",
  1130. " RuntimeWarning)\n",
  1131. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1132. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1133. "Reciprocal condition number/precision: 1.955507306233033e-17 / 1.1102230246251565e-16\n",
  1134. " RuntimeWarning)\n",
  1135. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1136. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1137. "Reciprocal condition number/precision: 3.109947315270106e-17 / 1.1102230246251565e-16\n",
  1138. " RuntimeWarning)\n",
  1139. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1140. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1141. "Reciprocal condition number/precision: 4.9378280303294975e-17 / 1.1102230246251565e-16\n",
  1142. " RuntimeWarning)\n",
  1143. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1144. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1145. "Reciprocal condition number/precision: 7.866942525478256e-17 / 1.1102230246251565e-16\n",
  1146. " RuntimeWarning)\n"
  1147. ]
  1148. },
  1149. {
  1150. "name": "stdout",
  1151. "output_type": "stream",
  1152. "text": [
  1153. "calculate performance: 49%|████▉ | 494/1000 [00:01<00:01, 398.83it/s]"
  1154. ]
  1155. },
  1156. {
  1157. "name": "stderr",
  1158. "output_type": "stream",
  1159. "text": [
  1160. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1161. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1162. "Reciprocal condition number/precision: 7.636014964778956e-18 / 1.1102230246251565e-16\n",
  1163. " RuntimeWarning)\n",
  1164. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1165. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1166. "Reciprocal condition number/precision: 2.6552163232757833e-17 / 1.1102230246251565e-16\n",
  1167. " RuntimeWarning)\n",
  1168. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1169. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1170. "Reciprocal condition number/precision: 3.312233993243073e-17 / 1.1102230246251565e-16\n",
  1171. " RuntimeWarning)\n",
  1172. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1173. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1174. "Reciprocal condition number/precision: 5.2794244316598437e-17 / 1.1102230246251565e-16\n",
  1175. " RuntimeWarning)\n",
  1176. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1177. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1178. "Reciprocal condition number/precision: 8.406028628818668e-17 / 1.1102230246251565e-16\n",
  1179. " RuntimeWarning)\n"
  1180. ]
  1181. },
  1182. {
  1183. "name": "stdout",
  1184. "output_type": "stream",
  1185. "text": [
  1186. "calculate performance: 60%|██████ | 604/1000 [00:01<00:00, 407.30it/s]"
  1187. ]
  1188. },
  1189. {
  1190. "name": "stderr",
  1191. "output_type": "stream",
  1192. "text": [
  1193. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1194. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1195. "Reciprocal condition number/precision: 5.184686103929999e-20 / 1.1102230246251565e-16\n",
  1196. " RuntimeWarning)\n",
  1197. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1198. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1199. "Reciprocal condition number/precision: 2.1281587780183657e-18 / 1.1102230246251565e-16\n",
  1200. " RuntimeWarning)\n",
  1201. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1202. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1203. "Reciprocal condition number/precision: 1.367013528660628e-17 / 1.1102230246251565e-16\n",
  1204. " RuntimeWarning)\n",
  1205. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1206. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1207. "Reciprocal condition number/precision: 2.155116554595105e-17 / 1.1102230246251565e-16\n",
  1208. " RuntimeWarning)\n",
  1209. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1210. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1211. "Reciprocal condition number/precision: 3.443029464120917e-17 / 1.1102230246251565e-16\n",
  1212. " RuntimeWarning)\n",
  1213. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1214. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1215. "Reciprocal condition number/precision: 5.4923079446940085e-17 / 1.1102230246251565e-16\n",
  1216. " RuntimeWarning)\n",
  1217. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1218. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1219. "Reciprocal condition number/precision: 8.750703061909557e-17 / 1.1102230246251565e-16\n",
  1220. " RuntimeWarning)\n"
  1221. ]
  1222. },
  1223. {
  1224. "name": "stdout",
  1225. "output_type": "stream",
  1226. "text": [
  1227. "calculate performance: 71%|███████ | 707/1000 [00:01<00:00, 402.63it/s]"
  1228. ]
  1229. },
  1230. {
  1231. "name": "stderr",
  1232. "output_type": "stream",
  1233. "text": [
  1234. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1235. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1236. "Reciprocal condition number/precision: 1.4970615125032324e-17 / 1.1102230246251565e-16\n",
  1237. " RuntimeWarning)\n",
  1238. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1239. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1240. "Reciprocal condition number/precision: 2.39494402062226e-17 / 1.1102230246251565e-16\n",
  1241. " RuntimeWarning)\n",
  1242. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1243. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1244. "Reciprocal condition number/precision: 3.818999641865095e-17 / 1.1102230246251565e-16\n",
  1245. " RuntimeWarning)\n",
  1246. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1247. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1248. "Reciprocal condition number/precision: 6.051275910233908e-17 / 1.1102230246251565e-16\n",
  1249. " RuntimeWarning)\n",
  1250. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1251. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1252. "Reciprocal condition number/precision: 9.688197813410084e-17 / 1.1102230246251565e-16\n",
  1253. " RuntimeWarning)\n"
  1254. ]
  1255. },
  1256. {
  1257. "name": "stdout",
  1258. "output_type": "stream",
  1259. "text": [
  1260. "calculate performance: 81%|████████ | 806/1000 [00:01<00:00, 404.11it/s]"
  1261. ]
  1262. },
  1263. {
  1264. "name": "stderr",
  1265. "output_type": "stream",
  1266. "text": [
  1267. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1268. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1269. "Reciprocal condition number/precision: 6.43659662072146e-20 / 1.1102230246251565e-16\n",
  1270. " RuntimeWarning)\n",
  1271. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1272. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1273. "Reciprocal condition number/precision: 5.4284104102664825e-18 / 1.1102230246251565e-16\n",
  1274. " RuntimeWarning)\n",
  1275. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1276. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1277. "Reciprocal condition number/precision: 1.900304923444742e-17 / 1.1102230246251565e-16\n",
  1278. " RuntimeWarning)\n",
  1279. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1280. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1281. "Reciprocal condition number/precision: 3.1112688931900636e-17 / 1.1102230246251565e-16\n",
  1282. " RuntimeWarning)\n",
  1283. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1284. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1285. "Reciprocal condition number/precision: 4.941184656304436e-17 / 1.1102230246251565e-16\n",
  1286. " RuntimeWarning)\n",
  1287. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1288. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1289. "Reciprocal condition number/precision: 7.746476431972804e-17 / 1.1102230246251565e-16\n",
  1290. " RuntimeWarning)\n"
  1291. ]
  1292. },
  1293. {
  1294. "name": "stdout",
  1295. "output_type": "stream",
  1296. "text": [
  1297. "calculate performance: 91%|█████████ | 906/1000 [00:02<00:00, 407.57it/s]"
  1298. ]
  1299. },
  1300. {
  1301. "name": "stderr",
  1302. "output_type": "stream",
  1303. "text": [
  1304. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1305. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1306. "Reciprocal condition number/precision: 7.327409345420052e-18 / 1.1102230246251565e-16\n",
  1307. " RuntimeWarning)\n",
  1308. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1309. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1310. "Reciprocal condition number/precision: 2.0589341144557062e-17 / 1.1102230246251565e-16\n",
  1311. " RuntimeWarning)\n",
  1312. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1313. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1314. "Reciprocal condition number/precision: 3.29154188313992e-17 / 1.1102230246251565e-16\n",
  1315. " RuntimeWarning)\n",
  1316. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1317. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1318. "Reciprocal condition number/precision: 5.225020130252359e-17 / 1.1102230246251565e-16\n",
  1319. " RuntimeWarning)\n",
  1320. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1321. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1322. "Reciprocal condition number/precision: 8.327720201864263e-17 / 1.1102230246251565e-16\n",
  1323. " RuntimeWarning)\n"
  1324. ]
  1325. },
  1326. {
  1327. "name": "stdout",
  1328. "output_type": "stream",
  1329. "text": [
  1330. "calculate performance: 95%|█████████▌| 951/1000 [00:02<00:00, 373.87it/s]\n",
  1331. " Mean performance on train set: 6.819058\n",
  1332. "With standard deviation: 1.410085\n",
  1333. "\n",
  1334. " Mean performance on test set: 7.249143\n",
  1335. "With standard deviation: 2.655536\n",
  1336. "calculate performance: 100%|██████████| 1000/1000 [00:02<00:00, 414.03it/s]"
  1337. ]
  1338. },
  1339. {
  1340. "name": "stderr",
  1341. "output_type": "stream",
  1342. "text": [
  1343. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1344. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1345. "Reciprocal condition number/precision: 5.193651783291256e-18 / 1.1102230246251565e-16\n",
  1346. " RuntimeWarning)\n",
  1347. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1348. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1349. "Reciprocal condition number/precision: 2.19984276961351e-17 / 1.1102230246251565e-16\n",
  1350. " RuntimeWarning)\n",
  1351. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1352. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1353. "Reciprocal condition number/precision: 3.0689487149937185e-17 / 1.1102230246251565e-16\n",
  1354. " RuntimeWarning)\n",
  1355. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1356. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1357. "Reciprocal condition number/precision: 4.8956869823870564e-17 / 1.1102230246251565e-16\n",
  1358. " RuntimeWarning)\n",
  1359. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1360. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1361. "Reciprocal condition number/precision: 7.790887064559792e-17 / 1.1102230246251565e-16\n",
  1362. " RuntimeWarning)\n"
  1363. ]
  1364. },
  1365. {
  1366. "name": "stdout",
  1367. "output_type": "stream",
  1368. "text": [
  1369. "\n",
  1370. "\n",
  1371. "\n",
  1372. " #--- calculating kernel matrix when lmda = 10000.0 ---#\n",
  1373. "\n",
  1374. " Loading dataset from file...\n",
  1375. "\n",
  1376. " Calculating kernel matrix, this could take a while...\n",
  1377. "\n",
  1378. " --- kernel matrix of tree pattern kernel of size 185 built in 37.01269268989563 seconds ---\n",
  1379. "[[4.00130000e+04 1.40000000e+01 4.00000000e+00 ... 2.00000000e+01\n",
  1380. " 2.00000000e+01 2.00000000e+01]\n",
  1381. " [1.40000000e+01 8.00200000e+04 4.00000000e+00 ... 2.00000000e+01\n",
  1382. " 2.00000000e+01 2.00000000e+01]\n",
  1383. " [4.00000000e+00 4.00000000e+00 4.00130000e+04 ... 4.00290000e+04\n",
  1384. " 4.00290000e+04 4.00290000e+04]\n",
  1385. " ...\n",
  1386. " [2.00000000e+01 2.00000000e+01 4.00290000e+04 ... 7.20148036e+09\n",
  1387. " 7.20148036e+09 1.48036500e+06]\n",
  1388. " [2.00000000e+01 2.00000000e+01 4.00290000e+04 ... 7.20148036e+09\n",
  1389. " 7.20148036e+09 1.48036500e+06]\n",
  1390. " [2.00000000e+01 2.00000000e+01 4.00290000e+04 ... 1.48036500e+06\n",
  1391. " 1.48036500e+06 2.02036500e+06]]\n",
  1392. "\n",
  1393. " Starting calculate accuracy/rmse...\n",
  1394. "calculate performance: 11%|█▏ | 114/1000 [00:00<00:02, 303.84it/s]"
  1395. ]
  1396. },
  1397. {
  1398. "name": "stderr",
  1399. "output_type": "stream",
  1400. "text": [
  1401. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1402. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1403. "Reciprocal condition number/precision: 1.6978549111114387e-18 / 1.1102230246251565e-16\n",
  1404. " RuntimeWarning)\n",
  1405. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1406. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1407. "Reciprocal condition number/precision: 1.1828172674052679e-17 / 1.1102230246251565e-16\n",
  1408. " RuntimeWarning)\n",
  1409. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1410. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1411. "Reciprocal condition number/precision: 1.547017114313022e-17 / 1.1102230246251565e-16\n",
  1412. " RuntimeWarning)\n",
  1413. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1414. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1415. "Reciprocal condition number/precision: 2.990786470945978e-17 / 1.1102230246251565e-16\n",
  1416. " RuntimeWarning)\n",
  1417. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1418. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1419. "Reciprocal condition number/precision: 4.8300974250606965e-17 / 1.1102230246251565e-16\n",
  1420. " RuntimeWarning)\n",
  1421. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1422. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1423. "Reciprocal condition number/precision: 7.727582936838558e-17 / 1.1102230246251565e-16\n",
  1424. " RuntimeWarning)\n"
  1425. ]
  1426. },
  1427. {
  1428. "name": "stdout",
  1429. "output_type": "stream",
  1430. "text": [
  1431. "calculate performance: 21%|██ | 208/1000 [00:00<00:02, 342.60it/s]"
  1432. ]
  1433. },
  1434. {
  1435. "name": "stderr",
  1436. "output_type": "stream",
  1437. "text": [
  1438. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1439. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1440. "Reciprocal condition number/precision: 5.569354559683504e-18 / 1.1102230246251565e-16\n",
  1441. " RuntimeWarning)\n",
  1442. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1443. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1444. "Reciprocal condition number/precision: 8.885865920757663e-18 / 1.1102230246251565e-16\n",
  1445. " RuntimeWarning)\n",
  1446. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1447. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1448. "Reciprocal condition number/precision: 8.006883677471783e-18 / 1.1102230246251565e-16\n",
  1449. " RuntimeWarning)\n",
  1450. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1451. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1452. "Reciprocal condition number/precision: 2.2491482969368813e-17 / 1.1102230246251565e-16\n",
  1453. " RuntimeWarning)\n",
  1454. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1455. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1456. "Reciprocal condition number/precision: 3.596699463334369e-17 / 1.1102230246251565e-16\n",
  1457. " RuntimeWarning)\n",
  1458. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1459. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1460. "Reciprocal condition number/precision: 5.74024827114128e-17 / 1.1102230246251565e-16\n",
  1461. " RuntimeWarning)\n",
  1462. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1463. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1464. "Reciprocal condition number/precision: 1.0002891123411383e-16 / 1.1102230246251565e-16\n",
  1465. " RuntimeWarning)\n"
  1466. ]
  1467. },
  1468. {
  1469. "name": "stdout",
  1470. "output_type": "stream",
  1471. "text": [
  1472. "calculate performance: 31%|███ | 311/1000 [00:00<00:01, 371.07it/s]"
  1473. ]
  1474. },
  1475. {
  1476. "name": "stderr",
  1477. "output_type": "stream",
  1478. "text": [
  1479. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1480. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1481. "Reciprocal condition number/precision: 1.478112292477647e-17 / 1.1102230246251565e-16\n",
  1482. " RuntimeWarning)\n",
  1483. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1484. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1485. "Reciprocal condition number/precision: 2.3626069490970097e-17 / 1.1102230246251565e-16\n",
  1486. " RuntimeWarning)\n",
  1487. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1488. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1489. "Reciprocal condition number/precision: 3.751107853461428e-17 / 1.1102230246251565e-16\n",
  1490. " RuntimeWarning)\n",
  1491. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1492. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1493. "Reciprocal condition number/precision: 6.007160521891646e-17 / 1.1102230246251565e-16\n",
  1494. " RuntimeWarning)\n",
  1495. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1496. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1497. "Reciprocal condition number/precision: 9.592912372477283e-17 / 1.1102230246251565e-16\n",
  1498. " RuntimeWarning)\n"
  1499. ]
  1500. },
  1501. {
  1502. "name": "stdout",
  1503. "output_type": "stream",
  1504. "text": [
  1505. "calculate performance: 41%|████▏ | 414/1000 [00:01<00:01, 394.40it/s]"
  1506. ]
  1507. },
  1508. {
  1509. "name": "stderr",
  1510. "output_type": "stream",
  1511. "text": [
  1512. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1513. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1514. "Reciprocal condition number/precision: 7.286966904954778e-19 / 1.1102230246251565e-16\n",
  1515. " RuntimeWarning)\n",
  1516. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1517. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1518. "Reciprocal condition number/precision: 7.330065717080935e-18 / 1.1102230246251565e-16\n",
  1519. " RuntimeWarning)\n",
  1520. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1521. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1522. "Reciprocal condition number/precision: 2.0639972759819077e-17 / 1.1102230246251565e-16\n",
  1523. " RuntimeWarning)\n",
  1524. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1525. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1526. "Reciprocal condition number/precision: 3.3250852692883386e-17 / 1.1102230246251565e-16\n",
  1527. " RuntimeWarning)\n",
  1528. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1529. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1530. "Reciprocal condition number/precision: 5.32507703774876e-17 / 1.1102230246251565e-16\n",
  1531. " RuntimeWarning)\n",
  1532. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1533. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1534. "Reciprocal condition number/precision: 8.514317701906229e-17 / 1.1102230246251565e-16\n",
  1535. " RuntimeWarning)\n"
  1536. ]
  1537. },
  1538. {
  1539. "name": "stdout",
  1540. "output_type": "stream",
  1541. "text": [
  1542. "calculate performance: 51%|█████▏ | 514/1000 [00:01<00:01, 411.17it/s]"
  1543. ]
  1544. },
  1545. {
  1546. "name": "stderr",
  1547. "output_type": "stream",
  1548. "text": [
  1549. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1550. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1551. "Reciprocal condition number/precision: 1.5186106207732215e-17 / 1.1102230246251565e-16\n",
  1552. " RuntimeWarning)\n",
  1553. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1554. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1555. "Reciprocal condition number/precision: 2.2309907116861648e-17 / 1.1102230246251565e-16\n",
  1556. " RuntimeWarning)\n",
  1557. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1558. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1559. "Reciprocal condition number/precision: 3.582391203608073e-17 / 1.1102230246251565e-16\n",
  1560. " RuntimeWarning)\n",
  1561. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1562. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1563. "Reciprocal condition number/precision: 6.638503426307468e-17 / 1.1102230246251565e-16\n",
  1564. " RuntimeWarning)\n",
  1565. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1566. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1567. "Reciprocal condition number/precision: 1.0580872068659216e-16 / 1.1102230246251565e-16\n",
  1568. " RuntimeWarning)\n"
  1569. ]
  1570. },
  1571. {
  1572. "name": "stdout",
  1573. "output_type": "stream",
  1574. "text": [
  1575. "calculate performance: 62%|██████▏ | 615/1000 [00:01<00:00, 424.96it/s]"
  1576. ]
  1577. },
  1578. {
  1579. "name": "stderr",
  1580. "output_type": "stream",
  1581. "text": [
  1582. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1583. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1584. "Reciprocal condition number/precision: 8.633316922861427e-19 / 1.1102230246251565e-16\n",
  1585. " RuntimeWarning)\n",
  1586. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1587. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1588. "Reciprocal condition number/precision: 9.253166879599146e-18 / 1.1102230246251565e-16\n",
  1589. " RuntimeWarning)\n",
  1590. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1591. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1592. "Reciprocal condition number/precision: 1.4688155478710103e-17 / 1.1102230246251565e-16\n",
  1593. " RuntimeWarning)\n",
  1594. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1595. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1596. "Reciprocal condition number/precision: 2.3252803222906435e-17 / 1.1102230246251565e-16\n",
  1597. " RuntimeWarning)\n",
  1598. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1599. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1600. "Reciprocal condition number/precision: 3.713726552669558e-17 / 1.1102230246251565e-16\n",
  1601. " RuntimeWarning)\n",
  1602. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1603. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1604. "Reciprocal condition number/precision: 5.934042177466841e-17 / 1.1102230246251565e-16\n",
  1605. " RuntimeWarning)\n",
  1606. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1607. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1608. "Reciprocal condition number/precision: 9.468592067289146e-17 / 1.1102230246251565e-16\n",
  1609. " RuntimeWarning)\n"
  1610. ]
  1611. },
  1612. {
  1613. "name": "stdout",
  1614. "output_type": "stream",
  1615. "text": [
  1616. "calculate performance: 72%|███████▏ | 716/1000 [00:01<00:00, 433.84it/s]"
  1617. ]
  1618. },
  1619. {
  1620. "name": "stderr",
  1621. "output_type": "stream",
  1622. "text": [
  1623. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1624. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1625. "Reciprocal condition number/precision: 3.66227030386163e-18 / 1.1102230246251565e-16\n",
  1626. " RuntimeWarning)\n",
  1627. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1628. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1629. "Reciprocal condition number/precision: 2.5342528466878185e-18 / 1.1102230246251565e-16\n",
  1630. " RuntimeWarning)\n",
  1631. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1632. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1633. "Reciprocal condition number/precision: 1.620745355332433e-17 / 1.1102230246251565e-16\n",
  1634. " RuntimeWarning)\n",
  1635. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1636. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1637. "Reciprocal condition number/precision: 2.5797394734563764e-17 / 1.1102230246251565e-16\n",
  1638. " RuntimeWarning)\n",
  1639. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1640. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1641. "Reciprocal condition number/precision: 4.109079490079661e-17 / 1.1102230246251565e-16\n",
  1642. " RuntimeWarning)\n",
  1643. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1644. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1645. "Reciprocal condition number/precision: 6.548426603146641e-17 / 1.1102230246251565e-16\n",
  1646. " RuntimeWarning)\n",
  1647. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1648. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1649. "Reciprocal condition number/precision: 1.0484899604694826e-16 / 1.1102230246251565e-16\n",
  1650. " RuntimeWarning)\n"
  1651. ]
  1652. },
  1653. {
  1654. "name": "stdout",
  1655. "output_type": "stream",
  1656. "text": [
  1657. "calculate performance: 82%|████████▏ | 816/1000 [00:01<00:00, 439.46it/s]"
  1658. ]
  1659. },
  1660. {
  1661. "name": "stderr",
  1662. "output_type": "stream",
  1663. "text": [
  1664. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1665. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1666. "Reciprocal condition number/precision: 7.080827240476694e-20 / 1.1102230246251565e-16\n",
  1667. " RuntimeWarning)\n",
  1668. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1669. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1670. "Reciprocal condition number/precision: 6.8279322282295696e-18 / 1.1102230246251565e-16\n",
  1671. " RuntimeWarning)\n",
  1672. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1673. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1674. "Reciprocal condition number/precision: 2.0410721959495632e-17 / 1.1102230246251565e-16\n",
  1675. " RuntimeWarning)\n",
  1676. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1677. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1678. "Reciprocal condition number/precision: 3.343375151645726e-17 / 1.1102230246251565e-16\n",
  1679. " RuntimeWarning)\n",
  1680. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1681. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1682. "Reciprocal condition number/precision: 5.351177509861134e-17 / 1.1102230246251565e-16\n",
  1683. " RuntimeWarning)\n",
  1684. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1685. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1686. "Reciprocal condition number/precision: 8.370583478449445e-17 / 1.1102230246251565e-16\n",
  1687. " RuntimeWarning)\n"
  1688. ]
  1689. },
  1690. {
  1691. "name": "stdout",
  1692. "output_type": "stream",
  1693. "text": [
  1694. "calculate performance: 92%|█████████▏| 916/1000 [00:02<00:00, 437.07it/s]"
  1695. ]
  1696. },
  1697. {
  1698. "name": "stderr",
  1699. "output_type": "stream",
  1700. "text": [
  1701. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1702. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1703. "Reciprocal condition number/precision: 1.3677978521118296e-17 / 1.1102230246251565e-16\n",
  1704. " RuntimeWarning)\n",
  1705. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1706. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1707. "Reciprocal condition number/precision: 1.0227997187914302e-17 / 1.1102230246251565e-16\n",
  1708. " RuntimeWarning)\n",
  1709. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1710. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1711. "Reciprocal condition number/precision: 3.557088603475233e-17 / 1.1102230246251565e-16\n",
  1712. " RuntimeWarning)\n",
  1713. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1714. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1715. "Reciprocal condition number/precision: 5.657645350184021e-17 / 1.1102230246251565e-16\n",
  1716. " RuntimeWarning)\n",
  1717. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1718. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1719. "Reciprocal condition number/precision: 8.990628121216557e-17 / 1.1102230246251565e-16\n",
  1720. " RuntimeWarning)\n"
  1721. ]
  1722. },
  1723. {
  1724. "name": "stdout",
  1725. "output_type": "stream",
  1726. "text": [
  1727. "calculate performance: 96%|█████████▌| 962/1000 [00:02<00:00, 393.51it/s]\n",
  1728. " Mean performance on train set: 6.934306\n",
  1729. "With standard deviation: 1.384412\n",
  1730. "\n",
  1731. " Mean performance on test set: 7.081832\n",
  1732. "With standard deviation: 2.624800\n",
  1733. "calculate performance: 100%|██████████| 1000/1000 [00:02<00:00, 420.16it/s]"
  1734. ]
  1735. },
  1736. {
  1737. "name": "stderr",
  1738. "output_type": "stream",
  1739. "text": [
  1740. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1741. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1742. "Reciprocal condition number/precision: 1.2964047050969517e-17 / 1.1102230246251565e-16\n",
  1743. " RuntimeWarning)\n",
  1744. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1745. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1746. "Reciprocal condition number/precision: 2.089708488833387e-17 / 1.1102230246251565e-16\n",
  1747. " RuntimeWarning)\n",
  1748. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1749. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1750. "Reciprocal condition number/precision: 3.3234351109582e-17 / 1.1102230246251565e-16\n",
  1751. " RuntimeWarning)\n",
  1752. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1753. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1754. "Reciprocal condition number/precision: 5.293818265362604e-17 / 1.1102230246251565e-16\n",
  1755. " RuntimeWarning)\n",
  1756. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1757. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1758. "Reciprocal condition number/precision: 8.44555950404844e-17 / 1.1102230246251565e-16\n",
  1759. " RuntimeWarning)\n"
  1760. ]
  1761. },
  1762. {
  1763. "name": "stdout",
  1764. "output_type": "stream",
  1765. "text": [
  1766. "\n",
  1767. "\n",
  1768. "\n",
  1769. " #--- calculating kernel matrix when lmda = 100000.0 ---#\n",
  1770. "\n",
  1771. " Loading dataset from file...\n",
  1772. "\n",
  1773. " Calculating kernel matrix, this could take a while...\n",
  1774. "\n",
  1775. " --- kernel matrix of tree pattern kernel of size 185 built in 35.835275411605835 seconds ---\n",
  1776. "[[4.0001300e+05 1.4000000e+01 4.0000000e+00 ... 2.0000000e+01\n",
  1777. " 2.0000000e+01 2.0000000e+01]\n",
  1778. " [1.4000000e+01 8.0002000e+05 4.0000000e+00 ... 2.0000000e+01\n",
  1779. " 2.0000000e+01 2.0000000e+01]\n",
  1780. " [4.0000000e+00 4.0000000e+00 4.0001300e+05 ... 4.0002900e+05\n",
  1781. " 4.0002900e+05 4.0002900e+05]\n",
  1782. " ...\n",
  1783. " [2.0000000e+01 2.0000000e+01 4.0002900e+05 ... 7.2001480e+11\n",
  1784. " 7.2001480e+11 1.4800365e+07]\n",
  1785. " [2.0000000e+01 2.0000000e+01 4.0002900e+05 ... 7.2001480e+11\n",
  1786. " 7.2001480e+11 1.4800365e+07]\n",
  1787. " [2.0000000e+01 2.0000000e+01 4.0002900e+05 ... 1.4800365e+07\n",
  1788. " 1.4800365e+07 2.0200365e+07]]\n",
  1789. "\n",
  1790. " Starting calculate accuracy/rmse...\n",
  1791. "calculate performance: 13%|█▎ | 126/1000 [00:00<00:03, 261.95it/s]"
  1792. ]
  1793. },
  1794. {
  1795. "name": "stderr",
  1796. "output_type": "stream",
  1797. "text": [
  1798. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1799. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1800. "Reciprocal condition number/precision: 3.0191112815027622e-18 / 1.1102230246251565e-16\n",
  1801. " RuntimeWarning)\n",
  1802. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1803. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1804. "Reciprocal condition number/precision: 3.232307074954237e-17 / 1.1102230246251565e-16\n",
  1805. " RuntimeWarning)\n",
  1806. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1807. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1808. "Reciprocal condition number/precision: 6.097885039345644e-17 / 1.1102230246251565e-16\n",
  1809. " RuntimeWarning)\n",
  1810. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1811. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1812. "Reciprocal condition number/precision: 9.727869526025791e-17 / 1.1102230246251565e-16\n",
  1813. " RuntimeWarning)\n"
  1814. ]
  1815. },
  1816. {
  1817. "name": "stdout",
  1818. "output_type": "stream",
  1819. "text": [
  1820. "calculate performance: 21%|██ | 208/1000 [00:00<00:03, 262.44it/s]"
  1821. ]
  1822. },
  1823. {
  1824. "name": "stderr",
  1825. "output_type": "stream",
  1826. "text": [
  1827. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1828. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1829. "Reciprocal condition number/precision: 2.2411064955279154e-17 / 1.1102230246251565e-16\n",
  1830. " RuntimeWarning)\n",
  1831. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1832. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1833. "Reciprocal condition number/precision: 6.149899322677468e-17 / 1.1102230246251565e-16\n",
  1834. " RuntimeWarning)\n",
  1835. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1836. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1837. "Reciprocal condition number/precision: 9.642478117522784e-17 / 1.1102230246251565e-16\n",
  1838. " RuntimeWarning)\n"
  1839. ]
  1840. },
  1841. {
  1842. "name": "stdout",
  1843. "output_type": "stream",
  1844. "text": [
  1845. "calculate performance: 30%|███ | 305/1000 [00:01<00:02, 265.15it/s]"
  1846. ]
  1847. },
  1848. {
  1849. "name": "stderr",
  1850. "output_type": "stream",
  1851. "text": [
  1852. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1853. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1854. "Reciprocal condition number/precision: 2.785067039039337e-17 / 1.1102230246251565e-16\n",
  1855. " RuntimeWarning)\n",
  1856. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1857. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1858. "Reciprocal condition number/precision: 6.225934530879337e-17 / 1.1102230246251565e-16\n",
  1859. " RuntimeWarning)\n",
  1860. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1861. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1862. "Reciprocal condition number/precision: 9.562790184640486e-17 / 1.1102230246251565e-16\n",
  1863. " RuntimeWarning)\n"
  1864. ]
  1865. },
  1866. {
  1867. "name": "stdout",
  1868. "output_type": "stream",
  1869. "text": [
  1870. "calculate performance: 41%|████▏ | 414/1000 [00:01<00:01, 297.05it/s]"
  1871. ]
  1872. },
  1873. {
  1874. "name": "stderr",
  1875. "output_type": "stream",
  1876. "text": [
  1877. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1878. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1879. "Reciprocal condition number/precision: 2.135758789917749e-17 / 1.1102230246251565e-16\n",
  1880. " RuntimeWarning)\n",
  1881. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1882. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1883. "Reciprocal condition number/precision: 6.564182826681079e-17 / 1.1102230246251565e-16\n",
  1884. " RuntimeWarning)\n",
  1885. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1886. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1887. "Reciprocal condition number/precision: 8.542436590136228e-17 / 1.1102230246251565e-16\n",
  1888. " RuntimeWarning)\n"
  1889. ]
  1890. },
  1891. {
  1892. "name": "stdout",
  1893. "output_type": "stream",
  1894. "text": [
  1895. "calculate performance: 50%|█████ | 500/1000 [00:01<00:01, 319.27it/s]"
  1896. ]
  1897. },
  1898. {
  1899. "name": "stderr",
  1900. "output_type": "stream",
  1901. "text": [
  1902. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1903. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1904. "Reciprocal condition number/precision: 9.195315905739342e-18 / 1.1102230246251565e-16\n",
  1905. " RuntimeWarning)\n",
  1906. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1907. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1908. "Reciprocal condition number/precision: 3.379873880613873e-17 / 1.1102230246251565e-16\n",
  1909. " RuntimeWarning)\n",
  1910. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1911. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1912. "Reciprocal condition number/precision: 7.630975349505465e-17 / 1.1102230246251565e-16\n",
  1913. " RuntimeWarning)\n",
  1914. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1915. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1916. "Reciprocal condition number/precision: 9.518071272961898e-17 / 1.1102230246251565e-16\n",
  1917. " RuntimeWarning)\n"
  1918. ]
  1919. },
  1920. {
  1921. "name": "stdout",
  1922. "output_type": "stream",
  1923. "text": [
  1924. "calculate performance: 61%|██████▏ | 613/1000 [00:02<00:01, 303.76it/s]"
  1925. ]
  1926. },
  1927. {
  1928. "name": "stderr",
  1929. "output_type": "stream",
  1930. "text": [
  1931. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1932. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1933. "Reciprocal condition number/precision: 2.9460047081015216e-17 / 1.1102230246251565e-16\n",
  1934. " RuntimeWarning)\n",
  1935. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1936. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1937. "Reciprocal condition number/precision: 5.839254463570563e-17 / 1.1102230246251565e-16\n",
  1938. " RuntimeWarning)\n",
  1939. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1940. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1941. "Reciprocal condition number/precision: 9.318583704180543e-17 / 1.1102230246251565e-16\n",
  1942. " RuntimeWarning)\n"
  1943. ]
  1944. },
  1945. {
  1946. "name": "stdout",
  1947. "output_type": "stream",
  1948. "text": [
  1949. "calculate performance: 73%|███████▎ | 728/1000 [00:02<00:00, 300.34it/s]"
  1950. ]
  1951. },
  1952. {
  1953. "name": "stderr",
  1954. "output_type": "stream",
  1955. "text": [
  1956. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1957. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1958. "Reciprocal condition number/precision: 5.3984244112232524e-18 / 1.1102230246251565e-16\n",
  1959. " RuntimeWarning)\n",
  1960. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1961. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1962. "Reciprocal condition number/precision: 3.3291156014339405e-17 / 1.1102230246251565e-16\n",
  1963. " RuntimeWarning)\n",
  1964. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1965. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1966. "Reciprocal condition number/precision: 6.707621088224988e-17 / 1.1102230246251565e-16\n",
  1967. " RuntimeWarning)\n",
  1968. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1969. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1970. "Reciprocal condition number/precision: 1.0690013288979288e-16 / 1.1102230246251565e-16\n",
  1971. " RuntimeWarning)\n"
  1972. ]
  1973. },
  1974. {
  1975. "name": "stdout",
  1976. "output_type": "stream",
  1977. "text": [
  1978. "calculate performance: 81%|████████▏ | 813/1000 [00:02<00:00, 321.97it/s]"
  1979. ]
  1980. },
  1981. {
  1982. "name": "stderr",
  1983. "output_type": "stream",
  1984. "text": [
  1985. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1986. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1987. "Reciprocal condition number/precision: 2.315773170165585e-17 / 1.1102230246251565e-16\n",
  1988. " RuntimeWarning)\n",
  1989. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1990. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1991. "Reciprocal condition number/precision: 6.138544398203078e-17 / 1.1102230246251565e-16\n",
  1992. " RuntimeWarning)\n",
  1993. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  1994. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  1995. "Reciprocal condition number/precision: 9.386508127676171e-17 / 1.1102230246251565e-16\n",
  1996. " RuntimeWarning)\n"
  1997. ]
  1998. },
  1999. {
  2000. "name": "stdout",
  2001. "output_type": "stream",
  2002. "text": [
  2003. "calculate performance: 89%|████████▉ | 891/1000 [00:02<00:00, 317.18it/s]"
  2004. ]
  2005. },
  2006. {
  2007. "name": "stderr",
  2008. "output_type": "stream",
  2009. "text": [
  2010. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2011. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2012. "Reciprocal condition number/precision: 2.6842499515474312e-17 / 1.1102230246251565e-16\n",
  2013. " RuntimeWarning)\n",
  2014. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2015. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2016. "Reciprocal condition number/precision: 6.528434456947986e-17 / 1.1102230246251565e-16\n",
  2017. " RuntimeWarning)\n",
  2018. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2019. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2020. "Reciprocal condition number/precision: 8.856433851414765e-17 / 1.1102230246251565e-16\n",
  2021. " RuntimeWarning)\n"
  2022. ]
  2023. },
  2024. {
  2025. "name": "stdout",
  2026. "output_type": "stream",
  2027. "text": [
  2028. "calculate performance: 96%|█████████▌| 957/1000 [00:03<00:00, 259.36it/s]\n",
  2029. " Mean performance on train set: 9.394995\n",
  2030. "With standard deviation: 1.047066\n",
  2031. "\n",
  2032. " Mean performance on test set: 8.237631\n",
  2033. "With standard deviation: 3.665300\n",
  2034. "calculate performance: 100%|██████████| 1000/1000 [00:03<00:00, 299.25it/s]\n",
  2035. "\n",
  2036. "\n",
  2037. " #--- calculating kernel matrix when lmda = 1000000.0 ---#\n",
  2038. "\n",
  2039. " Loading dataset from file...\n",
  2040. "\n",
  2041. " Calculating kernel matrix, this could take a while...\n"
  2042. ]
  2043. },
  2044. {
  2045. "name": "stderr",
  2046. "output_type": "stream",
  2047. "text": [
  2048. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2049. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2050. "Reciprocal condition number/precision: 2.056791553686018e-17 / 1.1102230246251565e-16\n",
  2051. " RuntimeWarning)\n",
  2052. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2053. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2054. "Reciprocal condition number/precision: 5.644703618966645e-17 / 1.1102230246251565e-16\n",
  2055. " RuntimeWarning)\n",
  2056. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2057. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2058. "Reciprocal condition number/precision: 9.15242050721053e-17 / 1.1102230246251565e-16\n",
  2059. " RuntimeWarning)\n"
  2060. ]
  2061. },
  2062. {
  2063. "name": "stdout",
  2064. "output_type": "stream",
  2065. "text": [
  2066. "\n",
  2067. " --- kernel matrix of tree pattern kernel of size 185 built in 37.77732253074646 seconds ---\n",
  2068. "[[4.00001300e+06 1.40000000e+01 4.00000000e+00 ... 2.00000000e+01\n",
  2069. " 2.00000000e+01 2.00000000e+01]\n",
  2070. " [1.40000000e+01 8.00002000e+06 4.00000000e+00 ... 2.00000000e+01\n",
  2071. " 2.00000000e+01 2.00000000e+01]\n",
  2072. " [4.00000000e+00 4.00000000e+00 4.00001300e+06 ... 4.00002900e+06\n",
  2073. " 4.00002900e+06 4.00002900e+06]\n",
  2074. " ...\n",
  2075. " [2.00000000e+01 2.00000000e+01 4.00002900e+06 ... 7.20001480e+13\n",
  2076. " 7.20001480e+13 1.48000365e+08]\n",
  2077. " [2.00000000e+01 2.00000000e+01 4.00002900e+06 ... 7.20001480e+13\n",
  2078. " 7.20001480e+13 1.48000365e+08]\n",
  2079. " [2.00000000e+01 2.00000000e+01 4.00002900e+06 ... 1.48000365e+08\n",
  2080. " 1.48000365e+08 2.02000365e+08]]\n",
  2081. "\n",
  2082. " Starting calculate accuracy/rmse...\n",
  2083. "calculate performance: 14%|█▎ | 135/1000 [00:00<00:03, 253.06it/s]"
  2084. ]
  2085. },
  2086. {
  2087. "name": "stderr",
  2088. "output_type": "stream",
  2089. "text": [
  2090. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2091. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2092. "Reciprocal condition number/precision: 5.741195162637844e-18 / 1.1102230246251565e-16\n",
  2093. " RuntimeWarning)\n",
  2094. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2095. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2096. "Reciprocal condition number/precision: 1.5965964498458038e-17 / 1.1102230246251565e-16\n",
  2097. " RuntimeWarning)\n",
  2098. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2099. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2100. "Reciprocal condition number/precision: 2.983361443347492e-17 / 1.1102230246251565e-16\n",
  2101. " RuntimeWarning)\n",
  2102. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2103. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2104. "Reciprocal condition number/precision: 4.7922291165206923e-17 / 1.1102230246251565e-16\n",
  2105. " RuntimeWarning)\n",
  2106. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2107. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2108. "Reciprocal condition number/precision: 7.685526054240851e-17 / 1.1102230246251565e-16\n",
  2109. " RuntimeWarning)\n"
  2110. ]
  2111. },
  2112. {
  2113. "name": "stdout",
  2114. "output_type": "stream",
  2115. "text": [
  2116. "calculate performance: 23%|██▎ | 230/1000 [00:00<00:02, 265.75it/s]"
  2117. ]
  2118. },
  2119. {
  2120. "name": "stderr",
  2121. "output_type": "stream",
  2122. "text": [
  2123. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2124. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2125. "Reciprocal condition number/precision: 1.6848871984797616e-18 / 1.1102230246251565e-16\n",
  2126. " RuntimeWarning)\n",
  2127. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2128. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2129. "Reciprocal condition number/precision: 3.8811603375005575e-18 / 1.1102230246251565e-16\n",
  2130. " RuntimeWarning)\n",
  2131. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2132. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2133. "Reciprocal condition number/precision: 1.7514073450053307e-17 / 1.1102230246251565e-16\n",
  2134. " RuntimeWarning)\n",
  2135. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2136. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2137. "Reciprocal condition number/precision: 2.5976314128410034e-17 / 1.1102230246251565e-16\n",
  2138. " RuntimeWarning)\n",
  2139. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2140. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2141. "Reciprocal condition number/precision: 4.790988115471154e-17 / 1.1102230246251565e-16\n",
  2142. " RuntimeWarning)\n",
  2143. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2144. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2145. "Reciprocal condition number/precision: 6.477178586927344e-17 / 1.1102230246251565e-16\n",
  2146. " RuntimeWarning)\n",
  2147. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2148. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2149. "Reciprocal condition number/precision: 1.035215871851048e-16 / 1.1102230246251565e-16\n",
  2150. " RuntimeWarning)\n"
  2151. ]
  2152. },
  2153. {
  2154. "name": "stdout",
  2155. "output_type": "stream",
  2156. "text": [
  2157. "calculate performance: 33%|███▎ | 332/1000 [00:01<00:02, 277.35it/s]"
  2158. ]
  2159. },
  2160. {
  2161. "name": "stderr",
  2162. "output_type": "stream",
  2163. "text": [
  2164. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2165. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2166. "Reciprocal condition number/precision: 1.287317576627726e-18 / 1.1102230246251565e-16\n",
  2167. " RuntimeWarning)\n",
  2168. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2169. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2170. "Reciprocal condition number/precision: 9.886325173924881e-18 / 1.1102230246251565e-16\n",
  2171. " RuntimeWarning)\n",
  2172. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2173. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2174. "Reciprocal condition number/precision: 2.8372812242318245e-17 / 1.1102230246251565e-16\n",
  2175. " RuntimeWarning)\n",
  2176. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2177. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2178. "Reciprocal condition number/precision: 4.523017625167697e-17 / 1.1102230246251565e-16\n",
  2179. " RuntimeWarning)\n",
  2180. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2181. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2182. "Reciprocal condition number/precision: 7.309735186090854e-17 / 1.1102230246251565e-16\n",
  2183. " RuntimeWarning)\n"
  2184. ]
  2185. },
  2186. {
  2187. "name": "stdout",
  2188. "output_type": "stream",
  2189. "text": [
  2190. "calculate performance: 43%|████▎ | 431/1000 [00:01<00:02, 258.66it/s]"
  2191. ]
  2192. },
  2193. {
  2194. "name": "stderr",
  2195. "output_type": "stream",
  2196. "text": [
  2197. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2198. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2199. "Reciprocal condition number/precision: 1.2092887442597021e-18 / 1.1102230246251565e-16\n",
  2200. " RuntimeWarning)\n",
  2201. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2202. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2203. "Reciprocal condition number/precision: 1.444285941342485e-17 / 1.1102230246251565e-16\n",
  2204. " RuntimeWarning)\n",
  2205. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2206. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2207. "Reciprocal condition number/precision: 1.6650957319224102e-17 / 1.1102230246251565e-16\n",
  2208. " RuntimeWarning)\n",
  2209. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2210. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2211. "Reciprocal condition number/precision: 3.778343353100153e-17 / 1.1102230246251565e-16\n",
  2212. " RuntimeWarning)\n",
  2213. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2214. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2215. "Reciprocal condition number/precision: 6.067496740668901e-17 / 1.1102230246251565e-16\n",
  2216. " RuntimeWarning)\n",
  2217. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2218. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2219. "Reciprocal condition number/precision: 9.832366528737191e-17 / 1.1102230246251565e-16\n",
  2220. " RuntimeWarning)\n"
  2221. ]
  2222. },
  2223. {
  2224. "name": "stdout",
  2225. "output_type": "stream",
  2226. "text": [
  2227. "calculate performance: 53%|█████▎ | 534/1000 [00:01<00:01, 252.20it/s]"
  2228. ]
  2229. },
  2230. {
  2231. "name": "stderr",
  2232. "output_type": "stream",
  2233. "text": [
  2234. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2235. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2236. "Reciprocal condition number/precision: 2.2368084459111367e-19 / 1.1102230246251565e-16\n",
  2237. " RuntimeWarning)\n",
  2238. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2239. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2240. "Reciprocal condition number/precision: 6.625050966790768e-18 / 1.1102230246251565e-16\n",
  2241. " RuntimeWarning)\n",
  2242. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2243. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2244. "Reciprocal condition number/precision: 9.786992563738048e-18 / 1.1102230246251565e-16\n",
  2245. " RuntimeWarning)\n",
  2246. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2247. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2248. "Reciprocal condition number/precision: 2.5350081600164477e-17 / 1.1102230246251565e-16\n",
  2249. " RuntimeWarning)\n",
  2250. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2251. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2252. "Reciprocal condition number/precision: 4.2823286559994256e-17 / 1.1102230246251565e-16\n",
  2253. " RuntimeWarning)\n",
  2254. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2255. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2256. "Reciprocal condition number/precision: 6.880362578796432e-17 / 1.1102230246251565e-16\n",
  2257. " RuntimeWarning)\n",
  2258. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2259. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2260. "Reciprocal condition number/precision: 1.1100444346816681e-16 / 1.1102230246251565e-16\n",
  2261. " RuntimeWarning)\n"
  2262. ]
  2263. },
  2264. {
  2265. "name": "stdout",
  2266. "output_type": "stream",
  2267. "text": [
  2268. "calculate performance: 64%|██████▎ | 637/1000 [00:02<00:01, 260.77it/s]"
  2269. ]
  2270. },
  2271. {
  2272. "name": "stderr",
  2273. "output_type": "stream",
  2274. "text": [
  2275. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2276. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2277. "Reciprocal condition number/precision: 4.1335408080135885e-20 / 1.1102230246251565e-16\n",
  2278. " RuntimeWarning)\n",
  2279. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2280. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2281. "Reciprocal condition number/precision: 1.4688002952482946e-17 / 1.1102230246251565e-16\n",
  2282. " RuntimeWarning)\n",
  2283. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2284. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2285. "Reciprocal condition number/precision: 2.6678722631357644e-17 / 1.1102230246251565e-16\n",
  2286. " RuntimeWarning)\n",
  2287. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2288. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2289. "Reciprocal condition number/precision: 4.288251804550535e-17 / 1.1102230246251565e-16\n",
  2290. " RuntimeWarning)\n",
  2291. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2292. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2293. "Reciprocal condition number/precision: 6.895017980474164e-17 / 1.1102230246251565e-16\n",
  2294. " RuntimeWarning)\n"
  2295. ]
  2296. },
  2297. {
  2298. "name": "stdout",
  2299. "output_type": "stream",
  2300. "text": [
  2301. "calculate performance: 74%|███████▍ | 741/1000 [00:02<00:00, 276.66it/s]"
  2302. ]
  2303. },
  2304. {
  2305. "name": "stderr",
  2306. "output_type": "stream",
  2307. "text": [
  2308. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2309. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2310. "Reciprocal condition number/precision: 4.209157188853246e-18 / 1.1102230246251565e-16\n",
  2311. " RuntimeWarning)\n",
  2312. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2313. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2314. "Reciprocal condition number/precision: 1.4519382674684447e-17 / 1.1102230246251565e-16\n",
  2315. " RuntimeWarning)\n",
  2316. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2317. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2318. "Reciprocal condition number/precision: 1.5748326244710203e-17 / 1.1102230246251565e-16\n",
  2319. " RuntimeWarning)\n",
  2320. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2321. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2322. "Reciprocal condition number/precision: 2.852436562697074e-17 / 1.1102230246251565e-16\n",
  2323. " RuntimeWarning)\n",
  2324. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2325. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2326. "Reciprocal condition number/precision: 4.536506069365062e-17 / 1.1102230246251565e-16\n",
  2327. " RuntimeWarning)\n",
  2328. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2329. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2330. "Reciprocal condition number/precision: 6.969036612017947e-17 / 1.1102230246251565e-16\n",
  2331. " RuntimeWarning)\n"
  2332. ]
  2333. },
  2334. {
  2335. "name": "stdout",
  2336. "output_type": "stream",
  2337. "text": [
  2338. "calculate performance: 81%|████████▏ | 813/1000 [00:02<00:00, 297.62it/s]"
  2339. ]
  2340. },
  2341. {
  2342. "name": "stderr",
  2343. "output_type": "stream",
  2344. "text": [
  2345. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2346. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2347. "Reciprocal condition number/precision: 3.309383987394578e-18 / 1.1102230246251565e-16\n",
  2348. " RuntimeWarning)\n",
  2349. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2350. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2351. "Reciprocal condition number/precision: 1.565067260805818e-17 / 1.1102230246251565e-16\n",
  2352. " RuntimeWarning)\n",
  2353. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2354. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2355. "Reciprocal condition number/precision: 2.516194197490843e-17 / 1.1102230246251565e-16\n",
  2356. " RuntimeWarning)\n",
  2357. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2358. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2359. "Reciprocal condition number/precision: 4.041064934861363e-17 / 1.1102230246251565e-16\n",
  2360. " RuntimeWarning)\n",
  2361. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2362. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2363. "Reciprocal condition number/precision: 6.499601220689098e-17 / 1.1102230246251565e-16\n",
  2364. " RuntimeWarning)\n",
  2365. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2366. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2367. "Reciprocal condition number/precision: 1.051151158798192e-16 / 1.1102230246251565e-16\n",
  2368. " RuntimeWarning)\n"
  2369. ]
  2370. },
  2371. {
  2372. "name": "stdout",
  2373. "output_type": "stream",
  2374. "text": [
  2375. "calculate performance: 92%|█████████▏| 915/1000 [00:03<00:00, 298.37it/s]"
  2376. ]
  2377. },
  2378. {
  2379. "name": "stderr",
  2380. "output_type": "stream",
  2381. "text": [
  2382. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2383. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2384. "Reciprocal condition number/precision: 2.7472428919435347e-18 / 1.1102230246251565e-16\n",
  2385. " RuntimeWarning)\n",
  2386. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2387. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2388. "Reciprocal condition number/precision: 6.703770718809819e-18 / 1.1102230246251565e-16\n",
  2389. " RuntimeWarning)\n",
  2390. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2391. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2392. "Reciprocal condition number/precision: 2.2818242346374262e-17 / 1.1102230246251565e-16\n",
  2393. " RuntimeWarning)\n",
  2394. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2395. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2396. "Reciprocal condition number/precision: 4.102554831016506e-17 / 1.1102230246251565e-16\n",
  2397. " RuntimeWarning)\n",
  2398. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2399. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2400. "Reciprocal condition number/precision: 6.599188283622467e-17 / 1.1102230246251565e-16\n",
  2401. " RuntimeWarning)\n",
  2402. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2403. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2404. "Reciprocal condition number/precision: 1.0647003359802031e-16 / 1.1102230246251565e-16\n",
  2405. " RuntimeWarning)\n"
  2406. ]
  2407. },
  2408. {
  2409. "name": "stdout",
  2410. "output_type": "stream",
  2411. "text": [
  2412. "calculate performance: 98%|█████████▊| 977/1000 [00:03<00:00, 278.57it/s]\n",
  2413. " Mean performance on train set: 9.635245\n",
  2414. "With standard deviation: 0.687560\n",
  2415. "\n",
  2416. " Mean performance on test set: 8.529828\n",
  2417. "With standard deviation: 3.580591\n",
  2418. "calculate performance: 100%|██████████| 1000/1000 [00:03<00:00, 284.18it/s]\n",
  2419. "\n",
  2420. "\n",
  2421. " #--- calculating kernel matrix when lmda = 10000000.0 ---#\n",
  2422. "\n",
  2423. " Loading dataset from file...\n",
  2424. "\n",
  2425. " Calculating kernel matrix, this could take a while...\n"
  2426. ]
  2427. },
  2428. {
  2429. "name": "stderr",
  2430. "output_type": "stream",
  2431. "text": [
  2432. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2433. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2434. "Reciprocal condition number/precision: 5.502409510736216e-18 / 1.1102230246251565e-16\n",
  2435. " RuntimeWarning)\n",
  2436. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2437. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2438. "Reciprocal condition number/precision: 1.0439081147173944e-17 / 1.1102230246251565e-16\n",
  2439. " RuntimeWarning)\n",
  2440. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2441. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2442. "Reciprocal condition number/precision: 2.4602149061556115e-17 / 1.1102230246251565e-16\n",
  2443. " RuntimeWarning)\n",
  2444. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2445. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2446. "Reciprocal condition number/precision: 3.9479003259500843e-17 / 1.1102230246251565e-16\n",
  2447. " RuntimeWarning)\n",
  2448. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2449. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2450. "Reciprocal condition number/precision: 6.34621741763787e-17 / 1.1102230246251565e-16\n",
  2451. " RuntimeWarning)\n",
  2452. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2453. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2454. "Reciprocal condition number/precision: 1.0245542507930726e-16 / 1.1102230246251565e-16\n",
  2455. " RuntimeWarning)\n"
  2456. ]
  2457. },
  2458. {
  2459. "name": "stdout",
  2460. "output_type": "stream",
  2461. "text": [
  2462. "\n",
  2463. " --- kernel matrix of tree pattern kernel of size 185 built in 37.46095633506775 seconds ---\n",
  2464. "[[4.00000130e+07 1.40000000e+01 4.00000000e+00 ... 2.00000000e+01\n",
  2465. " 2.00000000e+01 2.00000000e+01]\n",
  2466. " [1.40000000e+01 8.00000200e+07 4.00000000e+00 ... 2.00000000e+01\n",
  2467. " 2.00000000e+01 2.00000000e+01]\n",
  2468. " [4.00000000e+00 4.00000000e+00 4.00000130e+07 ... 4.00000290e+07\n",
  2469. " 4.00000290e+07 4.00000290e+07]\n",
  2470. " ...\n",
  2471. " [2.00000000e+01 2.00000000e+01 4.00000290e+07 ... 7.20000148e+15\n",
  2472. " 7.20000148e+15 1.48000036e+09]\n",
  2473. " [2.00000000e+01 2.00000000e+01 4.00000290e+07 ... 7.20000148e+15\n",
  2474. " 7.20000148e+15 1.48000036e+09]\n",
  2475. " [2.00000000e+01 2.00000000e+01 4.00000290e+07 ... 1.48000036e+09\n",
  2476. " 1.48000036e+09 2.02000036e+09]]\n",
  2477. "\n",
  2478. " Starting calculate accuracy/rmse...\n",
  2479. "calculate performance: 12%|█▏ | 122/1000 [00:00<00:03, 231.16it/s]"
  2480. ]
  2481. },
  2482. {
  2483. "name": "stderr",
  2484. "output_type": "stream",
  2485. "text": [
  2486. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2487. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2488. "Reciprocal condition number/precision: 4.200122265640733e-18 / 1.1102230246251565e-16\n",
  2489. " RuntimeWarning)\n",
  2490. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2491. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2492. "Reciprocal condition number/precision: 8.627297027618617e-18 / 1.1102230246251565e-16\n",
  2493. " RuntimeWarning)\n",
  2494. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2495. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2496. "Reciprocal condition number/precision: 1.893611596005168e-17 / 1.1102230246251565e-16\n",
  2497. " RuntimeWarning)\n",
  2498. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2499. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2500. "Reciprocal condition number/precision: 3.1052758523976415e-17 / 1.1102230246251565e-16\n",
  2501. " RuntimeWarning)\n",
  2502. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2503. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2504. "Reciprocal condition number/precision: 5.158312302718829e-17 / 1.1102230246251565e-16\n",
  2505. " RuntimeWarning)\n",
  2506. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2507. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2508. "Reciprocal condition number/precision: 8.675650470006637e-17 / 1.1102230246251565e-16\n",
  2509. " RuntimeWarning)\n"
  2510. ]
  2511. },
  2512. {
  2513. "name": "stdout",
  2514. "output_type": "stream",
  2515. "text": [
  2516. "calculate performance: 23%|██▎ | 227/1000 [00:00<00:03, 253.57it/s]"
  2517. ]
  2518. },
  2519. {
  2520. "name": "stderr",
  2521. "output_type": "stream",
  2522. "text": [
  2523. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2524. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2525. "Reciprocal condition number/precision: 1.2230286797750079e-18 / 1.1102230246251565e-16\n",
  2526. " RuntimeWarning)\n",
  2527. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2528. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2529. "Reciprocal condition number/precision: 6.0790289882373515e-18 / 1.1102230246251565e-16\n",
  2530. " RuntimeWarning)\n",
  2531. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2532. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2533. "Reciprocal condition number/precision: 1.6170735381557016e-17 / 1.1102230246251565e-16\n",
  2534. " RuntimeWarning)\n",
  2535. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2536. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2537. "Reciprocal condition number/precision: 2.90989130271085e-17 / 1.1102230246251565e-16\n",
  2538. " RuntimeWarning)\n",
  2539. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2540. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2541. "Reciprocal condition number/precision: 4.4735492461286675e-17 / 1.1102230246251565e-16\n",
  2542. " RuntimeWarning)\n",
  2543. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2544. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2545. "Reciprocal condition number/precision: 7.544548737558878e-17 / 1.1102230246251565e-16\n",
  2546. " RuntimeWarning)\n"
  2547. ]
  2548. },
  2549. {
  2550. "name": "stdout",
  2551. "output_type": "stream",
  2552. "text": [
  2553. "calculate performance: 34%|███▍ | 344/1000 [00:01<00:02, 274.36it/s]"
  2554. ]
  2555. },
  2556. {
  2557. "name": "stderr",
  2558. "output_type": "stream",
  2559. "text": [
  2560. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2561. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2562. "Reciprocal condition number/precision: 3.0569387542185164e-18 / 1.1102230246251565e-16\n",
  2563. " RuntimeWarning)\n",
  2564. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2565. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2566. "Reciprocal condition number/precision: 1.8929851773550792e-17 / 1.1102230246251565e-16\n",
  2567. " RuntimeWarning)\n",
  2568. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2569. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2570. "Reciprocal condition number/precision: 3.762490810329375e-17 / 1.1102230246251565e-16\n",
  2571. " RuntimeWarning)\n",
  2572. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2573. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2574. "Reciprocal condition number/precision: 5.031994076021703e-17 / 1.1102230246251565e-16\n",
  2575. " RuntimeWarning)\n",
  2576. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2577. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2578. "Reciprocal condition number/precision: 8.380795983197089e-17 / 1.1102230246251565e-16\n",
  2579. " RuntimeWarning)\n"
  2580. ]
  2581. },
  2582. {
  2583. "name": "stdout",
  2584. "output_type": "stream",
  2585. "text": [
  2586. "calculate performance: 44%|████▎ | 437/1000 [00:01<00:02, 281.37it/s]"
  2587. ]
  2588. },
  2589. {
  2590. "name": "stderr",
  2591. "output_type": "stream",
  2592. "text": [
  2593. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2594. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2595. "Reciprocal condition number/precision: 2.159845331824398e-18 / 1.1102230246251565e-16\n",
  2596. " RuntimeWarning)\n",
  2597. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2598. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2599. "Reciprocal condition number/precision: 8.592173545119868e-18 / 1.1102230246251565e-16\n",
  2600. " RuntimeWarning)\n",
  2601. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2602. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2603. "Reciprocal condition number/precision: 2.0031182975801337e-17 / 1.1102230246251565e-16\n",
  2604. " RuntimeWarning)\n",
  2605. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2606. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2607. "Reciprocal condition number/precision: 3.315102488294594e-17 / 1.1102230246251565e-16\n",
  2608. " RuntimeWarning)\n",
  2609. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2610. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2611. "Reciprocal condition number/precision: 4.427690586128571e-17 / 1.1102230246251565e-16\n",
  2612. " RuntimeWarning)\n",
  2613. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2614. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2615. "Reciprocal condition number/precision: 7.36815306216013e-17 / 1.1102230246251565e-16\n",
  2616. " RuntimeWarning)\n"
  2617. ]
  2618. },
  2619. {
  2620. "name": "stdout",
  2621. "output_type": "stream",
  2622. "text": [
  2623. "calculate performance: 52%|█████▎ | 525/1000 [00:01<00:01, 277.96it/s]"
  2624. ]
  2625. },
  2626. {
  2627. "name": "stderr",
  2628. "output_type": "stream",
  2629. "text": [
  2630. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2631. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2632. "Reciprocal condition number/precision: 6.096509347533013e-18 / 1.1102230246251565e-16\n",
  2633. " RuntimeWarning)\n",
  2634. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2635. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2636. "Reciprocal condition number/precision: 2.2037051514926243e-17 / 1.1102230246251565e-16\n",
  2637. " RuntimeWarning)\n",
  2638. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2639. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2640. "Reciprocal condition number/precision: 3.641239932076709e-17 / 1.1102230246251565e-16\n",
  2641. " RuntimeWarning)\n",
  2642. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2643. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2644. "Reciprocal condition number/precision: 4.911654384898199e-17 / 1.1102230246251565e-16\n",
  2645. " RuntimeWarning)\n",
  2646. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2647. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2648. "Reciprocal condition number/precision: 8.195245830759744e-17 / 1.1102230246251565e-16\n",
  2649. " RuntimeWarning)\n"
  2650. ]
  2651. },
  2652. {
  2653. "name": "stdout",
  2654. "output_type": "stream",
  2655. "text": [
  2656. "calculate performance: 61%|██████ | 606/1000 [00:02<00:01, 236.45it/s]"
  2657. ]
  2658. },
  2659. {
  2660. "name": "stderr",
  2661. "output_type": "stream",
  2662. "text": [
  2663. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2664. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2665. "Reciprocal condition number/precision: 3.179739003035368e-18 / 1.1102230246251565e-16\n",
  2666. " RuntimeWarning)\n",
  2667. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2668. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2669. "Reciprocal condition number/precision: 1.121167134816686e-17 / 1.1102230246251565e-16\n",
  2670. " RuntimeWarning)\n",
  2671. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2672. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2673. "Reciprocal condition number/precision: 2.201750997217992e-17 / 1.1102230246251565e-16\n",
  2674. " RuntimeWarning)\n",
  2675. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2676. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2677. "Reciprocal condition number/precision: 3.6143396276266097e-17 / 1.1102230246251565e-16\n",
  2678. " RuntimeWarning)\n",
  2679. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2680. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2681. "Reciprocal condition number/precision: 4.876412427833992e-17 / 1.1102230246251565e-16\n",
  2682. " RuntimeWarning)\n",
  2683. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2684. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2685. "Reciprocal condition number/precision: 8.158416120381036e-17 / 1.1102230246251565e-16\n",
  2686. " RuntimeWarning)\n"
  2687. ]
  2688. },
  2689. {
  2690. "name": "stdout",
  2691. "output_type": "stream",
  2692. "text": [
  2693. "calculate performance: 73%|███████▎ | 727/1000 [00:02<00:01, 211.65it/s]"
  2694. ]
  2695. },
  2696. {
  2697. "name": "stderr",
  2698. "output_type": "stream",
  2699. "text": [
  2700. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2701. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2702. "Reciprocal condition number/precision: 6.355737066205781e-20 / 1.1102230246251565e-16\n",
  2703. " RuntimeWarning)\n",
  2704. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2705. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2706. "Reciprocal condition number/precision: 6.778261189640049e-18 / 1.1102230246251565e-16\n",
  2707. " RuntimeWarning)\n",
  2708. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2709. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2710. "Reciprocal condition number/precision: 1.992328403436096e-17 / 1.1102230246251565e-16\n",
  2711. " RuntimeWarning)\n",
  2712. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2713. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2714. "Reciprocal condition number/precision: 4.166526583123927e-17 / 1.1102230246251565e-16\n",
  2715. " RuntimeWarning)\n",
  2716. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2717. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2718. "Reciprocal condition number/precision: 5.566565138343654e-17 / 1.1102230246251565e-16\n",
  2719. " RuntimeWarning)\n",
  2720. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2721. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2722. "Reciprocal condition number/precision: 9.272056103177315e-17 / 1.1102230246251565e-16\n",
  2723. " RuntimeWarning)\n"
  2724. ]
  2725. },
  2726. {
  2727. "name": "stdout",
  2728. "output_type": "stream",
  2729. "text": [
  2730. "calculate performance: 82%|████████▏ | 822/1000 [00:03<00:00, 223.94it/s]"
  2731. ]
  2732. },
  2733. {
  2734. "name": "stderr",
  2735. "output_type": "stream",
  2736. "text": [
  2737. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2738. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2739. "Reciprocal condition number/precision: 1.2435735437353417e-17 / 1.1102230246251565e-16\n",
  2740. " RuntimeWarning)\n",
  2741. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2742. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2743. "Reciprocal condition number/precision: 3.471379508084743e-17 / 1.1102230246251565e-16\n",
  2744. " RuntimeWarning)\n",
  2745. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2746. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2747. "Reciprocal condition number/precision: 4.686971341479104e-17 / 1.1102230246251565e-16\n",
  2748. " RuntimeWarning)\n",
  2749. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2750. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2751. "Reciprocal condition number/precision: 7.827108937015577e-17 / 1.1102230246251565e-16\n",
  2752. " RuntimeWarning)\n"
  2753. ]
  2754. },
  2755. {
  2756. "name": "stdout",
  2757. "output_type": "stream",
  2758. "text": [
  2759. "calculate performance: 93%|█████████▎| 931/1000 [00:03<00:00, 255.06it/s]"
  2760. ]
  2761. },
  2762. {
  2763. "name": "stderr",
  2764. "output_type": "stream",
  2765. "text": [
  2766. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2767. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2768. "Reciprocal condition number/precision: 3.2357280081107672e-18 / 1.1102230246251565e-16\n",
  2769. " RuntimeWarning)\n",
  2770. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2771. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2772. "Reciprocal condition number/precision: 1.559072238694825e-17 / 1.1102230246251565e-16\n",
  2773. " RuntimeWarning)\n",
  2774. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2775. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2776. "Reciprocal condition number/precision: 3.45488311322705e-17 / 1.1102230246251565e-16\n",
  2777. " RuntimeWarning)\n",
  2778. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2779. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2780. "Reciprocal condition number/precision: 4.6616151717441874e-17 / 1.1102230246251565e-16\n",
  2781. " RuntimeWarning)\n",
  2782. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2783. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2784. "Reciprocal condition number/precision: 7.807701664283496e-17 / 1.1102230246251565e-16\n",
  2785. " RuntimeWarning)\n"
  2786. ]
  2787. },
  2788. {
  2789. "name": "stdout",
  2790. "output_type": "stream",
  2791. "text": [
  2792. "calculate performance: 98%|█████████▊| 983/1000 [00:04<00:00, 220.81it/s]\n",
  2793. " Mean performance on train set: 11.059074\n",
  2794. "With standard deviation: 1.323635\n",
  2795. "\n",
  2796. " Mean performance on test set: 10.964175\n",
  2797. "With standard deviation: 3.358726\n",
  2798. "calculate performance: 100%|██████████| 1000/1000 [00:04<00:00, 242.35it/s]\n",
  2799. "\n",
  2800. "\n",
  2801. " #--- calculating kernel matrix when lmda = 100000000.0 ---#\n",
  2802. "\n",
  2803. " Loading dataset from file...\n",
  2804. "\n",
  2805. " Calculating kernel matrix, this could take a while...\n"
  2806. ]
  2807. },
  2808. {
  2809. "name": "stderr",
  2810. "output_type": "stream",
  2811. "text": [
  2812. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2813. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2814. "Reciprocal condition number/precision: 9.749823872976888e-19 / 1.1102230246251565e-16\n",
  2815. " RuntimeWarning)\n",
  2816. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2817. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2818. "Reciprocal condition number/precision: 5.347208969568296e-18 / 1.1102230246251565e-16\n",
  2819. " RuntimeWarning)\n",
  2820. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2821. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2822. "Reciprocal condition number/precision: 1.9981807042259307e-17 / 1.1102230246251565e-16\n",
  2823. " RuntimeWarning)\n",
  2824. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2825. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2826. "Reciprocal condition number/precision: 3.298232968104139e-17 / 1.1102230246251565e-16\n",
  2827. " RuntimeWarning)\n",
  2828. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2829. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2830. "Reciprocal condition number/precision: 4.391381083354749e-17 / 1.1102230246251565e-16\n",
  2831. " RuntimeWarning)\n",
  2832. "/home/ljia/.local/lib/python3.5/site-packages/scipy/linalg/basic.py:40: RuntimeWarning: scipy.linalg.solve\n",
  2833. "Ill-conditioned matrix detected. Result is not guaranteed to be accurate.\n",
  2834. "Reciprocal condition number/precision: 7.328796748008544e-17 / 1.1102230246251565e-16\n",
  2835. " RuntimeWarning)\n"
  2836. ]
  2837. },
  2838. {
  2839. "name": "stdout",
  2840. "output_type": "stream",
  2841. "text": [
  2842. "\n",
  2843. " --- kernel matrix of tree pattern kernel of size 185 built in 37.91001057624817 seconds ---\n",
  2844. "[[4.00000013e+08 1.40000000e+01 4.00000000e+00 ... 2.00000000e+01\n",
  2845. " 2.00000000e+01 2.00000000e+01]\n",
  2846. " [1.40000000e+01 8.00000020e+08 4.00000000e+00 ... 2.00000000e+01\n",
  2847. " 2.00000000e+01 2.00000000e+01]\n",
  2848. " [4.00000000e+00 4.00000000e+00 4.00000013e+08 ... 4.00000029e+08\n",
  2849. " 4.00000029e+08 4.00000029e+08]\n",
  2850. " ...\n",
  2851. " [2.00000000e+01 2.00000000e+01 4.00000029e+08 ... 7.20000015e+17\n",
  2852. " 7.20000015e+17 1.48000004e+10]\n",
  2853. " [2.00000000e+01 2.00000000e+01 4.00000029e+08 ... 7.20000015e+17\n",
  2854. " 7.20000015e+17 1.48000004e+10]\n",
  2855. " [2.00000000e+01 2.00000000e+01 4.00000029e+08 ... 1.48000004e+10\n",
  2856. " 1.48000004e+10 2.02000004e+10]]\n",
  2857. "\n",
  2858. " Starting calculate accuracy/rmse...\n",
  2859. "calculate performance: 99%|█████████▉| 992/1000 [00:03<00:00, 267.91it/s]\n",
  2860. " Mean performance on train set: 66.147687\n",
  2861. "With standard deviation: 11.979989\n",
  2862. "\n",
  2863. " Mean performance on test set: 63.221208\n",
  2864. "With standard deviation: 13.381090\n",
  2865. "calculate performance: 100%|██████████| 1000/1000 [00:03<00:00, 252.05it/s]\n",
  2866. "\n",
  2867. "\n",
  2868. " #--- calculating kernel matrix when lmda = 1000000000.0 ---#\n",
  2869. "\n",
  2870. " Loading dataset from file...\n",
  2871. "\n",
  2872. " Calculating kernel matrix, this could take a while...\n",
  2873. "\n",
  2874. " --- kernel matrix of tree pattern kernel of size 185 built in 38.43676400184631 seconds ---\n",
  2875. "[[4.00000001e+09 1.40000000e+01 4.00000000e+00 ... 2.00000000e+01\n",
  2876. " 2.00000000e+01 2.00000000e+01]\n",
  2877. " [1.40000000e+01 8.00000002e+09 4.00000000e+00 ... 2.00000000e+01\n",
  2878. " 2.00000000e+01 2.00000000e+01]\n",
  2879. " [4.00000000e+00 4.00000000e+00 4.00000001e+09 ... 4.00000003e+09\n",
  2880. " 4.00000003e+09 4.00000003e+09]\n",
  2881. " ...\n",
  2882. " [2.00000000e+01 2.00000000e+01 4.00000003e+09 ... 7.20000001e+19\n",
  2883. " 7.20000001e+19 1.48000000e+11]\n",
  2884. " [2.00000000e+01 2.00000000e+01 4.00000003e+09 ... 7.20000001e+19\n",
  2885. " 7.20000001e+19 1.48000000e+11]\n",
  2886. " [2.00000000e+01 2.00000000e+01 4.00000003e+09 ... 1.48000000e+11\n",
  2887. " 1.48000000e+11 2.02000000e+11]]\n",
  2888. "\n",
  2889. " Starting calculate accuracy/rmse...\n",
  2890. "calculate performance: 98%|█████████▊| 976/1000 [00:04<00:00, 268.70it/s]\n",
  2891. " Mean performance on train set: 96.664827\n",
  2892. "With standard deviation: 1.871320\n",
  2893. "\n",
  2894. " Mean performance on test set: 100.134704\n",
  2895. "With standard deviation: 13.845906\n",
  2896. "calculate performance: 100%|██████████| 1000/1000 [00:04<00:00, 236.90it/s]\n",
  2897. "\n",
  2898. "\n",
  2899. " #--- calculating kernel matrix when lmda = 10000000000.0 ---#\n",
  2900. "\n",
  2901. " Loading dataset from file...\n",
  2902. "\n",
  2903. " Calculating kernel matrix, this could take a while...\n",
  2904. "\n",
  2905. " --- kernel matrix of tree pattern kernel of size 185 built in 37.32151246070862 seconds ---\n",
  2906. "[[4.00e+10 1.40e+01 4.00e+00 ... 2.00e+01 2.00e+01 2.00e+01]\n",
  2907. " [1.40e+01 8.00e+10 4.00e+00 ... 2.00e+01 2.00e+01 2.00e+01]\n",
  2908. " [4.00e+00 4.00e+00 4.00e+10 ... 4.00e+10 4.00e+10 4.00e+10]\n",
  2909. " ...\n",
  2910. " [2.00e+01 2.00e+01 4.00e+10 ... 7.20e+21 7.20e+21 1.48e+12]\n",
  2911. " [2.00e+01 2.00e+01 4.00e+10 ... 7.20e+21 7.20e+21 1.48e+12]\n",
  2912. " [2.00e+01 2.00e+01 4.00e+10 ... 1.48e+12 1.48e+12 2.02e+12]]\n",
  2913. "\n",
  2914. " Starting calculate accuracy/rmse...\n",
  2915. "calculate performance: 100%|█████████▉| 997/1000 [00:03<00:00, 268.42it/s]\n",
  2916. " Mean performance on train set: 98.175092\n",
  2917. "With standard deviation: 4.720613\n",
  2918. "\n",
  2919. " Mean performance on test set: 100.144883\n",
  2920. "With standard deviation: 13.958659\n",
  2921. "calculate performance: 100%|██████████| 1000/1000 [00:03<00:00, 260.49it/s]\n",
  2922. "\n",
  2923. "\n",
  2924. " lmda rmse_test std_test rmse_train std_train k_time\n",
  2925. "----------- ----------- ---------- ------------ ----------- --------\n",
  2926. " 1e-10 7.4649 1.71858 5.99354 0.356922 37.3696\n",
  2927. " 1e-09 7.37511 1.76925 5.96304 0.374107 37.4747\n",
  2928. " 1e-08 7.35069 1.78056 5.96511 0.378249 37.3297\n",
  2929. " 1e-07 7.351 1.78147 5.96698 0.382093 37.7415\n",
  2930. " 1e-06 7.35123 1.78052 5.96976 0.386318 37.5213\n",
  2931. " 1e-05 7.34813 1.78029 5.97056 0.390719 37.671\n",
  2932. " 0.0001 7.34984 1.7811 5.9425 0.331983 36.8013\n",
  2933. " 0.001 7.35775 1.78098 5.9334 0.324965 35.8681\n",
  2934. " 0.01 7.37427 1.79115 5.94069 0.347431 36.0018\n",
  2935. " 0.1 7.3293 1.91363 6.42711 1.29367 36.3715\n",
  2936. " 1 7.27134 2.20774 6.62425 1.2242 37.8397\n",
  2937. " 10 7.49787 2.36815 6.81697 1.50182 37.5082\n",
  2938. " 100 7.42887 2.64789 6.68766 1.34809 37.0946\n",
  2939. " 1000 7.24914 2.65554 6.81906 1.41008 37.5171\n",
  2940. " 10000 7.08183 2.6248 6.93431 1.38441 37.0127\n",
  2941. "100000 8.23763 3.6653 9.395 1.04707 35.8353\n",
  2942. " 1e+06 8.52983 3.58059 9.63525 0.68756 37.7773\n",
  2943. " 1e+07 10.9642 3.35873 11.0591 1.32363 37.461\n",
  2944. " 1e+08 63.2212 13.3811 66.1477 11.98 37.91\n",
  2945. " 1e+09 100.135 13.8459 96.6648 1.87132 38.4368\n",
  2946. " 1e+10 100.145 13.9587 98.1751 4.72061 37.3215\n"
  2947. ]
  2948. }
  2949. ],
  2950. "source": [
  2951. "# tree pattern kernel, dataset acyclic.\n",
  2952. "%load_ext line_profiler\n",
  2953. "\n",
  2954. "import sys\n",
  2955. "sys.path.insert(0, \"../\")\n",
  2956. "from pygraph.utils.utils import kernel_train_test\n",
  2957. "from pygraph.kernels.treePatternKernel import treepatternkernel\n",
  2958. "\n",
  2959. "import numpy as np\n",
  2960. "\n",
  2961. "datafile = '../../../../datasets/acyclic/Acyclic/dataset_bps.ds'\n",
  2962. "kernel_file_path = 'kernelmatrices_path_acyclic/'\n",
  2963. "\n",
  2964. "\n",
  2965. "kernel_para = dict(node_label = 'atom', edge_label = 'bond_type', labeled = True, \\\n",
  2966. " kernel_type = 'untiln', h = 2)\n",
  2967. "\n",
  2968. "kernel_train_test(datafile, kernel_file_path, treepatternkernel, kernel_para, \\\n",
  2969. " hyper_name = 'lmda', hyper_range = np.logspace(-10, 10, num = 21, base = 10), \\\n",
  2970. " normalize = False, model_type = 'regression')\n",
  2971. "\n",
  2972. "# kernel_para['depth'] = 10\n",
  2973. "# %lprun -f untildpathkernel \\\n",
  2974. "# kernel_train_test(datafile, kernel_file_path, untildpathkernel, kernel_para, normalize = False)"
  2975. ]
  2976. },
  2977. {
  2978. "cell_type": "code",
  2979. "execution_count": null,
  2980. "metadata": {},
  2981. "outputs": [],
  2982. "source": [
  2983. "# results\n",
  2984. "\n",
  2985. "# untiln kernel when h = 2\n",
  2986. " lmda rmse_test std_test rmse_train std_train k_time\n",
  2987. "----------- ----------- ---------- ------------ ----------- --------\n",
  2988. " 1e-10 7.46524 1.71862 5.99486 0.356634 38.1447\n",
  2989. " 1e-09 7.37326 1.77195 5.96155 0.374395 37.4921\n",
  2990. " 1e-08 7.35105 1.78349 5.96481 0.378047 37.9971\n",
  2991. " 1e-07 7.35213 1.77903 5.96728 0.382251 38.3182\n",
  2992. " 1e-06 7.3524 1.77992 5.9696 0.3863 39.6428\n",
  2993. " 1e-05 7.34958 1.78141 5.97114 0.39017 37.3711\n",
  2994. " 0.0001 7.3513 1.78136 5.94251 0.331843 37.3967\n",
  2995. " 0.001 7.35822 1.78119 5.9326 0.32534 36.7357\n",
  2996. " 0.01 7.37552 1.79037 5.94089 0.34763 36.8864\n",
  2997. " 0.1 7.32951 1.91346 6.42634 1.29405 36.8382\n",
  2998. " 1 7.27134 2.20774 6.62425 1.2242 37.2425\n",
  2999. " 10 7.49787 2.36815 6.81697 1.50182 37.8286\n",
  3000. " 100 7.42887 2.64789 6.68766 1.34809 36.3701\n",
  3001. " 1000 7.24914 2.65554 6.81906 1.41008 36.1695\n",
  3002. " 10000 7.08183 2.6248 6.93431 1.38441 37.5723\n",
  3003. "100000 8.021 3.43694 8.69813 0.909839 37.8158\n",
  3004. " 1e+06 8.49625 3.6332 9.59333 0.96626 38.4688\n",
  3005. " 1e+07 10.9067 3.17593 11.5642 2.07792 36.9926\n",
  3006. " 1e+08 61.1524 10.4355 65.3527 13.9538 37.1321\n",
  3007. " 1e+09 99.943 13.6994 98.8848 5.27014 36.7443\n",
  3008. " 1e+10 100.083 13.8503 97.9168 3.22768 37.096\n"
  3009. ]
  3010. },
  3011. {
  3012. "cell_type": "code",
  3013. "execution_count": 2,
  3014. "metadata": {
  3015. "scrolled": true
  3016. },
  3017. "outputs": [
  3018. {
  3019. "name": "stdout",
  3020. "output_type": "stream",
  3021. "text": [
  3022. "The line_profiler extension is already loaded. To reload it, use:\n",
  3023. " %reload_ext line_profiler\n"
  3024. ]
  3025. },
  3026. {
  3027. "data": {
  3028. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD8CAYAAABzTgP2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4yLCBodHRwOi8vb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AAASUVORK5CYII=\n",
  3029. "text/plain": [
  3030. "<matplotlib.figure.Figure at 0x7f6be3d4a8d0>"
  3031. ]
  3032. },
  3033. "metadata": {},
  3034. "output_type": "display_data"
  3035. },
  3036. {
  3037. "name": "stdout",
  3038. "output_type": "stream",
  3039. "text": [
  3040. "[(0, {'atom': 'C', 'label': 'C'}), (1, {'atom': 'C', 'label': 'C'}), (2, {'atom': 'C', 'label': 'C'}), (3, {'atom': 'C', 'label': 'C'}), (4, {'atom': 'S', 'label': 'S'})]\n",
  3041. "\n",
  3042. " --- kernel matrix of tree pattern kernel of size 39 built in 3.5270774364471436 seconds ---\n",
  3043. "(array([[1.99007809e+036, 4.00000000e+000, 4.00000000e+000, ...,\n",
  3044. " 1.00000000e+001, 1.00000000e+001, 1.00000000e+001],\n",
  3045. " [4.00000000e+000, 6.37886713e+019, 4.34000000e+002, ...,\n",
  3046. " 6.37886713e+019, 6.37886713e+019, 6.37886713e+019],\n",
  3047. " [4.00000000e+000, 4.34000000e+002, 1.99007809e+036, ...,\n",
  3048. " 4.40000000e+002, 4.40000000e+002, 4.40000000e+002],\n",
  3049. " ...,\n",
  3050. " [1.00000000e+001, 6.37886713e+019, 4.40000000e+002, ...,\n",
  3051. " 2.94561201e+119, 1.16903692e+080, 4.42354433e+082],\n",
  3052. " [1.00000000e+001, 6.37886713e+019, 4.40000000e+002, ...,\n",
  3053. " 1.16903692e+080, 4.21212139e+264, 1.66634383e+080],\n",
  3054. " [1.00000000e+001, 6.37886713e+019, 4.40000000e+002, ...,\n",
  3055. " 4.42354433e+082, 1.66634383e+080, 5.17763068e+117]]), 3.5270774364471436)\n"
  3056. ]
  3057. }
  3058. ],
  3059. "source": [
  3060. "%load_ext line_profiler\n",
  3061. "\n",
  3062. "import networkx as nx\n",
  3063. "import matplotlib.pyplot as plt\n",
  3064. "import sys\n",
  3065. "sys.path.insert(0, \"../\")\n",
  3066. "from pygraph.utils.graphfiles import loadDataset\n",
  3067. "from pygraph.utils.utils import kernel_train_test\n",
  3068. "\n",
  3069. "from pygraph.kernels.treePatternKernel import treepatternkernel, _treepatternkernel_do\n",
  3070. "\n",
  3071. "import numpy as np\n",
  3072. "\n",
  3073. "datafile = '../../../../datasets/acyclic/Acyclic/dataset_bps.ds'\n",
  3074. "\n",
  3075. "dataset, y = loadDataset(datafile)\n",
  3076. "G1 = dataset[100]\n",
  3077. "G2 = dataset[20]\n",
  3078. "data = [G1, G2]\n",
  3079. "# nx.draw_networkx(G1)\n",
  3080. "# plt.show()\n",
  3081. "# print(G1.nodes(data=True)20\n",
  3082. "nx.draw_networkx(G2)\n",
  3083. "plt.show()\n",
  3084. "print(G2.nodes(data=True))\n",
  3085. "\n",
  3086. "\n",
  3087. "%lprun -f _treepatternkernel_do \\\n",
  3088. " kernel = treepatternkernel(dataset[1:40], node_label = 'atom', edge_label = 'bond_type', labeled = True, \\\n",
  3089. " kernel_type = 'untiln', lmda = 1, h = 10)\n",
  3090. "\n",
  3091. "print(kernel)"
  3092. ]
  3093. },
  3094. {
  3095. "cell_type": "code",
  3096. "execution_count": 1,
  3097. "metadata": {},
  3098. "outputs": [
  3099. {
  3100. "name": "stdout",
  3101. "output_type": "stream",
  3102. "text": [
  3103. "\n",
  3104. " --- This is a classification problem ---\n",
  3105. "\n",
  3106. "\n",
  3107. " Loading dataset from file...\n",
  3108. "\n",
  3109. " Calculating kernel matrix, this could take a while...\n",
  3110. "retrieve patterns: 100%|██████████| 185/185 [00:00<00:00, 2064.69it/s]\n",
  3111. "calculate kernels: 100%|██████████| 185/185 [00:00<00:00, 11170.00it/s]\n",
  3112. "\n",
  3113. " --- kernel matrix of cyclic pattern kernel of size 185 built in 0.10836505889892578 seconds ---\n",
  3114. "[[0. 0. 0. ... 0. 0. 0.]\n",
  3115. " [0. 0. 0. ... 0. 0. 0.]\n",
  3116. " [0. 0. 0. ... 0. 0. 0.]\n",
  3117. " ...\n",
  3118. " [0. 0. 0. ... 0. 0. 0.]\n",
  3119. " [0. 0. 0. ... 0. 0. 0.]\n",
  3120. " [0. 0. 0. ... 0. 0. 0.]]\n",
  3121. "\n",
  3122. " Starting calculate accuracy/rmse...\n",
  3123. "calculate performance: 100%|██████████| 1000/1000 [00:24<00:00, 36.41it/s]\n",
  3124. " Mean performance on train set: 0.018072\n",
  3125. "With standard deviation: 0.000000\n",
  3126. "\n",
  3127. " Mean performance on test set: 0.000000\n",
  3128. "With standard deviation: 0.000000\n",
  3129. "\n",
  3130. "\n",
  3131. " accur_test std_test accur_train std_train k_time\n",
  3132. "------------ ---------- ------------- ----------- --------\n",
  3133. " 0 0 0.0180723 0 0.108365\n"
  3134. ]
  3135. }
  3136. ],
  3137. "source": [
  3138. "%load_ext line_profiler\n",
  3139. "\n",
  3140. "import sys\n",
  3141. "sys.path.insert(0, \"../\")\n",
  3142. "from pygraph.utils.utils import kernel_train_test\n",
  3143. "from pygraph.kernels.cyclicPatternKernel import cyclicpatternkernel\n",
  3144. "\n",
  3145. "import numpy as np\n",
  3146. "\n",
  3147. "datafile = '../../../../datasets/acyclic/Acyclic/dataset_bps.ds'\n",
  3148. "kernel_file_path = 'kernelmatrices_path_acyclic/'\n",
  3149. "\n",
  3150. "kernel_para = dict(node_label = 'atom', edge_label = 'bond_type', labeled = True, cycle_bound = 200)\n",
  3151. "\n",
  3152. "# kernel_train_test(datafile, kernel_file_path, treeletkernel, kernel_para, normalize = False)\n",
  3153. "\n",
  3154. "kernel_train_test(datafile, kernel_file_path, cyclicpatternkernel, kernel_para, \\\n",
  3155. " normalize = False , model_type = 'classification')\n",
  3156. "\n",
  3157. "# kernel_para['k_func'] = 'minmax'\n",
  3158. "# kernel_train_test(datafile, kernel_file_path, untildpathkernel, kernel_para, \\\n",
  3159. "# hyper_name = 'depth', hyper_range = np.linspace(0, 10, 11), normalize = True)\n",
  3160. "# kernel_train_test(datafile, kernel_file_path, untildpathkernel, kernel_para, \\\n",
  3161. "# hyper_name = 'depth', hyper_range = np.linspace(0, 10, 11), normalize = False)\n",
  3162. "# # kernel_train_test(datafile, kernel_file_path, untildpathkernel, kernel_para, normalize = False)\n",
  3163. "\n",
  3164. "# kernel_para['depth'] = 10\n",
  3165. "# %lprun -f untildpathkernel \\\n",
  3166. "# kernel_train_test(datafile, kernel_file_path, untildpathkernel, kernel_para, normalize = False)"
  3167. ]
  3168. }
  3169. ],
  3170. "metadata": {
  3171. "kernelspec": {
  3172. "display_name": "Python 3",
  3173. "language": "python",
  3174. "name": "python3"
  3175. },
  3176. "language_info": {
  3177. "codemirror_mode": {
  3178. "name": "ipython",
  3179. "version": 3
  3180. },
  3181. "file_extension": ".py",
  3182. "mimetype": "text/x-python",
  3183. "name": "python",
  3184. "nbconvert_exporter": "python",
  3185. "pygments_lexer": "ipython3",
  3186. "version": "3.5.2"
  3187. }
  3188. },
  3189. "nbformat": 4,
  3190. "nbformat_minor": 2
  3191. }

A Python package for graph kernels, graph edit distances and graph pre-image problem.