<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by BigM on Medium]]></title>
        <description><![CDATA[Stories by BigM on Medium]]></description>
        <link>https://medium.com/@mickey.lubs?source=rss-cf59434f0bce------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UkfUAJ24IidQb7Ye.jpg</url>
            <title>Stories by BigM on Medium</title>
            <link>https://medium.com/@mickey.lubs?source=rss-cf59434f0bce------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 10:20:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mickey.lubs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[TabFM vs XGBoost: Testing In-Context Tabular Learning]]></title>
            <link>https://medium.com/@mickey.lubs/large-language-model-vs-large-tabular-model-ed51e9ac1cfa?source=rss-cf59434f0bce------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed51e9ac1cfa</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[tabular-data]]></category>
            <dc:creator><![CDATA[BigM]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 17:52:59 GMT</pubDate>
            <atom:updated>2026-08-17T14:11:11.161Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZAeiwSl3s9TpWGta3SDdFw.png" /></figure><p>So, lets step back and talk about what happened for the past 5 years in tech.</p><p>In case you don’t know, Tech is the most valuable sector in the world. It decided the fate of wars (deciphering the <a href="https://en.wikipedia.org/wiki/Enigma_machine">Enigma</a> code, 1941), revolutionizing healthcare with vaccines and treatments, re-inventing how we communicated and fast traking the pace of innovation (Internet).</p><p>Just when we thought we had seen it all there came LLMs (Large Language Model), a transformer based Machine learning algorythm which was about to completely <strong>disrupt</strong> the world has we knew it.</p><p>LLMs are trained models based on billion of mostly <strong><em>unstructured</em></strong> open public datasets which goes through tokenizers, embeddings (text -&gt; tokens -&gt; embeddings). A transformer then enables token attention to learn which is more relevant to the other. Now, what distinguishes LLMs is its ability to reason and predict the next token so when you type “the rabbit is in”, it generate what most likely fits next and this my friend touched every sector from cyber security, healthcare, coding, finance, education.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Pm8AfnOM10oZzIArb94cCQ.png" /></figure><p><strong>So, why Large Tabular Model ?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nXAki8W2oLYC3qlGYULA2Q.png" /></figure><p>LTM isn’t just a fit to do (classification, regression) predictions in the way LLM does with token generation but <strong><em>most importantly </em></strong>it might, might render our current Machine learning cycle obsolete and that is a <strong>huge thing!</strong></p><p>The current ML lifecycle is laborious and demands hours, weeks, months of attentive hyper-parameters tunings and continously retraining of models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HVSQZyywuXVKAx9-xB4QWg.jpeg" /><figcaption>Current Machine learning lifecycle</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YhQbK-0NIFwmD_t5sSymgA.png" /></figure><p>Tabular models drastically shorten the current lifecycle with <strong>NO training required</strong> while promising to challenge and in some cases surpass traditional tabular prediction champions like <strong>XGBoost</strong>. Google just released <a href="https://research.google/blog/introducing-tabfm-a-zero-shot-foundation-model-for-tabular-data/">TabFM</a>, which brings <strong>zero-shot, in-context learning to tabular data</strong>: instead of training a new model for every dataset, you provide labeled rows as context and the model directly predicts labels or values for new rows.</p><p>This shifts the workflow from:</p><p><strong>collect data → engineer features → train → tune → validate → deploy → measure/filter best → retrain</strong></p><p>to something closer to:</p><p><strong>collect data → engineer features → load context → predict</strong></p><p>So, because i’m a practical guy. I have decided to integrate it to our current ML lifecycle on <strong>financial trading market</strong>. We will run for a month and post the verdict here. Our datasets are highly curated data sourced directly from realtime financial market platforms. This goes through a continous pipeline loop of <strong><em>collect</em></strong>, <strong><em>transform</em></strong>, <strong><em>analyze</em></strong>, <strong><em>ML (assessment, prediction)</em></strong>, <strong><em>permanent storage</em></strong>, <strong><em>repeat </em></strong>while the ML lifecycle as described above continously update the model on our life systems.</p><blockquote><strong>Fundamentals</strong></blockquote><p>in an agentic AI workflow. You load the context window with your prompts, instructions, tools, RAG data and inputs then the LLM uses it produce results based on it. <strong><em>This is crutial</em></strong> because without a content window even the best trained model is useless and all LLMs have a limit to this context window as it loses attention as it reaches full capacity and leads to hallucinations.</p><p>Having said that, Tabular foundation models follow a similar idea. Instead of loading text into the context window, they load <strong>rows and features from a tabular dataset</strong> as in-context examples. TabFM also has a limit on how much tabular data can be processed in one context. For larger datasets, the practical approach is to <strong>sample subsets of rows and ensemble multiple inference passes</strong> rather than loading the entire dataset at once. Github -&gt; <a href="https://github.com/google-research/tabfm">https://github.com/google-research/tabfm</a></p><p>The heaviest workload in a tabular foundation model is therefore often the <strong>inference/prediction stage</strong>, because prediction requires repeatedly loading context rows, encoding the table, running the transformer over that context, and producing predictions for the query rows.</p><p>So unlike XGBoost, where most of the computational cost is concentrated in <strong>training</strong>, a model like TabFM shifts much more of the cost toward <strong>inference.</strong></p><p><strong>The first pain</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*wGpQBZ_mK8lX3C7iM6bw7A.jpeg" /></figure><p>Trying spin up and run this model on my CPU based system:</p><p>Vendor: HP<br>Version: P67<br>Version: Dual Intel(R) Xeon(R) CPU X5675 @ 3.07GHz<br>CPU Cores: 6<br>Memory: 32Gb</p><p>With this system, it took above an hour to predict a sample of 50 rows/observations. Really frustrating so decided to switch to GPU based systems. Giving <a href="https://www.runpod.io/product/cloud-gpus">runpod</a> a try.</p><p><strong>GPU based system</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4U58mq8jniPgtOs8vK34fQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iU5WwakJW2o3tbFloXc7HQ.png" /></figure><p>With this setup and intergation in-place. We immediately started getting feedback but before we dwell into that, let examine the job:</p><h4>Loading the model locally:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BlBWnGNorvv_64IiaYfZaw.png" /></figure><h4>The payload:</h4><pre>{<br>  &quot;_index&quot;: &quot;trades_assessments_micka-000002&quot;,<br>  &quot;_id&quot;: &quot;vwtR4p8BwKQAJ5mrksAx&quot;,<br>  &quot;_version&quot;: 1,<br>  &quot;_source&quot;: {<br>    &quot;category&quot;: &quot;inverse&quot;,<br>    &quot;symbol&quot;: &quot;APTUSDT&quot;,<br>    &quot;side&quot;: &quot;Sell&quot;,<br>    &quot;INTEL&quot;: &quot;SHORT_REVERSAL&quot;,<br>    &quot;orderType&quot;: &quot;Limit&quot;,<br>    &quot;price&quot;: 0.6109,<br>    &quot;qty&quot;: 819,<br>    &quot;takeProfit&quot;: 0.6042,<br>    &quot;stopLoss&quot;: 0.6659,<br>    &quot;slOrderType&quot;: &quot;Limit&quot;,<br>    &quot;slLimitPrice&quot;: &quot;0.6659&quot;,<br>    &quot;tpslMode&quot;: &quot;Partial&quot;,<br>    &quot;timeInForce&quot;: &quot;FOK&quot;,<br>    &quot;tpLimitPrice&quot;: &quot;0.6042&quot;,<br>    &quot;tpOrderType&quot;: &quot;Limit&quot;,<br>    &quot;result&quot;: &quot;unknown&quot;,<br>    &quot;minute_interval_rule&quot;: 1,<br>    &quot;condition&quot;: &quot;fat_down_weight_roc_curved_day_10m_test_v2_rsi_extreme_unleash_go&quot;,<br>    &quot;customer&quot;: &quot;micka_prod&quot;,<br>    &quot;volume_bybit_90d&quot;: 12889332.13028235,<br>    &quot;volume_bybit_now&quot;: &quot;7036448.5759&quot;,<br>    &quot;cmc_rank&quot;: 76,<br>    &quot;track_candle_up_avg&quot;: 1.6320754716981132,<br>    &quot;track_candle_up_count&quot;: 346,<br>    &quot;track_candle_down_avg&quot;: 1.978395061728395,<br>    &quot;track_candle_down_count&quot;: 641,<br>    &quot;RSI_NOW&quot;: 54.408107271127115,<br>    &quot;ROC_9D&quot;: 7.347512743891738,<br>    &quot;RSI_NOW_H&quot;: 75.79246852680961,<br>    &quot;ROC_9D_H&quot;: 2.604166666666674,<br>    &quot;RSI_NOW_M&quot;: 67.63073207462901,<br>    &quot;ROC_9D_M&quot;: 0.1311690441055946,<br>    &quot;RSI_NOW_M_1&quot;: 69.47032948775797,<br>    &quot;ROC_9D_M_1&quot;: 0.27914614121511416,<br>    &quot;price_diff_change_10min_1&quot;: 0.003208,<br>    &quot;price_diff_change_10min&quot;: 0.013585,<br>    &quot;TAG&quot;: &quot;held_up_trade_M_134&quot;,<br>    &quot;market_count_now&quot;: 633,<br>    &quot;market_count_15m&quot;: 637,<br>    &quot;market_count_30m&quot;: 620,<br>    &quot;percentage_24h&quot;: 0.04002,<br>    &quot;market_count_above_500&quot;: -1,<br>    &quot;worked&quot;: -1.1457608863711357,<br>    &quot;volume_90d&quot;: 58979870.554989114,<br>    &quot;volume_now&quot;: 25072749.83161637,<br>    &quot;tendancies_pct_up&quot;: 740.5185185185185,<br>    &quot;tendancies_pct_down&quot;: 796.9629629629629,<br>    &quot;days_60_up_count&quot;: 24,<br>    &quot;days_60_down_count&quot;: 28,<br>    &quot;rsi&quot;: 54.408107271127115,<br>    &quot;roc_9d_btc&quot;: 0.4364404620153195,<br>    &quot;rsi_btc&quot;: 55.102767034595836,<br>    &quot;macd_btc&quot;: 131.611261,<br>    &quot;macd_btc_sline&quot;: 53.589552,<br>    &quot;macd&quot;: -0.008474,<br>    &quot;macd_sline&quot;: -0.012824,<br>    &quot;zoom_14d_min_price&quot;: 0.6028012,<br>    &quot;zoom_14d_min_avg&quot;: 0.6028012,<br>    &quot;zoom_17h_min_price&quot;: 0.5957,<br>    &quot;zoom_17h_max_price&quot;: 0.612,<br>    &quot;zoom_8d_price&quot;: 0.5768756654737458,<br>    &quot;zoom_8d_avg&quot;: 0.0049869855476506126,<br>    &quot;ROC_AVG_30D_5MIN&quot;: 0.30965885597541326,<br>    &quot;ROC_AVG_30D_1MIN&quot;: 0.16337421954619286,<br>    &quot;RSI_NOW_H_ABOVE_AVG&quot;: true,<br>    &quot;RSI_NOW_M_ABOVE_AVG&quot;: false,<br>    &quot;RSI_NOW_M_1_ABOVE_AVG&quot;: false,<br>    &quot;ROC_9D_H_ABOVE_AVG&quot;: true,<br>    &quot;ROC_9D_M_ABOVE_AVG&quot;: false,<br>    &quot;ROC_9D_M_1_ABOVE_AVG&quot;: true,<br>    &quot;MACD_M_1_ABOVE_AVG&quot;: true,<br>    &quot;MACD_M_5_ABOVE_AVG&quot;: false,<br>    &quot;MACD_1H_ABOVE_AVG&quot;: true,<br>    &quot;MACD_M_1&quot;: 0.000392,<br>    &quot;MACD_SIGNAL_LINE_M_1&quot;: 0.000172,<br>    &quot;MACD_M_5&quot;: 0.000944,<br>    &quot;MACD_SIGNAL_LINE_M_5&quot;: 0.001116,<br>    &quot;MACD_1H&quot;: 0.006105,<br>    &quot;MACD_1H_SIGNAL_LINE&quot;: 0.00407,<br>    &quot;ROC_9D_H_ABOVE_MAX&quot;: true,<br>    &quot;ROC_9D_M_ABOVE_MAX&quot;: false,<br>    &quot;ROC_9D_M_1_ABOVE_MAX&quot;: true,<br>    &quot;MACD_M_1_ABOVE_MAX&quot;: false,<br>    &quot;MACD_M_5_ABOVE_MAX&quot;: false,<br>    &quot;MACD_1H_ABOVE_MAX&quot;: true,<br>    &quot;MACD_DAY_ABOVE_MAX&quot;: true,<br>    &quot;MACD_DAY_ABOVE_AVG&quot;: true,<br>    &quot;RSI_NOW_H_ABOVE_MAX&quot;: true,<br>    &quot;RSI_NOW_M_1_ABOVE_MAX&quot;: false,<br>    &quot;RSI_NOW_M_ABOVE_MAX&quot;: false,<br>    &quot;zoom_8d_avg_high&quot;: 0.017033385936362118,<br>    &quot;zoom_8d_price_high&quot;: 0.5814079333680725,<br>    &quot;candle_1h.closed&quot;: 0.6117,<br>    &quot;candle_2h.closed&quot;: 0.6111,<br>    &quot;candle_3h.closed&quot;: 0.612,<br>    &quot;candle_4h.closed&quot;: 0.6045,<br>    &quot;candle_5h.closed&quot;: 0.6038,<br>    &quot;candle_6h.closed&quot;: 0.6039,<br>    &quot;candle_7h.closed&quot;: 0.6044,<br>    &quot;candle_14d.low&quot;: 0.6028012,<br>    &quot;pct.24h_8d.avg&quot;: 0.0049869855476506126,<br>    &quot;pct.24h_7d.below_zero_avg&quot;: 0.6028012,<br>    &quot;btc_24h_now&quot;: 0.002631,<br>    &quot;eth_24h_now&quot;: 0.003887,<br>    &quot;tusdt_24h_now&quot;: 0.015939,<br>    &quot;percentiles_1&quot;: 0.5574486448628521,<br>    &quot;percentiles_5&quot;: 0.5678724378922098,<br>    &quot;percentiles_25&quot;: 0.6033755723940625,<br>    &quot;percentiles_50&quot;: 0.6360788060110427,<br>    &quot;percentiles_75&quot;: 0.8712850708414674,<br>    &quot;percentiles_95&quot;: 1.0228313283959372,<br>    &quot;percentiles_99&quot;: 1.126442543420527,<br>    &quot;price_diff_change&quot;: 0.03766,<br>    &quot;price_diff_change_1d&quot;: 0.036956,<br>    &quot;price_diff_change_10h&quot;: 0.018367,<br>    &quot;price_diff_change_10h_stored&quot;: 0,<br>    &quot;MACD_1H_UP&quot;: false,<br>    &quot;MACD_DAY_CURVED&quot;: false,<br>    &quot;BELOW&quot;: false,<br>    &quot;BELOW_1H&quot;: false,<br>    &quot;MACD_DAY_NEGATIVE&quot;: false,<br>    &quot;MACD_DAY_POSITIVE_EXTREME&quot;: false,<br>    &quot;MACD_DAY_POSITIVE&quot;: false,<br>    &quot;MACD_DAY_POSITIVE_BY_2&quot;: false,<br>    &quot;MACD_DAY_MIXED&quot;: false,<br>    &quot;BUY_H_NEGATIVE&quot;: false,<br>    &quot;BUY_H_POSITIVE&quot;: false,<br>    &quot;RSI_H&quot;: true,<br>    &quot;RSI_UP&quot;: false,<br>    &quot;RSI_DOWN_H&quot;: false,<br>    &quot;RSI_CURVED&quot;: false,<br>    &quot;RSI_CURVED_H&quot;: false,<br>    &quot;INDICATOR_1&quot;: false,<br>    &quot;INDICATOR_2&quot;: false,<br>    &quot;INDICATOR_3&quot;: false,<br>    &quot;INDICATOR_4&quot;: false,<br>    &quot;INDICATOR_5&quot;: true,<br>    &quot;INDICATOR_6&quot;: false,<br>    &quot;INDICATOR_7&quot;: false,<br>    &quot;INDICATOR_8&quot;: false,<br>    &quot;INDICATOR_9&quot;: false,<br>    &quot;INDICATOR_10&quot;: false,<br>    &quot;INDICATOR_11&quot;: true,<br>    &quot;JUST_CROSS_BELOW&quot;: false,<br>    &quot;JUST_CROSS_ABOVE&quot;: false,<br>    &quot;EXTREME_ABOVE&quot;: false,<br>    &quot;EXTREME_BELOW&quot;: false,<br>    &quot;ABOVE&quot;: false,<br>    &quot;STILL_ABOVE&quot;: false,<br>    &quot;ABOVE_1H_BIG&quot;: true,<br>    &quot;ABOVE_1H&quot;: false,<br>    &quot;ABOVE_1H_STAMP&quot;: true,<br>    &quot;ROC&quot;: true,<br>    &quot;ROC_CURVED&quot;: false,<br>    &quot;ROC_CURVED_DAY_POSITIVE&quot;: false,<br>    &quot;ROC_CURVED_DAY_NEGATIVE&quot;: false,<br>    &quot;ROC_H&quot;: false,<br>    &quot;ROC_CURVED_HOUR_NEGATIVE&quot;: false,<br>    &quot;ROC_CURVED_HOUR_POSITIVE&quot;: false,<br>    &quot;ROC_CURVED_NOW&quot;: false,<br>    &quot;WHOLE_MARKET_CURVED&quot;: false,<br>    &quot;M_0&quot;: 0,<br>    &quot;M_1&quot;: 1,<br>    &quot;M_2&quot;: 1,<br>    &quot;M_3&quot;: 1,<br>    &quot;M_4&quot;: 1,<br>    &quot;M_5&quot;: 1,<br>    &quot;M_6&quot;: 1,<br>    &quot;M_7&quot;: 0,<br>    &quot;M_8&quot;: 0,<br>    &quot;M_9&quot;: 0,<br>    &quot;M_10&quot;: 0,<br>    &quot;M_11&quot;: 0,<br>    &quot;M_12&quot;: 0,<br>    &quot;M_13&quot;: 1,<br>    &quot;M_14&quot;: 0,<br>    &quot;M_15&quot;: 1,<br>    &quot;M_16&quot;: 0,<br>    &quot;M_17&quot;: 1,<br>    &quot;M_18&quot;: 1,<br>    &quot;M_19&quot;: 0,<br>    &quot;M_20&quot;: 1,<br>    &quot;M_21&quot;: 1,<br>    &quot;M_22&quot;: 1,<br>    &quot;M_23&quot;: 1,<br>    &quot;M_24&quot;: 0,<br>    &quot;M_25&quot;: 0,<br>    &quot;M_26&quot;: 1,<br>    &quot;M_27&quot;: 0,<br>    &quot;M_28&quot;: 1,<br>    &quot;M_29&quot;: 0,<br>    &quot;M_30&quot;: 0,<br>    &quot;M_31&quot;: 0,<br>    &quot;M_32&quot;: 0,<br>    &quot;M_33&quot;: 0,<br>    &quot;M_34&quot;: 0,<br>    &quot;M_35&quot;: 0,<br>    &quot;M_36&quot;: 0,<br>    &quot;M_37&quot;: 0,<br>    &quot;M_38&quot;: 1,<br>    &quot;M_39&quot;: 0,<br>    &quot;M_40&quot;: 0,<br>    &quot;M_41&quot;: 0,<br>    &quot;M_42&quot;: 0,<br>    &quot;M_43&quot;: 0,<br>    &quot;M_44&quot;: 0,<br>    &quot;M_45&quot;: 0,<br>    &quot;M_46&quot;: 0,<br>    &quot;M_47&quot;: 1,<br>    &quot;M_48&quot;: 0,<br>    &quot;M_49&quot;: 0,<br>    &quot;M_50&quot;: 0,<br>    &quot;M_51&quot;: 1,<br>    &quot;M_52&quot;: 0,<br>    &quot;M_53&quot;: 0,<br>    &quot;M_54&quot;: 0,<br>    &quot;M_55&quot;: 0,<br>    &quot;M_56&quot;: 0,<br>    &quot;M_57&quot;: 0,<br>    &quot;M_58&quot;: 0,<br>    &quot;M_59&quot;: 0,<br>    &quot;M_60&quot;: 0,<br>    &quot;M_61&quot;: 0,<br>    &quot;M_62&quot;: 0,<br>    &quot;M_63&quot;: 0,<br>    &quot;M_64&quot;: 0,<br>    &quot;M_65&quot;: 1,<br>    &quot;M_66&quot;: 0,<br>    &quot;M_67&quot;: 0,<br>    &quot;M_68&quot;: 1,<br>    &quot;M_69&quot;: 0,<br>    &quot;M_70&quot;: 0,<br>    &quot;M_71&quot;: 1,<br>    &quot;M_72&quot;: 0,<br>    &quot;M_73&quot;: 0,<br>    &quot;M_74&quot;: 0,<br>    &quot;M_75&quot;: 1,<br>    &quot;M_76&quot;: 0,<br>    &quot;M_77&quot;: 0,<br>    &quot;M_78&quot;: 0,<br>    &quot;M_79&quot;: 0,<br>    &quot;M_80&quot;: 0,<br>    &quot;M_81&quot;: 0,<br>    &quot;M_82&quot;: 0,<br>    &quot;M_83&quot;: 0,<br>    &quot;M_84&quot;: 0,<br>    &quot;M_85&quot;: 0,<br>    &quot;M_86&quot;: 0,<br>    &quot;M_87&quot;: 0,<br>    &quot;M_88&quot;: 0,<br>    &quot;M_89&quot;: 0,<br>    &quot;M_90&quot;: 0,<br>    &quot;M_91&quot;: 0,<br>    &quot;M_92&quot;: 0,<br>    &quot;M_93&quot;: 0,<br>    &quot;M_94&quot;: 0,<br>    &quot;M_95&quot;: 0,<br>    &quot;M_96&quot;: 0,<br>    &quot;M_97&quot;: 0,<br>    &quot;M_98&quot;: 0,<br>    &quot;M_99&quot;: 0,<br>    &quot;M_100&quot;: 0,<br>    &quot;M_101&quot;: 0,<br>    &quot;M_102&quot;: 0,<br>    &quot;M_103&quot;: 0,<br>    &quot;M_104&quot;: 0,<br>    &quot;M_105&quot;: 0,<br>    &quot;M_106&quot;: 1,<br>    &quot;M_107&quot;: 0,<br>    &quot;M_108&quot;: 0,<br>    &quot;M_109&quot;: 0,<br>    &quot;M_110&quot;: 0,<br>    &quot;M_111&quot;: 0,<br>    &quot;M_112&quot;: 0,<br>    &quot;M_113&quot;: 0,<br>    &quot;M_114&quot;: 0,<br>    &quot;M_115&quot;: 0,<br>    &quot;M_116&quot;: 0,<br>    &quot;M_117&quot;: 0,<br>    &quot;M_118&quot;: 0,<br>    &quot;M_119&quot;: 1,<br>    &quot;M_120&quot;: 0,<br>    &quot;M_121&quot;: 0,<br>    &quot;M_122&quot;: 0,<br>    &quot;M_123&quot;: 0,<br>    &quot;M_124&quot;: 1,<br>    &quot;M_125&quot;: 0,<br>    &quot;M_126&quot;: 1,<br>    &quot;M_127&quot;: 0,<br>    &quot;M_128&quot;: 1,<br>    &quot;M_129&quot;: 0,<br>    &quot;M_130&quot;: 0,<br>    &quot;M_131&quot;: 1,<br>    &quot;M_132&quot;: 0,<br>    &quot;M_133&quot;: 0,<br>    &quot;M_134&quot;: 1,<br>    &quot;M_135&quot;: 0,<br>    &quot;M_136&quot;: 0,<br>    &quot;M_137&quot;: 0,<br>    &quot;M_138&quot;: 0,<br>    &quot;M_139&quot;: 0,<br>    &quot;M_140&quot;: 1,<br>    &quot;M_141&quot;: 0,<br>    &quot;M_142&quot;: 0,<br>    &quot;M_143&quot;: 0,<br>    &quot;M_144&quot;: 0,<br>    &quot;M_145&quot;: 0,<br>    &quot;M_146&quot;: 0,<br>    &quot;M_147&quot;: 0,<br>    &quot;M_148&quot;: 0,<br>    &quot;M_149&quot;: 0,<br>    &quot;M_150&quot;: 0,<br>    &quot;M_151&quot;: 1,<br>    &quot;M_152&quot;: 0,<br>    &quot;M_153&quot;: 0,<br>    &quot;M_154&quot;: 0,<br>    &quot;M_156&quot;: 0,<br>    &quot;macd_1d_percentage_difference&quot;: -33.65804239401496,<br>    &quot;macd_1h_percentage_difference&quot;: 54.45259298061812,<br>    &quot;macd_1min&quot;: 0.000102,<br>    &quot;macd_1min_percentage_difference&quot;: -224.390243902439,<br>    &quot;macd_5min&quot;: 0.000898,<br>    &quot;macd_5min_percentage_difference&quot;: -22.984562607204108,<br>    &quot;macd_60min&quot;: 0.005897,<br>    &quot;macd_signal_line&quot;: -0.012832,<br>    &quot;macd_signal_line_1min&quot;: -0.000082,<br>    &quot;macd_signal_line_5min&quot;: 0.001166,<br>    &quot;macd_signal_line_60min&quot;: 0.003818,<br>    &quot;roc_9d_1min&quot;: 0.2958579881656709,<br>    &quot;roc_9d_5min&quot;: 0.08200754469409599,<br>    &quot;roc_9d_60min&quot;: 2.5201612903225756,<br>    &quot;rsi_1min&quot;: 67.75344576143412,<br>    &quot;rsi_5min&quot;: 65.21592861886037,<br>    &quot;rsi_60min&quot;: 72.27742134004002,<br>    &quot;price_diff_now_7d&quot;: 0.5773745560081753,<br>    &quot;price_7d_ago&quot;: 0.5581,<br>    &quot;price_difference_7d_ago&quot;: 9.424834259093348,<br>    &quot;ds_difference&quot;: 23.705756545212225,<br>    &quot;price_diff_now_1d&quot;: 0.5891279983520508,<br>    &quot;price_1d_ago&quot;: 0.5878,<br>    &quot;price_difference_1d_ago&quot;: 3.895882953385511,<br>    &quot;btc_avg_7d_mark&quot;: 64353.67708637494,<br>    &quot;candle_1d.closed&quot;: 0.6107,<br>    &quot;candle_2d.closed&quot;: 0.5795,<br>    &quot;candle_3d.closed&quot;: 0.5907,<br>    &quot;candle_4d.closed&quot;: 0.5919,<br>    &quot;candle_5d.closed&quot;: 0.5773,<br>    &quot;candle_6d.closed&quot;: 0.5754,<br>    &quot;candle_7d.closed&quot;: 0.5628,<br>    &quot;btc_candle_1h_closed&quot;: 65092.3,<br>    &quot;btc_candle_2h_closed&quot;: 65117,<br>    &quot;btc_candle_3h_closed&quot;: 65175.3,<br>    &quot;btc_candle_4h_closed&quot;: 64998.6,<br>    &quot;btc_candle_5h_closed&quot;: 65030.7,<br>    &quot;btc_candle_6h_closed&quot;: 64986.5,<br>    &quot;btc_candle_7h_closed&quot;: 64993.8,<br>    &quot;btc_candle_1d_closed&quot;: 65039.2,<br>    &quot;btc_candle_2d_closed&quot;: 64883.1,<br>    &quot;btc_candle_3d_closed&quot;: 64288.4,<br>    &quot;btc_candle_4d_closed&quot;: 64627.3,<br>    &quot;btc_candle_5d_closed&quot;: 64076.5,<br>    &quot;btc_candle_6d_closed&quot;: 63504,<br>    &quot;btc_candle_7d_closed&quot;: 63545.9,<br>    &quot;btc_price_min_7d&quot;: 62486.6015625,<br>    &quot;btc_price_max_7d&quot;: 65679.1796875,<br>    &quot;btc_price_low_hit&quot;: false,<br>    &quot;btc_price_difference_min_7d&quot;: 4.120992937861051,<br>    &quot;btc_price_difference_max_7d&quot;: -0.9401909257059823,<br>    &quot;btc_price_now&quot;: 65061.67,<br>    &quot;tusdt_price_now&quot;: 0.003638,<br>    &quot;btc_price_high_hit_occured&quot;: false,<br>    &quot;tendancies_diff&quot;: -56.44444444444446,<br>    &quot;days_60_diff&quot;: 4,<br>    &quot;timestamp&quot;: &quot;2026-08-08T17:00:24.370803&quot;,<br>    &quot;model_run_id&quot;: &quot;ed02d62387f64506bb4ea6cb7d5e878b&quot;,<br>    &quot;mlflow_updated&quot;: &quot;false&quot;,<br>    &quot;trade&quot;: &quot;Dummy&quot;,<br>    &quot;ml_predicted&quot;: [<br>      0<br>    ],<br>    &quot;entry_point&quot;: &quot;0_5&quot;,<br>    &quot;probability_win&quot;: [<br>      0.09401018172502518<br>    ],<br>    &quot;probability_win_label&quot;: 0,<br>    &quot;percentage_difference&quot;: 50.000000000000014,<br>    &quot;low_demand_vs_supply&quot;: 0,<br>    &quot;high_supply_vs_demand&quot;: 23.705756545212225,<br>    &quot;btc_price_high_hit&quot;: false,<br>    &quot;percentiles_95_above&quot;: -1,<br>    &quot;percentiles_75_above&quot;: -1,<br>    &quot;percentiles_99_above&quot;: -1,<br>    &quot;model&quot;: &quot;TABFM&quot;,<br>    &quot;context_size&quot;: 10503<br>  }<br>}</pre><p><strong>TabFM tasks:</strong></p><ul><li>Loads the dataset (12k rows) into in-context window (2.9s)</li><li>Convert LIVE (unseen) dataset to dataframe (0.0s)</li><li>Daat engineering (0.1s)</li><li>Predicts (53.9s)</li><li>Log metrics to <a href="https://mlflow.org/">MLflow</a> and <a href="https://www.elastic.co/elasticsearch">Elasticsearch</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gO7EzvvBVuGB613qDTRpNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_1uzbup_zUvAly2PX-ilCw.png" /></figure><p><strong>MLFLOW:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tGBi8gX7HBHbeJ4nBQYY_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CwU0OSngDRrmeKNLb1qOMw.png" /></figure><p>On Elastic, you see them logging here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7JHHFFu6yAL_i_zmJ3WwCw.png" /></figure><p>Because we now have both <strong>XGBOOST</strong> and <strong>TabFM</strong> predictions flowing into our platform, we will be able to compare the 2 and see which one is the true winner:</p><p>In the table below, are you seeing what we’re trying to establish ?</p><p>TabFM predicted a <strong>win (1)</strong> and XGBOOST a <strong>loss (0),</strong> taking into consideration the probabilities. The same order/payload but each but a sharp contradiction in prediction. That’s exactly what we need to establish, only can be telling the truth. In 30 days, we will have the verdict.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CfO7WT9DpDSrLl2qR5rkpA.png" /></figure><p><strong>Status for the past 24 hours on win predictions</strong></p><p><strong>TabFM:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*6NmnN3k5LpoS0MQnIDP-eA.png" /></figure><p><strong>XGBOOST:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*FR67ReA4ppzlpEfXtF7rrg.png" /></figure><p>Note: These are just preliminary results, they’re not conclusive yet as trades are still opened. They have mostly not reached <strong>TP</strong> or <strong>SL</strong>. 30 days, we should have a better analysis and verdict. “Can Tabular model beats XGBOOST ?” …</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed51e9ac1cfa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MLOps from an Efficiency Standpoint]]></title>
            <link>https://medium.com/@mickey.lubs/mlops-from-an-efficiency-standpoint-c7a9349cee20?source=rss-cf59434f0bce------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7a9349cee20</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlflow]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[BigM]]></dc:creator>
            <pubDate>Wed, 27 May 2026 11:52:21 GMT</pubDate>
            <atom:updated>2026-05-27T17:31:59.093Z</atom:updated>
            <content:encoded><![CDATA[<h3>(MLOps) from an efficiency stand point</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uFgjyn2SMaDD0bbm8Ykh-w.png" /></figure><blockquote><strong>Our story</strong></blockquote><p>Our story is simple… build a system for the financial trading market which predicts the best trades with the highest accuracy … not occasionally, not randomly but consistently over time. As part of this eco-system, ML is at the heart and below is current/previous state vs where we’re going.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDrsnokG50ekNtv2Gttt7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QmItmDySE7w8o-Ryns8nNw.png" /></figure><p><strong>Why make this move to incorporate MLflow into our pipeline ?</strong></p><p>What makes a model performant are it’s <strong>parameters</strong>.</p><p>Data scientist spends most of their time fine tuning this as that’s what matter for an efficient model. So to do that efficiently, you need a tracking mechanism in place that <strong>tracks</strong>, <strong>measures</strong>, <strong>evaluate</strong> and <strong>version</strong> this as part of the entire decision making life-cycle and that where MLops comes into play.</p><p><strong>Mlflow</strong> in this context does exactly that, a platform where you log your models to so it stores and tracks everything about it. (<strong><em>artifacts</em></strong>, <strong><em>training/testing datasets</em></strong>, <strong><em>inferences</em></strong>, <strong><em>hyper-paramters</em></strong>, <strong><em>everything</em></strong> …)</p><p><strong>Key points behind an MLOps approach</strong></p><ul><li>Can you tell what were the <strong>parameters</strong> your model was trained on ?</li><li>Do you know what was the <strong>best tuned parameters</strong> ?</li><li>Do you know the top 5 <strong>most influential indicators</strong>/fields in your datasets ?</li><li>Has your model <strong><em>improved</em></strong> or <strong><em>regressed</em></strong> across your runs ?</li><li>Can we switch to specific versions ? (No <strong>model versioning</strong>)</li><li>Can you <strong>track inferences</strong> ? their <strong>outcomes</strong> ? payload ?</li><li>Which <strong>features</strong> was the model trained on ?</li><li>Can we <strong>continuously improve our models</strong> without impacting our live decision stream ?</li></ul><p><strong>From ML training to Upstream MLflow</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLJ4cmuxFUJg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLJ4cmuxFUJg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLJ4cmuxFUJg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c641834ec88a815410e4051def334700/href">https://medium.com/media/c641834ec88a815410e4051def334700/href</a></iframe><p><strong>Watch inference test</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F7IzKrH34auI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7IzKrH34auI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F7IzKrH34auI%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdca8e6641ed9cc84ca7bcac339aa138/href">https://medium.com/media/bdca8e6641ed9cc84ca7bcac339aa138/href</a></iframe><p><strong>What have we accomplished ?</strong></p><h4>1. 📊 Training run comparison</h4><p>Compare all 120 assets side by side — sort by test_auc, test_f1, cv_precision. See which assets have suspicious overfit (auc=1.0), which have extreme imbalance, which params consistently win.</p><h4>2. 🏷️ Model versioning</h4><p>Every retrain creates a new version. You never lose a previous model — v1, v2, v3 all preserved with their metrics and params. You know exactly what changed between runs.</p><h4>3. 🚦 Staging → Production pipeline</h4><p>New runs land in Staging automatically. Your approval script picks the best Staging version per asset, compares against current Production, promotes only if AUC improves by 1%+. No manual file management.</p><h4>4. 🚀 Inference loads from MLflow</h4><p>python</p><pre>model = mlflow.xgboost.load_model(f&quot;models:/xgb_long_reversed_{x}/Staging&quot;)</pre><p>No more hardcoded joblib filenames with dates. No more broken paths. Model Registry always points to the right version.</p><h4>5. 📈 Inference tracking</h4><p>Every prediction logged — proba, predicted, model_version, trade_triggered. When the trade closes, result synced back to the same run via Elasticsearch watcher. Full audit trail per trade.</p><h4>6. 🔍 Best params retrieval</h4><p>After multiple runs per asset, pull the best params programmatically:</p><p>python</p><pre>runs = mlflow.search_runs(filter_string=&#39;tags.symbol = &quot;INJUSDT&quot;&#39;,<br>                           order_by=[&quot;metrics.test_auc DESC&quot;])<br>best_params = runs.iloc[0]</pre><p>Skip RandomizedSearchCV entirely on retrains — use known best params directly.</p><h4>7. 🔎 Input validation tracking</h4><p>Missing fields, all-NaN columns, empty dataframes at inference time — all logged with phase=inference_failed tag and a JSON report of exactly which fields were missing. Tells you which upstream data fields are unreliable.</p><h4>8. 🏅 Feature importance</h4><p>Top 5 most influential indicators logged per asset as both params (searchable) and metrics (comparable). Full ranked list of all 394 features as JSON artifact. Filter in UI: params.top_feature_1 = &quot;RSI_NOW_H&quot; to find all assets driven by same signal.</p><h4>9. 📦 Dataset tracking</h4><p>Training and test datasets logged with digest hash. Inference input logged per prediction. Digest lets you detect data drift — same hash means same distribution, different hash means something changed upstream.</p><h4>10. 🗃️ Artifact storage with version control</h4><p>Joblib bundle, feature names JSON, class distribution, feature importance — all stored as artifacts attached to the run. Download any of them years later to replay a prediction exactly as it was.</p><p><strong>Conclusion</strong></p><p>MLOps isn’t that bad after all as it makes our eco-system more efficient, resilient and will touch directly into better ROI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7a9349cee20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Observability of a trading bot]]></title>
            <link>https://medium.com/@mickey.lubs/observability-of-a-trading-bot-da20bcc2422d?source=rss-cf59434f0bce------2</link>
            <guid isPermaLink="false">https://medium.com/p/da20bcc2422d</guid>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[opentelemetry]]></category>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <dc:creator><![CDATA[BigM]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 19:42:29 GMT</pubDate>
            <atom:updated>2026-03-11T08:34:33.582Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qNiBaAby36ZGsQTyCk2MnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cs4j0i5JaE08fWN7XHv72A.png" /></figure><p><strong>Scenario</strong></p><p>Fictitious trading firm operates some autonomous bots which are the backbone of their solution. The optimal performance and uptime of these bots are crucial as the financial market demands a realtime to the milliseconds response on potential trades. So, we need to keep an eye on this with application TRACES.</p><p><strong>Let put it together</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kNMt6z457V-XJCuATs349w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*seb5n61gmX0QnHaRhnQIfQ.png" /></figure><p><strong>Setup your APM server</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WoDCyxs-fi71S-2TjaVxCw.png" /></figure><p><strong>Here’s what you need to stream to APM</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cdJDZyhezPLaRyUZ6LsVig.png" /></figure><p><strong>Hook your python app with OpenTelemetry</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0dZfwTwYPc4jVhuQ72v0Kg.png" /></figure><p><strong>Voila!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pyU6ELQKSwYRDDpcuFyA2A.png" /></figure><blockquote>Good! we’re streaming our application traces to Elastic APM. So, we can now <strong>drilldown</strong> into what’s happening behind the scenes …</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bmoP5ks70RVdP0HoHDIvsw.png" /></figure><p><strong>Latency</strong>: How slow are our bots and what contributing to that</p><p><strong>Throughput</strong>: How many transactions/calls are we processing per seconds</p><p><strong>Transcations</strong>: what are those transactions (details)</p><p><strong>Errors</strong>: What’s failing and should be addressed</p><blockquote><strong>Answers to these questions keeps our system optimal and efficient system maximises our chances of better ROI for everyone.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da20bcc2422d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting the … between data points. Is there real value ?]]></title>
            <link>https://medium.com/@mickey.lubs/connecting-the-between-data-points-is-there-real-value-9ab8672c327f?source=rss-cf59434f0bce------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ab8672c327f</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[neo4j]]></category>
            <dc:creator><![CDATA[BigM]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 18:32:32 GMT</pubDate>
            <atom:updated>2026-03-06T05:59:42.741Z</atom:updated>
            <content:encoded><![CDATA[<p>The basis of this article is to highlight the value of leveraging a graph approach to relationship connections between various data points.</p><p>To ilustrate this, we will build a Graph system for a ficticious company called ‘LOL’ which will offer features described below within their Cybersecurity Operation Center and infrastructure risk management.</p><ul><li><strong>Asset identification across all data sources</strong><br> <em>How is asset X related to asset Y within the maze of our data points?</em></li><li><strong>Security threat hunting across all data sources</strong><br> <em>What does a given threat imply for the broader environment and related entities in the network?</em></li><li><strong>Firewall and network port mapping across all data sources</strong><br> <em>What is the operational and risk impact of blocking or enabling a specific port?</em></li></ul><p>That sounds good but why using a graphDB approach would be useful ?</p><p>Certainly we could stitch a nice complex, compound query using RDBM systems. Yes, that could involve beautiful inner, outer joints and maybe have it as a scheduled job so we achieve some sort of realtime state of these relationships but the key point here is that you have to build the relationships, it’s not inheritenly present. GraphDB at its core is about relationship between nodes not tables, inheritenly giving you access to relationship <em>insights</em> at an extent harder and expensive for RDBM systems.</p><p><strong>System</strong> is made up of:</p><p>— Elasticsearch as our EDR system<br> — Neo4J as our GraphDB<br> — Jenkins as our DevOps pipeline platform<br> — Ansible as our IaC<br> — Python as our system integrator <br> — Openvas as our VA<br> — Ralph CMDB as our CMDB<br> — Zeek as our NDR</p><p><strong>Deploy</strong> the <strong>stack</strong>:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYT1BwEy-CQA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYT1BwEy-CQA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYT1BwEy-CQA%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a0095c163e5bc2d55f5e6054170659cf/href">https://medium.com/media/a0095c163e5bc2d55f5e6054170659cf/href</a></iframe><p>We’ll cover <em>Security threat hunt</em> for now in this post.</p><h3>Security Threat hunt</h3><p>Max is a security analyst at (fictitious LOL company), his role is to hunt potential security threats. LOL SIEM is made up of various data points including:</p><ul><li>EDR/XDR (Endpoint Detection Response)</li><li>NDR (Network Detection Response)</li><li>IDM/IAM (Identity and Access Management)</li><li>CMDB (Configuration Management Database)</li><li>Firewall /Switches events</li><li>Vulnerability Assessment endpoints</li><li>All other custom applications …</li></ul><p>Max receives an IoC (Indicator of Compromise) on his SIEM platform. There is an potential malicious access attempt on one of LOL system’s asset from IP address (192.168.1.177). Max needs to tracemap this indicator and find out how far it went throughout the network, which systems did it interact with and if a breach is confirmed.</p><blockquote><strong>First level (1 hop) relationship depth</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zi0KbplziZ4GCUOqjTVVcg.png" /></figure><p>Great! The asset of interest does exists in our network and made contact with 2 of our assets. Now what ? well.. let deepdive into it.</p><blockquote><strong>Drilldown (3 hops) relationship depth</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KK7KaMilKWpRpXwzrPOXZQ.png" /></figure><p>Here’s the relationship tree of connected assets which ties up to our <strong>VA</strong>, <strong>CMDB</strong> and <strong>EDR systems</strong>.</p><blockquote><strong>Lets expand the entire tree</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TQvSRcqOfkCkduRVolOT6w.png" /></figure><h3>What do we have here ?</h3><p>A tracemap of the indicator of interest across all our datapoints. No joins, No complex query.. just a MATCH equivalent to SELECT for SQL.</p><p>Our (indicator of interest) has established connection with (IP address X) detected by our <strong>NDR</strong> which belongs to hostname (worker1) from our <strong>CMDB.</strong><br>(worker1) has a (high) priority from <strong>CMDB.</strong><br>(worker1) is tied to 3 EDR alerts<strong> </strong>from our <strong>Elasticsearch EDR.</strong><br>(worker1) has multiple vulnerabilities from our (<strong>Vulnerability Assessment systems</strong>) of critical severity.</p><p>We know this immediately! not after hours of threat hunting. So the answer to Max’s question is <em>treat this as confirmed high severity threat</em> and follow appriopriate process (Isolate, war room, etc..). What’s even better is that we could build an agenticAI system which should handle this entire workflow and recommends or take actions.</p><p>That’ s about it for now. In part 2, We will go through <strong><em>the operational and risk impact of blocking/enabling ports</em></strong> within your network from a graphDB stand point.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ab8672c327f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leveraging Agentic AI in the Crypto trading sector]]></title>
            <link>https://blog.devgenius.io/leveraging-agentic-ai-in-the-crypto-trading-sector-73784c07756e?source=rss-cf59434f0bce------2</link>
            <guid isPermaLink="false">https://medium.com/p/73784c07756e</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[llm-agent]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[BigM]]></dc:creator>
            <pubDate>Fri, 31 Oct 2025 14:32:24 GMT</pubDate>
            <atom:updated>2025-11-06T07:48:51.758Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBuFXOj6ROfxjr1cOBaGvQ.png" /></figure><p>With the rapid pace of change in the technology industry, AI has reemerged to change almost every facet of our current world. AI in itself isn’t really a new <a href="https://share.google/DNOovxY5wd2SZUabu">concept</a> but the revolution started when <a href="https://openai.com/">OpenAI</a>’s model ‘GPT-3’ (a transformer based large language model) was able to break through processing hundreds billion of tokens thanks to <a href="https://developer.nvidia.com/blog/openai-presents-gpt-3-a-175-billion-parameters-language-model/?utm_source=chatgpt.com">NVIDIA </a>chip hence their strong partnership and cloud infrastructure scaling mongst other factors.</p><p>This new capabilty disrupts EVERYTHING, all sectors. From Healthcare, Military, Retail to Education, Finance to Cybersecurity, etc.</p><p>In this article, i’d like to zoom into and showcase how this technology impacts the financial trading sector.</p><p>In the Financial Technology industry (FinTech), as a trading firm what is the problem you’re trying to solve?</p><p>Well, let’s explore what a generic trading workflow looks like:</p><ul><li>Collect, gather the asset’s dataset (historical + real-time)</li><li>Collect and analyze market information from various data points (news feeds, social media, articles, economical events)</li><li>Analyze this dataset for technical indicator to extract the necessary insight to tell the direction of an asset. This is the technical analysis phase.</li><li>Corelate all gathered data with the aim to derive a clear picture of the asset and market’s direction so we can make/take profitable trades.</li></ul><p>At high-level that’s pretty much how it would look like. Humans have been doing this for years; in some cases this yield good results and in other maybe not so much but the point is this is pretty much how it’s been done.</p><p>Now, where Agentic AI comes into play is it can make this process even more efficient because it can:</p><ul><li>Read/summarize millions of pages at a speed no humans could</li><li>It can access, browse the web and make sense of it (summarize) at a speed no human could</li><li>It can find, identify corelate between millions of data points at speed no human could</li><li>It can take the role of anything about any topics to produce suggestions, responses at an accuracy no human could</li></ul><p>In the next section of this article we are going to dive deep into a technical walkthrough of an Agentic system built for the crypto currency trading market. Buckle up …</p><p><strong>The system</strong></p><p>We have built a <strong><em>continuous trading feedback system</em></strong>. What it does is continously gather cryptocurrency market data from selected exchange platforms, do the <strong><em>technical analysis</em></strong>, <strong><em>build</em></strong>, <strong><em>train</em></strong> <strong><em>a predictive machine learning model</em></strong> and make predictions. All the KPI’s, algorithms to make this prediction is recorded and stored. The model is updated in real-time with every trades taken including a massive dataset of custom technical analysis, improving its predictive accuracy over time. All this data is stored in a noSQL database (<a href="https://www.elastic.co/">elasticsearch</a>) and obviously the whole streaming pipeline is on <a href="https://www.confluent.io/">Kafka</a>.</p><p>So, what we end up with is a profile for every asset on the market. This dataset is what makes us <strong>VALUABLE</strong> because nobody else has this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IX4bR7AqGPdbxk29jIQVUA.png" /></figure><p><strong>The</strong> <strong>LLM</strong></p><p>So, we have setup our Agentic AI agent workflow as follow. Each tool below has a specific task so as to guide the LLM on how to execute it and what to expect. That is important to keep the whole flow accurate for the target objective:</p><p><strong>(1)</strong> <strong>Get/Retrieve</strong> the latest 10 historical + current trading assessment datasets for a particular asset from our data store (Elastic)<br>Note: you can stretch this to any size you deem sufficient for the model know about.</p><p><strong>(2)</strong> <strong>Get/Retrieve </strong>the latest state of KPI metrics, algorythms, market conditions from our data store (Elastic)</p><p><strong>(3) Get the latest price</strong> of the particular asset from the crypto exchange platforms. Out of “<em>indexPrice”</em>, “<em>lastPrice”</em> and “<em>markPrice” — </em>pick the best (lowest/highest), this will be <strong>important</strong> when setting/suggesting the entry price for the trade.</p><p><strong>(4) Get the most recent market news datasets</strong> from the internet (web pages, articles, social media, economic annoucements). We require this to have a feel of market condition and direction</p><p><strong>(5)</strong> With all the datasets collected so far, <strong>do an initial assessment</strong> to apply judgement. <strong>Reason</strong> with all collected dataset based on your role.</p><p><strong>(6) </strong>With the judgement made based on all datasets, <strong>re-assess with additional attention</strong> to specific KPIs from datasets and a final requirement based on targeted <em>profit</em> and <em>lost</em> margins.</p><p>This completes the workflow and we have a final response. Of course we can have follow-up conversation but the main decision has been decided at this point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*snJnXM5rqKLxgNYIgo7Ivw.png" /></figure><p><strong>The code</strong></p><p>Here’s an extract of some part of gthe code …</p><h4><strong>Import your modules</strong></h4><pre>from __future__ import annotations<br><br>import os<br>import json<br>import re<br>import traceback<br>from datetime import datetime<br><br>from dotenv import load_dotenv<br><br>import pandas as pd<br>from pydantic import BaseModel<br><br># Optional Tavily (web search)<br>_tavily_ok = True<br>try:<br>    from langchain_tavily import TavilySearch<br>except Exception:<br>    _tavily_ok = False<br><br># LangChain + OpenAI compat imports<br>try:<br>    from langchain_openai import ChatOpenAI<br>except Exception:<br>    from langchain.chat_models import ChatOpenAI  # older langchain<br><br>from langchain.agents import initialize_agent, AgentType, tool, Tool<br># New imports for tool-calling agent Option A<br>from langchain.agents import create_tool_calling_agent, AgentExecutor<br>from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder<br>from langchain_core.messages import SystemMessage<br><br>try:<br>    from langchain.memory import ConversationBufferMemory<br>except Exception:<br>    from langchain.memory import ConversationBufferMemory<br><br>try:<br>    from langchain.prompts.chat import MessagesPlaceholder<br>except Exception:<br>    from langchain.prompts import MessagesPlaceholder<br><br># Elasticsearch client SDK<br>from elasticsearch import Elasticsearch<br><br># UI<br>import gradio as gr<br><br>#Bybit world<br>from pybit.unified_trading import HTTP<br>import time</pre><p>Setup your ENV and clients</p><pre>load_dotenv(&quot;(YOUR PATH)/.env&quot;)<br>ES_URL=os.environ[&quot;ES_URL&quot;]<br>ES_INDEX=os.environ[&quot;ES_INDEX&quot;]<br>ES_SSL_VERIFY_CERTS=os.environ[&quot;ES_SSL_VERIFY_CERTS&quot;]<br>ES_CACERT=os.environ[&quot;ES_CACERT&quot;]<br>ES_CAKEY=os.environ[&quot;ES_CAKEY&quot;]<br>ES_USER=os.environ[&quot;ES_USER&quot;]<br>ES_PASSWORD=os.environ[&quot;ES_PASSWORD&quot;]<br>TODAY = datetime.utcnow().strftime(&quot;%B %d, %Y&quot;)<br><br># OpenAI model (env OPENAI_API_KEY should be present)<br>OPENAI_API_KEY = os.environ[&quot;OPENAI_API_KEY&quot;]<br><br># Elastic client<br>es = Elasticsearch(<br>    [os.environ[&quot;ES_URL&quot;]],<br>    basic_auth=(os.environ[&quot;ES_USER&quot;], os.environ[&quot;ES_PASSWORD&quot;]),<br>    verify_certs=os.environ[&#39;ES_SSL_VERIFY_CERTS&#39;],<br>    ca_certs=os.environ[&#39;ES_CACERT&#39;],<br>    client_key=os.environ[&#39;ES_CAKEY&#39;],<br>    request_timeout= 60<br>)<br><br>print(es)<br><br># Crypto Exchange client<br>session = HTTP(<br>    testnet=False,<br>    api_key=os.environ[&quot;EXCHANGE_API_KEY&quot;],<br>    api_secret=os.environ[&quot;EXCHANGE_API_SECRET&quot;],<br>    timeout=int(os.environ[&quot;EXCHANGE_API_TIMEOUT&quot;])<br>)</pre><p>Then, we will start setting up the tools the model will use to take actions throughout the workflow. First let’s examine the structure of setting up a function tool. You’ve heard of <a href="https://docs.pydantic.dev/latest/">Pydantic</a> ? <br>It is the most widely used data validation library for Python and it is at the core of agentic framework. We use it to set schemas and validate function’s input</p><pre># Set up your schema using &#39;BaseModel&#39;<br>class ElasticGetDatasetInput(BaseModel):<br>    es_index: str<br>    symbol_asset: str<br>    instruction: str<br><br># Make the tool aware that this is the schema it will use when executing this tool<br>@tool(args_schema=ElasticGetDatasetInput)<br><br># Contruct your function tool<br>def elastic_get_dataset(es_index: str, symbol_asset: str, instruction: str) -&gt; str:<br># Your annotation goes here. Guide the LLM on how to execute and what to expect from this<br>&quot;&quot;&quot; text &quot;&quot;&quot;<br><br>code ....<br><br># Return what you want the LLM to feed into its memory and know about<br>return </pre><p>Example (this is the datasets collection tool):</p><pre>class ElasticGetDatasetInput(BaseModel):<br>    es_index: str<br>    symbol_asset: str<br>    instruction: str<br><br>@tool(args_schema=ElasticGetDatasetInput)<br>def elastic_get_dataset(es_index: str, symbol_asset: str, instruction: str) -&gt; str:<br>    &quot;&quot;&quot;<br>    Purpose:    Fetch the latest historical dataset from index &#39;XXXX&#39; for a given symbol_asset from an Elasticsearch index and return JSON.<br>                The retrieved documents contains all the metric KPIs needed to profile trends, behaviour of this asset<br>                which you will later use to compare with latest dataset retrieved to make a judgement<br><br>    When to use: Use this tool to fetch the latest historical dataset of an asset from index &#39;trades_assessments_micka&#39; to analyze its patterns, trends and successfull or failed trades found in &#39;outcome_02&#39;.<br>    &quot;&quot;&quot;<br>    <br>    query = {<br>    &quot;_source&quot;: {&quot;excludes&quot;: [&quot;M_*&quot;, &quot;timestamp_updated_win_*&quot;, &quot;status_at_*&quot;, &quot;timestamp_updated_*&quot;, &quot;customer&quot;, &quot;FAILED_PURCHASED&quot;]},<br>    &quot;sort&quot;: [<br>        {<br>        &quot;timestamp&quot;: {<br>            &quot;order&quot;: &quot;desc&quot;<br>        }<br>        }<br>    ],<br>    &quot;size&quot;: 10,<br>    &quot;query&quot;: {<br>        &quot;bool&quot;: {<br>        &quot;must&quot;: [<br>            {<br>            &quot;match&quot;: {<br>                &quot;symbol.keyword&quot;: symbol_asset<br>            }<br>            },<br>            {<br>            &quot;exists&quot;: {<br>                &quot;field&quot;: &quot;btc_price_difference_max_7d&quot;<br>            }<br>            },<br>            {<br>            &quot;exists&quot;: {<br>                &quot;field&quot;: &quot;high_supply_vs_demand&quot;<br>            }<br>            },<br>            {<br>            &quot;exists&quot;: {<br>                &quot;field&quot;: &quot;btc_price_difference_min_7d&quot;<br>            }<br>            },<br>            {<br>            &quot;exists&quot;: {<br>                &quot;field&quot;: &quot;outcome_02.keyword&quot;<br>            }<br>            },<br>            {<br>            &quot;match&quot;: {<br>                &quot;side.keyword&quot;: &quot;Sell&quot;<br>            }<br>            }<br>        ],<br>        &quot;filter&quot;: [<br>            {<br>            &quot;range&quot;: {<br>                &quot;timestamp&quot;: {<br>                &quot;gte&quot;: &quot;now-90d/m&quot;,<br>                &quot;lte&quot;: &quot;now/m&quot;<br>                }<br>            }<br>            }<br>        ]<br>        }<br>    }<br>    }<br><br>    res = es.search(index=es_index, scroll=&quot;1m&quot;, body=query)<br>    hits = res.get(&quot;hits&quot;, {}).get(&quot;hits&quot;, [])<br>    records = [h.get(&quot;_source&quot;, {}) for h in hits]<br>    if not records:<br>        return json.dumps({&quot;shape&quot;: [0, 0], &quot;columns&quot;: [], &quot;sample&quot;: [], &quot;note&quot;: f&quot;No records for {symbol_asset} in {es_index}.&quot;}, ensure_ascii=False)<br><br>    df = pd.json_normalize(records)<br>    # Light numeric coercion<br>    for col in df.columns:<br>        if df[col].dtype == object:<br>            try:<br>                df[col] = pd.to_numeric(df[col])<br>            except Exception:<br>                pass<br><br>    payload = {<br>        &quot;sample&quot;: df.head(min(50, len(df))).to_dict(orient=&quot;records&quot;),<br>    }<br><br>    return json.dumps({<br>        &quot;dataset&quot;: payload,<br>        &quot;instruction&quot;: instruction<br>    },ensure_ascii=False)</pre><p>Reasoning tool:</p><pre>class ReasonsInput(BaseModel):<br>    dataframe_json: str<br>    instruction: str<br><br>@tool(args_schema=ReasonsInput)<br>def reasons_based_on_dataset(dataframe_json: str, instruction: str) -&gt; str:<br><br><br>    &quot;&quot;&quot;<br>    Purpose: Read the results of previous tools &#39;elastic_get_dataset&#39;,&#39;search_crypto_info&#39;,&#39;elastic_get_latest_dataset&#39;,&#39;bybit_get_price_now&#39; and<br>    reasons which trade should we make. long or short at this moment. <br><br>    When to use: To reasons based on all ran tool&#39;s results to be able to make the trade prediction <br>    &quot;&quot;&quot;<br><br>    return json.dumps(<br>        {<br>            &quot;task&quot;: instruction,<br>            &quot;today&quot;: TODAY,<br>        },<br>        ensure_ascii=False,<br>    )</pre><p>You will notice the TODAY variable which i have found important because it set the point in time for the LLM model so it knows to give most recent info especially useful when browsing the web. So, this structure followed for all the tools we define in the code.</p><p>Then you ensure you group your <strong><em>tools</em></strong>, setup the <strong><em>LLM</em></strong> model with parameters and most importantly your <strong><em>prompt</em></strong>.</p><pre># LLM nodel<br>llm = ChatOpenAI(<br>    model=&quot;gpt-5&quot;,<br>    api_key=OPENAI_API_KEY,<br>    streaming=True,<br>    temperature=0,<br>    reasoning={&quot;effort&quot;: &quot;medium&quot;} # https://platform.openai.com/docs/guides/reasoning#get-started-with-reasoning<br>)<br><br># System role<br>system = &quot;&quot;&quot; SET YOUR SYSTEM ROLE&quot;&quot;&quot;<br><br># Prompt<br>prompt = ChatPromptTemplate.from_messages([<br>    SystemMessage(content=system),<br>    MessagesPlaceholder(variable_name=&quot;chat_history&quot;, optional=True),<br>    (&quot;human&quot;, &quot;{input}&quot;),<br>    MessagesPlaceholder(variable_name=&quot;agent_scratchpad&quot;),<br>])<br><br>agent_core = create_tool_calling_agent(llm, tools, prompt)<br><br>agent = AgentExecutor(<br>    agent=agent_core,<br>    tools=tools,<br>    verbose=True,<br>    max_iterations=10,<br>    handle_parsing_errors=True,<br>    return_intermediate_steps=False,<br>    memory=memory<br>)<br>return agent, memory</pre><p>Setup our UI (Gradio):</p><pre>with gr.Blocks(fill_height=True, css=&quot;#chat {height: 65vh;}&quot;) as demo:<br>    gr.Markdown(&quot;## FTDanalytics Trading&quot;)<br><br>    with gr.Tab(&quot;Pipeline&quot;):<br>        es_index = gr.Textbox(label=&quot;Elasticsearch index&quot;, placeholder=&quot;e.g., crypto_candles&quot;, value=&quot;&quot;)<br>        symbol_asset = gr.Textbox(label=&quot;symbol_asset&quot;, placeholder=&quot;e.g., BTCUSDT&quot;, value=&quot;&quot;)<br>        instruction = gr.Textbox(label=&quot;Instruction&quot;, value=&quot;Based on recent momentum and risk, should I go long or short? Explain briefly.&quot;, lines=2)<br>        include_web = gr.Checkbox(label=&quot;Include web search (latest 24h)&quot;, value=True)<br>        run_btn = gr.Button(&quot;Run decision&quot;, variant=&quot;primary&quot;)<br><br>        final_json = gr.Code(label=&quot;Final JSON result&quot;)<br>        final_msg = gr.Markdown(label=&quot;Message / Decision&quot;)<br><br>        def on_run(es_index_v, symbol_asset_v, instr_v, include_web_v):<br>            try:<br>                result = sequential_decision(<br>                    es_index=str(es_index_v).strip(),<br>                    symbol_asset=str(symbol_asset_v).strip(),<br>                    instruction=str(instr_v).strip(),<br>                    include_web_search=bool(include_web_v),<br>                )<br>                msg = result.get(&quot;message&quot;, &quot;&quot;)<br>                dec = result.get(&quot;decision&quot;, &quot;&quot;)<br>                md = f&quot;**Decision:** `{dec}`\n\n{msg}&quot; if msg else f&quot;**Decision:** `{dec}`&quot;<br>                return json.dumps(result, ensure_ascii=False, indent=2), md<br>            except Exception as e:<br>                err = f&quot;ERROR: {e}\n\n{traceback.format_exc()}&quot;<br>                return err, &quot;**Error**\n\n````\n&quot; + err + &quot;\n````&quot;<br><br>        run_btn.click(on_run, inputs=[es_index, symbol_asset, instruction, include_web], outputs=[final_json, final_msg])<br><br>    with gr.Tab(&quot;Chat (ad-hoc)&quot;):<br>        state = gr.State({})<br>        chat = gr.Chatbot(label=&quot;Conversation&quot;, elem_id=&quot;chat&quot;)<br>        with gr.Row():<br>            msg = gr.Textbox(label=&quot;Input&quot;, placeholder=&quot;Ask something…&quot;, lines=2, scale=4)<br>            send = gr.Button(&quot;Send&quot;, variant=&quot;primary&quot;, scale=1, min_width=100)<br>            clear = gr.Button(&quot;Clear&quot;, scale=1, min_width=100)<br><br>        def on_submit(user_input, chat_history, session_state):<br>            try:<br>                if &quot;agent&quot; not in session_state:<br>                    a, mem = build_agent_with_memory()<br>                    session_state[&quot;agent&quot;] = a<br>                    session_state[&quot;memory&quot;] = mem<br>                else:<br>                    a = session_state[&quot;agent&quot;]<br><br>                result = _agent_call(a, user_input)<br>                chat_history = chat_history + [(user_input, str(result))]<br>                return chat_history, &quot;&quot;, session_state<br>            except Exception as e:<br>                err = f&quot;ERROR: {e}\n\n{traceback.format_exc()}&quot;<br>                chat_history = chat_history + [(user_input, err)]<br>                return chat_history, &quot;&quot;, session_state<br><br>        msg.submit(on_submit, inputs=[msg, chat, state], outputs=[chat, msg, state])<br>        send.click(on_submit, inputs=[msg, chat, state], outputs=[chat, msg, state])<br>        clear.click(lambda: ([], &quot;&quot;, {}), inputs=None, outputs=[chat, msg, state])<br><br>if __name__ == &quot;__main__&quot;:<br>    demo.launch(server_name=&quot;0.0.0.0&quot;, server_port=7865, show_error=True)</pre><p>Okay, once the system is started here’s how our front-end interface looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xnPrgMYmaEDI7FSe0NSuWw.png" /></figure><p>Let kick-off a conversation … about an asset. Let say, i am a trader or an investor who knows nothing about trading but wants to grow your investments in this sector. I will ask our agentic AI agent to tell me if i should purchase a specific crypto currency coin and at what price and may be… what should be my (<em>take profit)</em> and (<em>stop loss)</em>. We will execute this with 2 different models, <a href="https://openai.com/gpt-5/">Chap-GPT5</a> on the left and <a href="https://www.deepseek.com/">DeepseekV3</a> (reasoning mode) on the right.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FaIjmIGOFXeU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DaIjmIGOFXeU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FaIjmIGOFXeU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b2ed449da1cef9756370e29c9730fdd/href">https://medium.com/media/8b2ed449da1cef9756370e29c9730fdd/href</a></iframe><p>Chat-GPT5 completed it’s run in about 2min while DeepseekV3 completed in under a minute .. approx 50s. They were given the same datasets to process. They both concluded to take a long position trade, i’ll paste the details below:</p><p>DeepseekV3:</p><pre>## **GO LONG on OPUSDT**<br><br>**Key Reasons for Long Position:**<br><br>1. **Technical Momentum**:<br>   - Current RSI at 33.42 (oversold territory) suggesting potential bounce<br>   - MACD 1H showing improvement (-0.004122 vs previous -0.005412)<br>   - ROC_9D at -2.96% but showing signs of recovery from deeper negatives<br><br>2. **Supply/Demand Dynamics**:<br>   - High supply vs demand at 44.42% (buyers &gt; sellers)<br>   - Market showing recovery with market_count_now at 178 vs 104 earlier<br><br>3. **Price Action**:<br>   - Current price at 0.4069, showing recovery from recent lows<br>   - Recent 24h performance: -3.53% but with signs of stabilization<br>   - Historical data shows successful long positions when RSI was in this range<br><br>4. **Market Context**:<br>   - BTC showing strength (BTC price at 110,152.6)<br>   - Recent web search indicates broader crypto market recovery momentum<br>   - Historical trades show better success rates for long positions in similar conditions<br><br>**Risk Management**:<br>- **Take Profit**: 2% (target ~0.4149)<br>- **Stop Loss**: 1% (stop ~0.4028)</pre><p>Chat-GPT5</p><pre>{&quot;message&quot;: &quot;OPUSDT shows an intraday momentum turn up: 1h MACD &gt; signal (bullish inflection), RSI on minute/hour frames is strong (M ~68, H ~51), and market breadth is improving (market_count_now 178 &gt; 15m 154 &gt; 30m 101). Price has bounced across the past hours (7h→1h: 0.3978 → 0.4039), with BTC stable/up and RSI ~46. Headwinds: broader trend remains weak (ROC_9D negative, 1D/7D drawdowns), high_supply_vs_demand is sub-50% (~44% → sellers still slightly dominant), and a token unlock (~31.3M OP) adds supply risk. With a 2% TP / 1% SL, the short-term breadth + 1h momentum favors a quick long scalp over a short (which risks a squeeze). Trade plan: enter ~0.4069, TP ~0.415 (+~2%), SL ~0.403 (−~1%). Invalidate if BTC weakens materially or breadth reverses (e.g., market_count_now drops sharply) or OP loses 0.403 quickly.&quot;,<br>&quot;decision&quot;: &quot;long&quot;<br>}</pre><p>(Chat-GPT5) reasoning process. Here’s how the tools are being called in the backend. Notice the instruction which the LLM generated based on annotation set at each tool:</p><pre>Invoking: `elastic_get_latest_dataset` with `{&#39;es_index&#39;: &#39;long_crypto_statistics&#39;, &#39;symbol_asset&#39;: &#39;OPUSDT&#39;, &#39;instruction&#39;: &#39;Fetch the latest KPI snapshot for OPUSDT including RSI, MACD, ROC, cmc_rank, high_supply_vs_demand, btc_* fields, candle_* fields, percentiles and price differences.&#39;}`<br>&quot;task&quot;: &quot;Fetch the latest KPI snapshot for OPUSDT including RSI, MACD, ROC, cmc_rank, high_supply_vs_demand, btc_* fields, candle_* fields, percentiles and price differences.&quot;}<br><br>Invoking: `bybit_get_price_now` with `{&#39;symbol_asset&#39;: &#39;OPUSDT&#39;, &#39;instruction&#39;: &#39;Get the latest spot price for OPUSDT.&#39;}`<br>&quot;instruction&quot;: &quot;Get the latest spot price for OPUSDT.&quot;<br><br>Invoking: `search_crypto_info` with `{&#39;query&#39;: &#39;OPUSDT OP token news analysis RSI MACD market sentiment Binance Bybit CoinMarketCap Crypto news last 24 hours&#39;, &#39;instruction&#39;: &#39;Summarize the most recent relevant catalysts, listings, unlocks, major partnerships, regulatory headlines that could affect OP (Optimism) price in the next 24-72 hours.&#39;}`<br>&quot;task&quot;: &quot;Summarize the most recent relevant catalysts, listings, unlocks, major partnerships, regulatory headlines that could affect OP (Optimism) price in the next 24-72 hours.&quot;}<br><br>Invoking: `reasons_based_on_dataset` with `{&#39;dataframe_json&#39;: &#39;{&quot;latest_dataset&quot;: {&quot;percentiles_1&quot;: 0.40324193581461903, &quot;market_count_15m&quot;: 154, &quot;ROC_9D&quot;: -2.958721068957282, &quot;btc_price_difference_min_7d&quot;: 5.343661837134802, &quot;percentiles_5&quot;: 0.42909647607658147, &quot;percentiles_99&quot;: 0.836462241128087, &quot;RSI_NOW_H&quot;: 50.74896163237766, &quot;cmc_rank&quot;: 81, &quot;MACD_1H_BELOW_FLAT_AVG&quot;: -489.1891891891892, &quot;percentiles_95&quot;: 0.8120397941343618, &quot;price_diff_now_7d&quot;: 0.44410295934366756, &quot;RSI_NOW_M&quot;: 67.8518344007476, &quot;btc_price_max_7d&quot;: 112367.0078125, &quot;ROC_9D_H_BELOW_AVG&quot;: false, &quot;worked&quot;: 0.017776299728436307, &quot;btc_candle_7h_closed&quot;: 109475.2, &quot;RSI_NOW_H_BELOW_AVG&quot;: false, &quot;MACD_M_5_BELOW_AVG&quot;: false, &quot;MACD_M_5&quot;: 0.001648, &quot;btc_price_low_hit_occured&quot;: false, &quot;MACD_1H_BELOW_MIN&quot;: false, &quot;percentage_24&quot;: -0.035341, &quot;MACD_M_1&quot;: 0.00059, &quot;roc_9d_btc&quot;: 2.394096879917562, &quot;candle_7h.closed&quot;: 0.3978, &quot;ROC_CURVED&quot;: true, &quot;ROC_CURVED_DAY&quot;: false, &quot;btc_candle_4h_closed&quot;: 109761.4, &quot;zoom_8d_avg&quot;: -0.006538106723069938, &quot;btc_candle_4d_closed&quot;: 112112.0, &quot;btc_price_difference_max_7d&quot;: -1.9706921592101498, &quot;candle_7d.closed&quot;: 0.4381, &quot;MACD_M_1_BELOW_MIN&quot;: false, &quot;zoom_17h_max_price&quot;: 0.4068, &quot;ROC_CURVED_DAY_POSITIVE&quot;: false, &quot;ROC_CURVED_DAY_NEGATIVE&quot;: true, &quot;market_count_now&quot;: 178, &quot;candle_3h.closed&quot;: 0.3982, &quot;candle_3d.closed&quot;: 0.4249, &quot;track_candle_up_count&quot;: 132.0, &quot;MACD_1H&quot;: -0.004122, &quot;RSI_NOW_M_1_BELOW_AVG&quot;: false, &quot;candle_1d.closed&quot;: 0.3962, &quot;rsi&quot;: 33.41832711913045, &quot;ROC_AVG_30D_5MIN&quot;: -0.5727142042426361, &quot;volume_now&quot;: 140946339.22324252, &quot;track_candle_down_avg&quot;: 1.8135593220338984, &quot;candle_1h.closed&quot;: 0.4039, &quot;btc_candle_6h_closed&quot;: 109169.3, &quot;ROC_9D_M_1&quot;: 0.4197530864197496, &quot;RSI_NOW_M_BELOW_AVG&quot;: false, &quot;btc_avg_7d_mark&quot;: 111494.8645710022, &quot;timestamp&quot;: &quot;2025-10-31T12:18:15.325839&quot;, &quot;price_difference_7d_ago&quot;: -8.069620253164558, &quot;btc_candle_3h_closed&quot;: 109656.4, &quot;rsi_btc&quot;: 45.95179206788483, &quot;side&quot;: &quot;Sell&quot;, &quot;percentiles_5_below&quot;: 0.42909647607658147, &quot;btc_candle_7d_closed&quot;: 110618.8, &quot;market_count_30m&quot;: 101, &quot;ROC_9D_M_1_BELOW_MIN&quot;: false, &quot;MACD_SIGNAL_LINE_M_5&quot;: 0.001162, &quot;price_1d_ago&quot;: 0.4217, &quot;ROC_CURVED_HOUR_POSITIVE&quot;: false, &quot;ROC_9D_M_BELOW_MIN&quot;: false, &quot;MACD_DAY_CURVED&quot;: false, &quot;MACD_SIGNAL_LINE_M_1&quot;: 0.000531, &quot;price_difference_1d_ago&quot;: -3.5570310647379686, &quot;track_candle_down_count&quot;: 214.0, &quot;price_diff_now_1d&quot;: 0.40359999895095827, &quot;RSI_AVG_30D_1MIN&quot;: 25.966590346661647, &quot;price_diff_change_10min_1&quot;: 0.012288, &quot;price_7d_ago&quot;: 0.4424, &quot;btc_candle_3d_closed&quot;: 109056.2, &quot;btc_price_low_hit&quot;: false, &quot;candle_4h.closed&quot;: 0.3971, &quot;candle_4d.closed&quot;: 0.426, &quot;percentiles_50&quot;: 0.705925970927869, &quot;candle_2d.closed&quot;: 0.3859, &quot;RSI_NOW&quot;: 33.41832711913045, &quot;tendancies_pct_down&quot;: 718.8275862068965, &quot;RSI_NOW_M_1&quot;: 66.94240778350334, &quot;ROC_9D_H_BELOW_MIN&quot;: false, &quot;RSI_NOW_H_BELOW_MIN&quot;: false, &quot;MACD_M_5_BELOW_MIN&quot;: false, &quot;RSI_CURVED_H&quot;: false, &quot;MACD_1H_BELOW_AVG&quot;: false, &quot;zoom_8d_price&quot;: 0.44107422710498545, &quot;btc_candle_6d_closed&quot;: 111187.8, &quot;tendancies_pct_up&quot;: 669.3103448275862, &quot;track_candle_up_avg&quot;: 1.4831460674157304, &quot;MACD_M_1_BELOW_AVG&quot;: false, &quot;volume_bybit_90d&quot;: 51006848.2471527, &quot;price_now&quot;: 0.4068, &quot;candle_5d.closed&quot;: 0.4477, &quot;roc_9d&quot;: -2.958721068957282, &quot;price_diff_change_10min&quot;: 0.015938, &quot;candle_5h.closed&quot;: 0.3962, &quot;btc_candle_2d_closed&quot;: 106225.0, &quot;macd_btc&quot;: -1030.854614, &quot;btc_candle_2h_closed&quot;: 109409.2, &quot;RSI_NOW_M_1_BELOW_MIN&quot;: false, &quot;macd&quot;: -0.051564, &quot;macd_sline&quot;: -0.057685, &quot;RSI_CURVED&quot;: false, &quot;ROC_AVG_30D_1MIN&quot;: -0.30851523878418874, &quot;btc_price_now&quot;: 110152.6, &quot;percentiles_25_below&quot;: 0.5688568147775508, &quot;RSI_NOW_M_BELOW_MIN&quot;: false, &quot;candle_6h.closed&quot;: 0.3981, &quot;ROC_9D_M&quot;: 1.7767767767767673, &quot;high_supply_vs_demand&quot;: 44.41676158808684, &quot;RSI_AVG_30D_5MIN&quot;: 26.409722497313652, &quot;macd_btc_sline&quot;: -1122.959361, &quot;ROC_9D_M_1_BELOW_AVG&quot;: false, &quot;ROC_CURVED_NOW&quot;: false, &quot;ROC_9D_M_BELOW_AVG&quot;: false, &quot;btc_candle_5h_closed&quot;: 109154.8, &quot;btc_candle_5d_closed&quot;: 113777.3, &quot;volume_90d&quot;: 193669990.9976871, &quot;btc_candle_1d_closed&quot;: 108223.0, &quot;btc_price_min_7d&quot;: 104565.0, &quot;symbol&quot;: &quot;OPUSDT&quot;, &quot;candle_2h.closed&quot;: 0.3989, &quot;candle_6d.closed&quot;: 0.4393, &quot;MACD_1H_SIGNAL_LINE&quot;: -0.00626, &quot;volume_bybit_now&quot;: &quot;34246475.8006&quot;, &quot;ROC_9D_H&quot;: 1.2951432129514329, &quot;btc_candle_1h_closed&quot;: 110090.0, &quot;ROC_CURVED_HOUR_NEGATIVE&quot;: false}, &quot;historical_sample&quot;: {&quot;timestamp_updated&quot;: &quot;2025-10-31T12:22:09.108254&quot;, &quot;side&quot;: &quot;Sell&quot;, &quot;outcome_02&quot;: &quot;win&quot;, &quot;percentage_difference&quot;: -21.107871720116613, &quot;macd_60min&quot;: -0.005388, &quot;MACD_1H_SIGNAL_LINE&quot;: -0.00686, &quot;RSI_NOW&quot;: 31.704581441578682, &quot;RSI_NOW_H&quot;: 40.23476913485378, &quot;RSI_NOW_M&quot;: 47.68294416424075, &quot;high_supply_vs_demand&quot;: 47.45316556186655, &quot;btc_candle_1h_closed&quot;: 109555.0, &quot;candle_1h.closed&quot;: 0.3989, &quot;market_count_now&quot;: 104, &quot;market_count_15m&quot;: 114, &quot;market_count_30m&quot;: 105, &quot;btc_price_difference_max_7d&quot;: -2.498783110061292, &quot;btc_price_difference_min_7d&quot;: 4.776167933821066}, &quot;web_search_summary&quot;: {&quot;catalysts&quot;: [&quot;OP token unlock around Oct 31 (~31.34M OP, ~1.7% of supply) may add supply pressure&quot;, &quot;Some technical pieces suggest MACD histogram turning positive and RSI recovery from oversold; a close above ~$0.45 seen as bullish trigger&quot;, &quot;General market breadth mixed lately but improving intraday; BTC steady to slightly up&quot;], &quot;sentiment&quot;: &quot;mixed-to-cautious: rebound attempts vs. unlock-driven supply&quot;}, &quot;price_now&quot;: {&quot;bybit_bid&quot;: 0.4069, &quot;bybit_ask&quot;: 0.4072}}&#39;, &#39;instruction&#39;: &#39;Using the historical dataset, latest KPIs, live price and web news, decide if conditions favor a long (Buy OPUSDT) or short (Sell OPUSDT) with 2% TP and 1% SL. Pay attention to: market_count_now/15m/30m, RSI, MACD vs signal (percentage_difference), ROC, BTC candles and percent changes, high_supply_vs_demand, cmc_rank, price_difference_1d_ago/7d, and both OP and BTC candles. Return concise reasoning and a side.&#39;}`<br>{&quot;task&quot;: &quot;Using the historical dataset, latest KPIs, live price and web news, decide if conditions favor a long (Buy OPUSDT) or short (Sell OPUSDT) with 2% TP and 1% SL. Pay attention to: market_count_now/15m/30m, RSI, MACD vs signal (percentage_difference), ROC, BTC candles and percent changes, high_supply_vs_demand, cmc_rank, price_difference_1d_ago/7d, and both OP and BTC candles. Return concise reasoning and a side.&quot;, &quot;today&quot;: &quot;October 31, 2025&quot;}<br><br>Invoking: `re_assess_based_on_all_gathered_facts` with `{&#39;instruction&#39;: &#39;Re-assess the final trade decision for OPUSDT with 2% take profit and 1% stop loss using all gathered facts. Consider breadth (market_count_now/15m/30m), percentiles, ROC, MACD, RSI, BTC and OP candles, cmc_rank, price differences, high_supply_vs_demand (&gt;0 buyers &gt; sellers), and the token unlock catalyst from web search. Output the final side (long or short) and brief rationale.&#39;, &#39;text&#39;: &#39;Latest dataset highlights: market_count_now 178 (stronger breadth) vs 15m 154 and 30m 101 (improving breadth). OP last price ~0.4069/0.4072. RSI_NOW ~33 (oversold-ish), RSI_NOW_H ~50.7, RSI_NOW_M ~67.9 (short-term strength). MACD_1H -0.0041 vs signal -0.00626 (MACD above signal -&gt; bullish inflection on 1H). ROC_9D -2.96 (weak), but ROC_9D_M +1.78 (improving vs mid). High_supply_vs_demand 44.4% (sellers &gt; buyers). BTC stable/up with 1h candle 110090, RSI BTC ~46, BTC MACD improving; BTC 7d diff min +5.34% and max -1.97% suggest recent rebound. OP candles: 7h:0.3978, 6h:0.3981, 5h:0.3962, 4h:0.3971, 3h:0.3982, 2h:0.3989, 1h:0.4039 → intraday bounce. price_difference_1d_ago -3.56% (down 1d), price_difference_7d_ago -8.07% (down 7d). cmc_rank ~81 (mid-cap). Web: OP token unlock ~31.34M on Oct 31 (~1.7% supply) → potential near-term supply overhang; some outlets mention RSI recovery and MACD turning positive if &gt;$0.45 break. Risk framing: 2% TP, 1% SL. For a long: entry 0.407 -&gt; TP ~0.415, SL ~0.403; bounce may achieve 2% if momentum persists; but supply/demand shows sellers dominate and unlock risk. For a short: entry 0.407 -&gt; TP ~0.399, SL ~0.411; against improving breadth and 1H MACD cross. Final trade should weigh short-term momentum vs unlock supply pressure.&#39;}`<br>{&quot;message&quot;: &quot;Latest dataset highlights: market_count_now 178 (stronger breadth) vs 15m 154 and 30m 101 (improving breadth). OP last price ~0.4069/0.4072. RSI_NOW ~33 (oversold-ish), RSI_NOW_H ~50.7, RSI_NOW_M ~67.9 (short-term strength). MACD_1H -0.0041 vs signal -0.00626 (MACD above signal -&gt; bullish inflection on 1H). ROC_9D -2.96 (weak), but ROC_9D_M +1.78 (improving vs mid). High_supply_vs_demand 44.4% (sellers &gt; buyers). BTC stable/up with 1h candle 110090, RSI BTC ~46, BTC MACD improving; BTC 7d diff min +5.34% and max -1.97% suggest recent rebound. OP candles: 7h:0.3978, 6h:0.3981, 5h:0.3962, 4h:0.3971, 3h:0.3982, 2h:0.3989, 1h:0.4039 → intraday bounce. price_difference_1d_ago -3.56% (down 1d), price_difference_7d_ago -8.07% (down 7d). cmc_rank ~81 (mid-cap). Web: OP token unlock ~31.34M on Oct 31 (~1.7% supply) → potential near-term supply overhang; some outlets mention RSI recovery and MACD turning positive if &gt;$0.45 break. Risk framing: 2% TP, 1% SL. For a long: entry 0.407 -&gt; TP ~0.415, SL ~0.403; bounce may achieve 2% if momentum persists; but supply/demand shows sellers dominate and unlock risk. For a short: entry 0.407 -&gt; TP ~0.399, SL ~0.411; against improving breadth and 1H MACD cross. Final trade should weigh short-term momentum vs unlock supply pressure.&quot;, &quot;decision&quot;: &quot;&quot;}[{&#39;type&#39;: &#39;text&#39;, &#39;text&#39;: &#39;{\n  &quot;message&quot;: &quot;OPUSDT shows an intraday momentum turn up: 1h MACD &gt; signal (bullish inflection), RSI on minute/hour frames is strong (M ~68, H ~51), and market breadth is improving (market_count_now 178 &gt; 15m 154 &gt; 30m 101). Price has bounced across the past hours (7h→1h: 0.3978 → 0.4039), with BTC stable/up and RSI ~46. Headwinds: broader trend remains weak (ROC_9D negative, 1D/7D drawdowns), high_supply_vs_demand is sub-50% (~44% → sellers still slightly dominant), and a token unlock (~31.3M OP) adds supply risk. With a 2% TP / 1% SL, the short-term breadth + 1h momentum favors a quick long scalp over a short (which risks a squeeze). Trade plan: enter ~0.4069, TP ~0.415 (+~2%), SL ~0.403 (−~1%). Invalidate if BTC weakens materially or breadth reverses (e.g., market_count_now drops sharply) or OP loses 0.403 quickly.&quot;,\n  &quot;decision&quot;: &quot;long&quot;\n}&#39;</pre><p>What’s nice about OpenAI is that you can easily trace your conversation to weight your token usage and fine tune your agent accordingly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IT1ySM3a-nKr-6-KQiAXcA.png" /></figure><p>my conversation consumed about 50k tokens. You can see the tools that were called togerher with reasoning level:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MERDynTaPz9IipixHVRn7g.png" /></figure><p>Okay, this completes the walkthrough on how we leverage Agentic AI in the cryptocurrency space.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73784c07756e" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/leveraging-agentic-ai-in-the-crypto-trading-sector-73784c07756e">Leveraging Agentic AI in the Crypto trading sector</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elastic in the age of GenAI]]></title>
            <link>https://medium.com/@mickey.lubs/elastic-in-the-age-of-genai-a24e170c0cef?source=rss-cf59434f0bce------2</link>
            <guid isPermaLink="false">https://medium.com/p/a24e170c0cef</guid>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[semantic-search]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[BigM]]></dc:creator>
            <pubDate>Thu, 21 Nov 2024 19:28:15 GMT</pubDate>
            <atom:updated>2024-12-01T19:32:40.861Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YiAmZPPY5ewydTS_0TnxUQ.png" /></figure><p><a href="https://www.elastic.co/">Elastic</a> saw where the needle was turning and really capitalized on it, being a first class search-engine citizen. GenAI significantly shook the industry and those who will survive would not fight it but embrace it. With the arrival of capabilities such as semantic search with vectors DBs, <a href="https://en.wikipedia.org/wiki/Inverted_index">full-text search</a> for which Elastic distiguised itself was threaten and with time would become less relevant vs emerging new capability in this new AI revolution.</p><p>So <a href="https://www.elastic.co/">Elastic</a> made certain that going forward, <a href="https://en.wikipedia.org/wiki/Generative_artificial_intelligence">AI</a> would be at the heart of its tech. This gave birth to <a href="https://www.elastic.co/what-is/vector-database">Elasticsearch as a vector DB</a>, storing embeddings for ingest and queries which enabled <a href="https://en.wikipedia.org/wiki/Semantic_search">semantic search</a> 🎉🎉</p><p>However, the pace at which <a href="https://en.wikipedia.org/wiki/Generative_artificial_intelligence">GenAI</a> disrupted the IT sector required <a href="https://www.elastic.co/">Elastic</a> to keep the foot on the gas so came <a href="https://www.elastic.co/blog/introducing-elastic-ai-assistant">ElasticAI assistant</a>. Basically a chatbot interface built right in kibana, connected to any <a href="https://en.wikipedia.org/wiki/Large_language_model">llm</a> of choice being proprietory (chatgpt) or self hosted open source (llama) which we would interact with within kibana but within restricted space only on SIEM and observability. With time, data proved that the world was starting to turn more and more toward the use of chatbots with many use cases coming out of it. So <a href="https://www.elastic.co/">Elastic</a> released “<a href="https://www.elastic.co/guide/en/kibana/current/playground.html">playground</a>” (in technical preview as of today 21/11/2024), a capability to setup/configure a chatbot within kibana, connect it to an <a href="https://en.wikipedia.org/wiki/Large_language_model">llm</a> and as a context or <a href="https://en.wikipedia.org/wiki/Retrieval-augmented_generation">RAG</a> 👉🏿 connect to any data sources (indices) within elastic. This flexibility is massive as it means whatever is indexed into your elastic cluster can be used in a GenAI framework for any use case of choice. Over and above that, with a single click you get the entire python and <a href="https://www.langchain.com/">langchain</a> source code to implement this as an external application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cbfnDlkf9Yl8wSeVmKk22w.png" /></figure><blockquote><strong>Quick look at this capability</strong></blockquote><p><strong>Setup your connector (LLM model):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eC_PQposYtGFBEynUnZjww.png" /></figure><p><strong>Connect to a datastore/index on elastic (RAG):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KtEAHoSY5jZGP7-i9Nx1QA.png" /></figure><p>We’re pointing to index called <strong><em>noha</em></strong>, which we created with following content just for quick show-case:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*pTDGphH2blOq9b8N6jWKeA.png" /></figure><p>Now, let use chatbot which the llm model (chatgpt) has no idea who this person named <strong><em>micka</em></strong> is and what he does but with RAG, we get the right answer 😊</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JWWAJTZ7yMFB64aSq363FQ.png" /></figure><p>Now, let store a wrong information into our datastore/index on elastic and ask the chatbot for the right answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*nSdhhFQ48HopmbOd87RKPQ.png" /><figcaption>wrong information stored</figcaption></figure><p>Query chatbot which is a chain of elastic datastore/index with LLm model (chatgpt):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7clOTLoRfUXJgguW120z2w.png" /></figure><p>So, it did retrieve the info from our datastore but LLM fact checked it as not being the most relevant answer, not that dumb after all 😊</p><p>So yes, i’ve just touched on the surface of these capabilities but i’m glad at the trajectory <a href="https://www.elastic.co/">Elastic</a> is goung with GenAI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a24e170c0cef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Machine learning for Financial market predictions]]></title>
            <link>https://medium.com/@mickey.lubs/using-machine-learning-for-financial-market-predictions-1d7867339420?source=rss-cf59434f0bce------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d7867339420</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificalintelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <dc:creator><![CDATA[BigM]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 12:39:01 GMT</pubDate>
            <atom:updated>2024-06-30T13:01:55.863Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>The use case</strong></blockquote><p>We are in the financial trading market, our aim is to make profits in 2 directions.</p><ul><li>by buying stocks, assets, currencies <strong>low</strong> and selling high (<strong>long</strong>)</li><li>by buying stocks, assets, currencies <strong>high</strong> and have it sold low (<strong>short</strong>)</li></ul><p>To achieve this, we will <strong><em>profile</em></strong> our trading decisions/patterns, which is based on a range of technical analysis we put together. We will refer to them as <strong><em>features</em></strong>.</p><p>We have setup a system that stores every decisions/trades we have ever made together with the features used to make these trades. This workflow then records/stores <strong><em>profitable</em></strong> trades vs <strong><em>lost</em></strong> trades.</p><p>We have to build a Machine Learning algorithm which will predict good trades vs bad trades, wins vs losses. To do that, we will use a <strong>supervised machine learning</strong> method and have settled on SVM model classifier (Support Vector Machine). The main goal of SVM is to find the optimal hyperplane that maximizes the margin between different classes in the dataset. We will use <strong>Support Vector Classification (SVC) </strong>which is used for classification tasks 👉🏾<a href="https://scikit-learn.org/stable/modules/svm.html">https://scikit-learn.org/stable/modules/svm.html</a></p><p>The infrastructure and tech involved here are:</p><ul><li><strong>Elasticsearch</strong> as Data store, NoSQL Database and analytical platform</li><li><strong>Kafka</strong> as the data streaming layer doing end to end data movement</li><li><strong>Python</strong> as the backend core system that implements all the technical analysis, machine learning and it’s connected to all required endpoint systems.</li><li>Infrastucture is <strong>dockerized</strong>, microservices is king!</li></ul><p>Good! with this out of the way, let look look at the workflow for the ML job:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*77xq4j_EwhqPugbHgMId5Q.jpeg" /><figcaption>Machine Learning workflow</figcaption></figure><p>Let explore this, block by block. In my github <a href="https://github.com/mickalubs/machinelearning.git">repo</a>, you will have access to the techical details of the code. I will keep the info below as high level as i can:</p><blockquote><strong>Data Collection</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D3uvz7SHrdFEDyV8RWRPQA.jpeg" /></figure><blockquote><strong>Exploration and Data wrangling</strong></blockquote><pre><br>+================+=======+==========+==============+================+=============+================+================+==========+==============================+=============+===============+=============+=============+=============+=============+=============+=============+=============+=============+=============+==============+==============+==================+============+============+==============+================+=================+===================+===================+========================+===========================+==================+==================+==================+=========+===========+========================+=======================+======================+=======================+=======================+=======================+======================+=======================+===============+===================+=======================+======================+=======+=====================+=====================+============+=========================+=========================+==========================+==========================+================+=======+====================+====================+============+==============+============+=======+========+=============+=====================+===================+=======================+=========================+=====================+=======================+====================+==================+====================+====================+=====================+======================+<br>| symbol.keyword | ABOVE | ABOVE_1H | ABOVE_1H_BIG | ABOVE_1H_STAMP | btc_24h_now | BUY_H_NEGATIVE | BUY_H_POSITIVE | cmc_rank |          condition           | eth_24h_now | EXTREME_ABOVE | INDICATOR_1 | INDICATOR_2 | INDICATOR_3 | INDICATOR_4 | INDICATOR_5 | INDICATOR_6 | INDICATOR_7 | INDICATOR_8 | INDICATOR_9 | INDICATOR_10 | INDICATOR_11 | JUST_CROSS_ABOVE |    macd    | macd_sline |   macd_btc   | macd_btc_sline | MACD_DAY_CURVED | MACD_DAY_NEGATIVE | MACD_DAY_POSITIVE | MACD_DAY_POSITIVE_BY_2 | MACD_DAY_POSITIVE_EXTREME | market_count_15m | market_count_30m | market_count_now | outcome |  pct.24h  |     pct.24h_8d.avg     |     percentiles_1     |    percentiles_5     |    percentiles_25     |    percentiles_50     |    percentiles_75     |    percentiles_95    |    percentiles_99     |      pnl      | price_diff_change | price_diff_change_10h | price_diff_change_1d |  ROC  |       roc_9d        |     roc_9d_btc      | ROC_CURVED | ROC_CURVED_DAY_NEGATIVE | ROC_CURVED_DAY_POSITIVE | ROC_CURVED_HOUR_NEGATIVE | ROC_CURVED_HOUR_POSITIVE | ROC_CURVED_NOW | ROC_H |        rsi         |      rsi_btc       | RSI_CURVED | RSI_CURVED_H | RSI_DOWN_H | RSI_H | RSI_UP | STILL_ABOVE | tendancies_pct_down | tendancies_pct_up | track_candle_down_avg | track_candle_down_count | track_candle_up_avg | track_candle_up_count |  volume_bybit_90d  | volume_bybit_now |   volume.90d.avg   |     volume.now     | WHOLE_MARKET_CURVED |        worked        |<br>+================+=======+==========+==============+================+=============+================+================+==========+==============================+=============+===============+=============+=============+=============+=============+=============+=============+=============+=============+=============+==============+==============+==================+============+============+==============+================+=================+===================+===================+========================+===========================+==================+==================+==================+=========+===========+========================+=======================+======================+=======================+=======================+=======================+======================+=======================+===============+===================+=======================+======================+=======+=====================+=====================+============+=========================+=========================+==========================+==========================+================+=======+====================+====================+============+==============+============+=======+========+=============+=====================+===================+=======================+=========================+=====================+=======================+====================+==================+====================+====================+=====================+======================+<br>| ANKRUSDT       | False | False    | False        | False          |    0.006116 | False          | False          |      172 | version_shaile_v3_price_diff |   -0.001055 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | True             |   -0.00318 |  -0.003268 | -1555.638308 |    -956.853805 | False           | False             | False             | False                  | False                     |              280 |              301 |              270 | win     | 0.020302  |  0.0009883050105959545 |  0.030090350097666186 |  0.03656476018844949 |   0.04621346487106849 |  0.054600068426900066 |   0.05931775291760762 |  0.06418385100194385 |   0.06608552858233452 |   33.02346956 |          0.111969 |              0.000689 |             0.000689 | False | -0.8455997494519196 |  -7.161542754592265 | False      | False                   | False                   | False                    | False                    | True           | False | 28.363047001620743 | 20.369031044894854 | False      | True         | False      | False | False  | False       |   920.2962962962963 | 564.1428571428571 |     25.69747899159664 |                  3058.0 |                27.0 |                1863.0 |  4632267.786590466 |     1744930.2658 |  42508411.77358462 |  13088691.88153213 | True                | -0.35626486743094166 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| CROUSDT        | False | False    | False        | False          |    0.009994 | False          | False          |       37 | version_shaile_v3_price_diff |    0.005041 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -0.006595 |  -0.006491 | -1538.000701 |    -953.326284 | False           | False             | False             | False                  | False                     |              301 |              304 |              313 | win     | -0.000443 |  -0.003905353758687357 |   0.09200715769082309 |  0.10114101577770748 |   0.12726515596333138 |   0.14349797466920153 |    0.1499828190264516 |   0.1541803815164486 |   0.15616130538284778 |     9.8318995 |          0.046757 |              0.010097 |             0.019034 | False |  -4.439029558215912 |  -6.828941014713585 | True       | False                   | False                   | True                     | False                    | True           | False | 16.070553650171448 |  21.62522958383734 | False      | True         | False      | False | False  | False       |   926.4333333333333 |            494.04 |    24.870588235294118 |                  2114.0 |               20.25 |                 972.0 | 1677807.5459704415 |     1333082.2150 | 16948759.910110444 |  11541252.34566485 | True                |  -0.7075739490625619 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| IDUSDT         | False | False    | False        | False          |    0.006897 | False          | False          |      179 | version_shaile_v3_price_diff |    0.003098 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |   -0.06991 |  -0.066552 | -1545.674775 |    -954.861099 | False           | False             | False             | False                  | False                     |              347 |              376 |              307 | win     | -0.01113  |  -0.012132632554915913 |   0.12272965576913622 |  0.13206828146269825 |    0.6784868277607953 |     0.869587529532573 |    0.9362443534069156 |   1.0828765707778023 |    1.2300749222315275 |   33.30301167 |          0.101241 |              0.008151 |             0.033291 | False |  -9.577608142493643 |  -6.973655114109012 | False      | False                   | False                   | False                    | False                    | False          | False | 12.062420919443284 | 20.943851499733412 | False      | True         | False      | False | False  | False       |   922.6666666666666 | 472.7037037037037 |    26.376237623762375 |                  2664.0 |  29.571428571428573 |                1449.0 |   7115425.72954121 |     2086709.9751 |  41007931.36931277 |  15139683.84161384 | True                | 0.046085603617050275 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| BLURUSDT       | False | False    | False        | False          |    0.006897 | False          | False          |      135 | version_shaile_v3_price_diff |    0.003098 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -0.038806 |  -0.035793 | -1545.674775 |    -954.861099 | False           | False             | False             | False                  | False                     |              347 |              376 |              307 | win     | -0.053958 |  -0.014772897954267568 |   0.24905266106128693 |   0.3246064469386573 |    0.4087421112920247 |    0.5261055438929663 |    0.5538502855399923 |   0.6024901886755271 |    0.6077356629371643 |   30.54126075 |          0.046248 |              0.003847 |             0.051368 | False | -13.714902807775376 |  -6.973655114109012 | False      | False                   | False                   | False                    | False                    | True           | False |  12.75579809004094 | 20.943851499733412 | False      | True         | False      | False | False  | False       |   938.8387096774194 |            466.88 |     27.19148936170213 |                  3834.0 |  31.328767123287673 |                2287.0 | 16726014.304468343 |    21292603.3995 |  56210001.62525901 |  48136507.35368992 | True                |  -1.5084024755345595 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| MINAUSDT       | False | False    | False        | False          |    0.009452 | False          | False          |      108 | version_shaile_v3_price_diff |    0.004731 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |   -0.06922 |  -0.065271 | -1538.000701 |    -953.326284 | False           | False             | False             | False                  | False                     |              301 |              304 |              313 | win     | 0.002212  |  -0.010154569056265144 |    0.5464650551478067 |   0.6670072451456027 |     0.833758438621306 |    1.0502004596499794 |    1.1052822881610622 |   1.2460356706664677 |    1.2648755717190194 |   32.04161222 |          0.092187 |                  -0.0 |             0.008788 | False |  -9.218436873747503 |  -6.828941014713585 | False      | False                   | False                   | False                    | False                    | True           | False | 21.573261309925712 |  21.62522958383734 | False      | True         | False      | False | False  | False       |               829.6 | 615.2692307692307 |            27.0078125 |                  3457.0 |  27.356164383561644 |                1997.0 |  6249031.768253536 |     2193317.8707 | 30215678.993003327 |  16369363.05515529 | True                |  -1.5814786547651654 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| NEARUSDT       | False | False    | False        | False          |    0.009452 | False          | False          |       17 | version_shaile_v3_price_diff |    0.004731 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -0.467703 |  -0.509626 | -1550.094148 |    -955.744973 | False           | False             | False             | False                  | False                     |              301 |              304 |              313 | win     | -0.033596 |   0.008607304292115694 |     5.003370551518032 |    5.353826793334769 |    6.6240151406433485 |     6.968971138237527 |    7.2177476642835545 |    7.738457647070182 |     8.087959803771971 |    31.1559621 |          0.070789 |              0.000423 |             0.000423 | False |   4.102961099283919 |  -7.056993587149629 | False      | False                   | False                   | True                     | False                    | True           | False | 32.876254180602004 | 20.546054005940093 | False      | True         | False      | False | False  | False       |               857.4 |             580.5 |     31.46153846153846 |                  4090.0 |                34.4 |                2580.0 | 146792719.03448808 |    91097278.4626 |  463796392.5513367 | 252604070.48129955 | True                |  -0.1961030442636087 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| ACHUSDT        | False | False    | False        | False          |    0.012329 | False          | False          |      254 | version_shaile_v3_price_diff |    0.006809 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | True             |  -0.001626 |  -0.001674 | -1571.576769 |    -960.041497 | False           | False             | False             | False                  | False                     |              291 |              281 |              322 | win     | -0.002932 |   0.006652190787402842 |  0.021993802842497825 | 0.023807205867024873 |   0.02958841611611462 |  0.033634032755652736 |   0.03535255360305138 |  0.03972991898925596 |  0.041359093442559246 |     0.4646241 |          0.064134 |              0.002102 |             0.002102 | False |   2.566411526339496 |  -7.462102807182747 | True       | False                   | False                   | True                     | False                    | True           | False | 37.359840954274375 | 20.007636841544425 | False      | True         | False      | False | False  | False       |   847.7241379310345 |             656.8 |     28.23728813559322 |                  3332.0 |  28.634146341463413 |                2348.0 |  4430493.903842219 |     1102535.2714 | 20297051.502753872 |   6105236.28434329 | True                |  -0.5649634386044369 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| LDOUSDT        | False | False    | False        | False          |    0.009328 | False          | False          |       43 | version_shaile_v3_price_diff |    0.004788 | True          | False       | False       | False       | False       | True        | False       | False       | True        | True        | True         | True         | False            |   0.045503 |   0.019181 | -1568.266228 |    -959.379389 | False           | False             | False             | False                  | False                     |              272 |              248 |              279 | lost    | -0.042628 |   0.020656342240896537 |    1.6499617307980856 |   1.8340711585964475 |    2.1332831064034448 |    2.5739960639444326 |     2.776663541296995 |   2.9504337594327263 |     2.988297499724797 |  -182.9796285 |          0.119881 |              0.001009 |             0.064582 | True  |  15.994962216624685 |  -7.399674167630666 | False      | False                   | False                   | False                    | False                    | False          | False |  59.46456692913388 |  20.08164211164292 | False      | True         | False      | False | False  | True        |   977.2857142857143 |  515.074074074074 |      35.7962962962963 |                  5799.0 |   35.10569105691057 |                4318.0 |  39760393.19712864 |    46549486.3597 | 125274128.17378177 | 158800632.15076038 | True                |  0.38524042782220214 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| SSVUSDT        | False | False    | False        | False          |    0.006116 | False          | False          |      149 | version_shaile_v3_price_diff |   -0.001052 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -1.261479 |  -1.129392 | -1555.638308 |    -956.853805 | False           | False             | False             | False                  | False                     |              280 |              301 |              270 | win     | -0.027315 | -0.0017841929165068105 |    34.986547489166256 |   36.547742970784505 |     43.15486533938835 |     48.98259278050176 |    52.212857182077016 |    59.46206950730543 |    60.235053209577295 |       33.4352 |          0.072317 |              0.004605 |             0.014618 | False | -3.1334973455910964 |  -7.161542754592265 | True       | False                   | False                   | False                    | False                    | True           | False | 48.390529396115994 | 20.369031044894854 | False      | True         | False      | False | False  | False       |   778.7096774193549 | 618.6666666666666 |     32.20979020979021 |                  4606.0 |  30.431192660550458 |                3317.0 |  7816321.593369123 |     3975539.0232 |  40362501.21390498 |  19658889.16308008 | True                | -0.30442970549012305 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| GMXUSDT        | False | False    | False        | False          |    0.013042 | False          | False          |      188 | version_shaile_v3_price_diff |    0.009254 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -1.803501 |  -1.358441 | -1562.674205 |    -958.260985 | False           | False             | False             | False                  | False                     |              289 |              279 |              322 | win     | 0.00193   |  -0.004953366020444051 |    24.321287578401115 |   25.824410642114852 |    31.153284465695403 |     39.52978744943668 |     41.14679097851282 |   45.463411238642784 |     45.91004773532643 |     31.825395 |          0.057479 |              0.002779 |             0.002779 | False |  -6.654676258992797 |  -7.294222417447516 | True       | False                   | False                   | True                     | False                    | True           | False |  20.63645130183224 |  20.20789983497167 | False      | True         | False      | False | False  | False       |   814.3793103448276 | 645.7407407407408 |    28.856060606060606 |                  3809.0 |   32.69230769230769 |                2975.0 |  7050217.094653019 |     3103330.8189 |  26307508.40868072 |  14421260.20126755 | True                | -0.27038020499378135 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| MKRUSDT        | False | False    | True         | True           |    0.005083 | False          | False          |       42 | rsi_h_logic                  |    0.020271 | False         | True        | False       | False       | False       | False       | False       | True        | False       | False       | False        | True         | False            | -93.245759 | -96.794972 | -1499.658218 |    -814.166487 | False           | True              | False             | False                  | False                     |              413 |              410 |              413 | lost    | 0.039471  |  -0.009889200316154352 |    2237.5192688802085 |   2427.3618392087437 |     2910.524022966337 |     3421.769582400741 |    3722.5962325252895 |   3906.1939059866477 |     3989.987985410749 |   -168.673725 |          0.081503 |              0.058851 |             0.081503 | False |  -6.049631672085276 | -7.9531014410129774 | False      | True                    | False                   | False                    | False                    | False          | True  | 50.930581282526234 |  24.13404332818763 | False      | False        | False      | True  | False  | False       |   902.6071428571429 |            623.88 |     24.92391304347826 |                  2293.0 |   30.09259259259259 |                1625.0 |  9558539.477321425 |    15799126.7592 |  90791340.04783471 |  87124205.21046358 | False               |   26.665825260229983 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| BLZUSDT        | False | False    | True         | True           |    -0.00089 | False          | False          |      370 | rsi_h_logic                  |    0.025928 | False         | True        | False       | False       | False       | False       | False       | True        | False       | False       | False        | True         | False            |  -0.010846 |  -0.010128 |   -1523.7095 |    -818.976743 | False           | False             | False             | False                  | False                     |              381 |              379 |              413 | lost    | 0.084475  |   -0.02098978338066717 |   0.23829835116863252 |  0.25240325008119857 |   0.36814478843042214 |   0.39835854149575156 |   0.42679939601899536 |  0.44595017069950693 |    0.4568695038046156 | -180.68601285 |           0.11936 |              0.062889 |             0.106674 | False | -14.166085136078166 |  -8.405433991703482 | False      | True                    | False                   | False                    | False                    | False          | True  |  42.26552984165652 |  22.09705141106592 | False      | False        | False      | True  | False  | False       |   844.3571428571429 | 619.4642857142857 |    29.521008403361346 |                  3513.0 |  26.481012658227847 |                2092.0 | 11709845.709366683 |     4296144.9985 | 13064167.601883933 |   4820447.00080279 | False               |  -0.7562255555211186 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| TRUUSDT        | False | False    | False        | False          |    0.009661 | False          | False          |      272 | version_shaile_v3_price_diff |    0.008657 | False         | False       | False       | False       | False       | False       | False       | True        | True        | True        | True         | False        | False            |  -0.009612 |  -0.003874 | -1573.555117 |    -960.437167 | False           | False             | False             | False                  | False                     |              348 |              331 |              342 | win     | 0.027945  |  -0.012782334488706562 |   0.09630380600690842 |  0.10448567944110743 |    0.1283188600908425 |   0.13677230622327424 |   0.15401621597074405 |  0.19183683370550475 |    0.2138910039194992 |   34.73246201 |          0.134581 |              0.005644 |             0.013837 | False | -12.615653913478376 |  -7.499409560457238 | False      | False                   | False                   | False                    | False                    | True           | False | 17.999601116872753 | 19.963671805777068 | False      | True         | False      | False | False  | False       |   753.0689655172414 | 667.1379310344828 |     39.36199095022624 |                  8699.0 |   36.37062937062937 |                5201.0 | 14184720.574773671 |     5357371.3203 |  35419539.28141818 |  22268202.78240295 | True                |   1.3523970735105841 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| GRTUSDT        | False | False    | False        | False          |    0.009661 | False          | False          |       44 | version_shaile_v3_price_diff |    0.008657 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -0.019273 |  -0.020063 | -1573.555117 |    -960.437167 | False           | False             | False             | False                  | False                     |              349 |              332 |              340 | win     | -4.5e-05  |   0.006751720608052903 |   0.21057809878885747 |  0.23296146223407266 |   0.29146343399397845 |    0.3314403418232606 |    0.3470474004199562 |   0.4004047182897111 |   0.41586579611807156 |   23.00869213 |          0.101111 |              0.001727 |             0.012413 | False |  2.4094694488630886 |  -7.499409560457238 | True       | False                   | False                   | True                     | False                    | True           | False | 31.118216384376083 | 19.963671805777068 | False      | True         | False      | False | False  | False       |   922.6206896551724 | 519.7777777777778 |            29.8046875 |                  3815.0 |   32.73684210526316 |                2488.0 | 12077859.829578035 |     5705533.6829 | 111151028.48637943 |  57767767.86739478 | True                |  -0.7597922798026104 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| YGGUSDT        | False | False    | False        | False          |    0.009661 | False          | False          |      236 | version_shaile_v3_price_diff |    0.008657 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -0.087564 |  -0.076121 | -1580.543151 |    -961.834774 | False           | False             | False             | False                  | False                     |              349 |              332 |              340 | win     | 0.02832   |   -0.01839224810152593 |    0.5970624546541109 |   0.7461855805314792 |     0.917264372492707 |    1.2272075660825512 |    1.3271345723856416 |   1.5089400733020866 |    1.6839907226562503 |   31.36302032 |          0.072201 |              0.003018 |             0.004063 | False | -17.996914013185574 |  -7.631186640571985 | False      | False                   | False                   | True                     | False                    | True           | False |  17.18213058419245 | 19.809910670324257 | False      | True         | False      | False | False  | False       |   850.4666666666667 | 534.3103448275862 |    31.380368098159508 |                  5115.0 |   35.10588235294118 |                2984.0 | 12113368.658443488 |     4435257.6691 |  87425640.53047995 |   45756294.9505498 | True                | -0.47856872019122587 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| CVXUSDT        | False | False    | True         | True           |     0.00014 | False          | False          |      176 | version_shaile_v3            |   -0.001341 | False         | True        | False       | False       | False       | True        | False       | True        | True        | True        | True         | True         | False            |    0.16993 |    0.14311 | -1579.673636 |    -961.660871 | False           | False             | True              | False                  | False                     |              202 |              216 |              195 | win     | 0.107697  | -0.0006946833119064225 |    2.0485920206705726 |   2.3763281654034345 |    2.7684619086129323 |    3.6179833447212566 |     3.834867274559084 |    4.195154886154028 |     4.244554763221741 |   54.64007175 |          0.224366 |              0.224366 |             0.224366 | False |   2.914663461538458 |  -7.614789720786019 | False      | False                   | False                   | False                    | False                    | False          | True  |   64.4544997486174 | 19.828913902505562 | False      | True         | False      | True  | False  | False       |   843.8928571428571 | 641.4444444444445 |    43.742138364779876 |                  6955.0 |               40.44 |                4044.0 | 10790236.615545375 |    20584631.9865 |   14479111.5763953 |  50173641.44355639 | True                |    0.866398947456708 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| HOTUSDT        | False | False    | False        | False          |    0.008641 | False          | False          |      169 | version_shaile_v3_price_diff |    0.003838 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -0.000148 |  -0.000144 | -1568.266228 |    -959.379389 | False           | False             | False             | False                  | False                     |              268 |              252 |              278 | win     | 0.004354  |  -0.002386733260989099 | 0.0017884371979744174 | 0.002044594613090791 | 0.0024350445065951755 | 0.0029808585339984885 | 0.0031693621725949078 | 0.003425372057302769 | 0.0034643050804152153 |    8.57129855 |          0.097503 |              0.005215 |             0.005215 | False | -3.9583333333333415 |  -7.399674167630666 | True       | False                   | False                   | True                     | False                    | True           | False | 30.602957906712163 |  20.08164211164292 | False      | True         | False      | False | False  | False       |   802.4642857142857 | 637.2413793103449 |    27.135135135135137 |                  3012.0 |   28.85135135135135 |                2135.0 | 2701950.3987483736 |     1164961.2565 | 15399483.770497348 |   8709421.12626453 | True                |   -0.717915628965085 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| EOSUSDT        | False | False    | False        | False          |    0.009387 | False          | False          |       79 | version_shaile_v3_price_diff |     0.00458 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -0.055573 |  -0.055264 | -1538.000701 |    -953.326284 | False           | False             | False             | False                  | False                     |              299 |              306 |              312 | win     | 0.001747  |  -0.007767670023163834 |    0.5641104537248611 |   0.6765841892466825 |    0.8159013573270537 |    0.9922805237419466 |    1.0766194076826083 |    1.108533418791303 |    1.1226136693954467 |   33.77259144 |          0.059475 |                  -0.0 |             0.011041 | False |  -6.766428106701361 |  -6.828941014713585 | False      | False                   | False                   | True                     | False                    | True           | False |  22.40204429301535 |  21.62522958383734 | False      | True         | False      | False | False  | False       |   791.9666666666667 | 637.6538461538462 |    22.469135802469136 |                  1820.0 |                25.2 |                1008.0 | 16861842.698110115 |     8429552.1232 | 138192343.24073723 |  79394920.39889139 | True                |  -0.9844998379985053 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| LPTUSDT        | False | False    | False        | False          |    0.009661 | False          | False          |      117 | version_shaile_v3_price_diff |    0.008657 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -1.147202 |  -0.609098 | -1573.555117 |    -960.437167 | False           | False             | False             | False                  | False                     |              349 |              332 |              340 | win     | 0.039468  |  -0.015840430663121893 |     11.21996193011602 |   12.025130799635493 |    15.774283410039452 |    17.004485673262028 |    18.700068578908798 |   22.471481596992128 |    23.922029504776003 |   33.08289075 |          0.112607 |              0.004973 |             0.004973 | False | -15.815097123186629 |  -7.499409560457238 | False      | False                   | False                   | True                     | False                    | True           | False | 13.159118385566842 | 19.963671805777068 | False      | True         | False      | False | False  | False       |   820.0666666666667 | 638.7692307692307 |    38.271186440677965 |                  6774.0 |  30.958677685950413 |                3746.0 |  16061058.31496171 |     6076196.4380 | 49162905.855082005 |  28325874.33105808 | True                |   0.6979291392387923 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| ARBUSDT        | False | False    | False        | False          |    0.009416 | False          | False          |       32 | version_shaile_v3_price_diff |    0.004794 | False         | False       | False       | False       | False       | True        | False       | False       | True        | True        | True         | False        | True             |   -0.06802 |  -0.068436 | -1538.000701 |    -953.326284 | False           | False             | False             | False                  | False                     |              301 |              304 |              313 | win     | 0.000243  |   -0.00384323283404827 |    0.7967837817192078 |   0.9317417366169766 |      1.13208120999498 |    1.4571882724116039 |    1.5432671270168452 |   1.6620786652323745 |     1.681457736492157 |   29.83275414 |           0.09161 |              0.006742 |             0.008353 | False | -4.3680838672102595 |  -6.828941014713585 | True       | False                   | False                   | True                     | False                    | True           | False | 25.678696901948257 |  21.62522958383734 | False      | True         | False      | False | False  | False       |               933.0 | 528.7777777777778 |                25.375 |                  2436.0 |  28.836363636363636 |                1586.0 |  59224267.99081595 |    31617404.5580 | 363949968.73767054 | 189973932.79894653 | True                |  -1.0700865117935363 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| ILVUSDT        | False | False    | False        | False          |    0.009654 | False          | False          |      178 | version_shaile_v3_price_diff |    0.008654 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -5.703051 |  -4.905101 | -1573.555117 |    -960.437167 | False           | False             | False             | False                  | False                     |              348 |              331 |              342 | win     | 0.026519  |   -0.01305262033555712 |     66.70938995361328 |    79.30789273664237 |     95.02119391706253 |    123.63215664994168 |    130.54560823364926 |   138.98057942708334 |    141.62556860351563 |    31.6989225 |          0.086112 |              0.007158 |              0.02551 | False | -11.915345319445358 |  -7.499409560457238 | False      | False                   | False                   | True                     | False                    | True           | False | 20.091889026329724 | 19.963671805777068 | False      | True         | False      | False | False  | False       |   831.7586206896551 | 586.0714285714286 |    27.317460317460316 |                  3442.0 |  31.041666666666668 |                2235.0 | 2978624.2973880614 |      982341.2212 | 15713732.116638226 |   6567421.02357256 | True                |  -1.1311312978575518 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| AUDIOUSDT      | False | False    | False        | False          |    0.009002 | False          | False          |      246 | version_shaile_v3_price_diff |    0.003838 | False         | False       | False       | False       | False       | True        | False       | False       | True        | True        | True         | False        | False            |  -0.008868 |  -0.008353 | -1568.266228 |    -959.379389 | False           | False             | False             | False                  | False                     |              268 |              252 |              278 | win     | -0.005867 |   -0.00215300955865169 |    0.1482060178319613 |  0.15593487519702634 |   0.18900313680395942 |     0.266284745176419 |    0.2806315842140266 |  0.30835879583768233 |   0.31162760443157617 |     30.713874 |          0.087669 |              0.001265 |             0.001265 | False |  -3.785488958990535 |  -7.399674167630666 | True       | False                   | False                   | True                     | False                    | True           | False |  31.96046128500825 |  20.08164211164292 | False      | True         | False      | False | False  | False       |   852.7666666666667 | 547.5357142857143 |     33.13793103448276 |                  4805.0 |   33.80487804878049 |                2772.0 |   6284194.65195247 |     3007386.5564 |  20012840.44799398 |    8175059.4837415 | True                | -0.31584964512468705 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| OPUSDT         | False | False    | False        | False          |    0.010257 | False          | False          |       47 | version_shaile_v3_price_diff |    0.009159 | False         | False       | False       | False       | False       | False       | False       | True        | True        | True        | True         | False        | False            |  -0.176243 |  -0.168042 | -1573.555117 |    -960.437167 | False           | False             | False             | False                  | False                     |              346 |              330 |              342 | win     | 0.006692  |  -0.008973857275652388 |    1.7730685725212094 |    2.055534533434863 |     2.518472018458295 |     3.008400948060333 |     3.249964742901343 |   3.6976985248294816 |     3.730077499290307 |   35.28342239 |           0.05957 |               0.00013 |             0.004622 | False |     -9.899762323034 |  -7.499409560457238 | False      | False                   | False                   | False                    | False                    | True           | False |  27.24909584086798 | 19.963671805777068 | False      | True         | False      | False | False  | False       |   839.8333333333334 | 561.4074074074074 |    28.188524590163933 |                  3439.0 |  28.419354838709676 |                1762.0 |  61611478.75215747 |    30123653.3352 |  278640556.8589913 | 159623282.92851216 | True                |  -1.2183403083747564 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| ZECUSDT        | False | False    | False        | False          |    -0.00052 | False          | False          |      167 | version_shaile_v3_price_diff |   -0.000731 | False         | False       | False       | False       | False       | False       | False       | False       | True        | True        | True         | False        | False            |  -1.359846 |  -1.195798 | -1590.825772 |    -963.891298 | False           | False             | False             | False                  | False                     |              215 |              202 |              198 | win     | -0.014028 |  -0.006254376619588521 |     19.78003396511078 |    20.88476899181783 |    23.559881572123174 |    27.289379233476886 |     28.20962854907626 |   30.622818542112704 |    31.005280917031424 |     24.511935 |          0.031414 |              0.006478 |             0.016932 | False |   -9.35052970981115 |   -7.82509149932531 | True       | False                   | False                   | True                     | False                    | True           | False | 15.761821366024492 | 19.587915670506405 | False      | True         | False      | False | False  | False       |   780.3666666666667 | 564.7333333333333 |     24.96938775510204 |                  2447.0 |  26.946428571428573 |                1509.0 | 2629948.1036170935 |     1383401.9929 |  51980472.19252256 |  28710539.98863802 | True                |  -0.4758974633660622 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| AAVEUSDT       | False | False    | False        | False          |    0.009654 | False          | False          |       62 | version_shaile_v3_price_diff |    0.008654 | False         | False       | False       | False       | False       | True        | False       | False       | True        | True        | True         | False        | False            |  -2.264512 |  -3.011973 | -1580.543151 |    -961.834774 | False           | False             | False             | False                  | False                     |              348 |              331 |              342 | lost    | -0.003855 |   0.014955698532543957 |     80.18977652036227 |    83.26574234484843 |     93.49385325113933 |    115.91560953359274 |    125.79733928516754 |    128.7239053058406 |     130.2497486368815 |  -183.2489962 |          0.160914 |              0.005693 |             0.011926 | True  |   6.462625073572692 |  -7.631186640571985 | False      | False                   | False                   | True                     | False                    | True           | False |  50.62317687616017 | 19.809910670324257 | False      | True         | False      | False | False  | False       |               883.0 | 528.7857142857143 |    26.394495412844037 |                  2877.0 |  26.194444444444443 |                1886.0 | 10338536.807841241 |    18342715.3654 |  98127589.89708096 | 110444669.91963568 | True                | -0.31871424393298575 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br>| CRVUSDT        | False | False    | True         | True           |    0.009413 | False          | False          |      154 | buy_hour_trois_v2            |    0.016575 | False         | False       | False       | False       | False       | False       | False       | False       | False       | False       | False        | True         | False            |  -0.030538 |  -0.030551 | -1695.598099 |   -1226.304031 | False           | True              | False             | False                  | False                     |              384 |              386 |              380 | win     | 0.003412  |   -0.01487279058809407 |    0.2901117910905318 |  0.33116200622648767 |   0.44362996930782644 |    0.6075663825559471 |    0.6277375423083194 |   0.6910488143072022 |    0.6958615827560425 |   34.16861636 |          0.039478 |              0.004062 |             0.018894 | False |   -9.53846153846155 |  -5.403869696106445 | False      | True                    | False                   | False                    | True                     | False          | False |  52.79755849440489 | 28.613964567515254 | False      | False        | False      | False | False  | False       |   807.1935483870968 | 548.2758620689655 |    33.593023255813954 |                  5778.0 |   37.06481481481482 |                4003.0 | 24806544.894151147 |    42537916.0066 |  77944695.96188244 | 107509234.50398685 | False               |  -1.2908312778224005 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+------------------------------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+<br><br></pre><blockquote><strong>Feature Engineering — observe how the categorical features (strings) and booleans are turned into numerical values.</strong></blockquote><pre><br>+================+=======+==========+==============+================+=============+================+================+==========+=============+===============+=============+=============+=============+=============+=============+=============+=============+=============+=============+==============+==============+==================+============+============+==============+================+=================+===================+===================+========================+===========================+==================+==================+==================+=========+===========+========================+=======================+======================+=======================+=======================+=======================+======================+=======================+===============+===================+=======================+======================+=======+=====================+=====================+============+=========================+=========================+==========================+==========================+================+=======+====================+====================+============+==============+============+=======+========+=============+=====================+===================+=======================+=========================+=====================+=======================+====================+==================+====================+====================+=====================+======================+=======================+=============================+========================================+<br>| symbol.keyword | ABOVE | ABOVE_1H | ABOVE_1H_BIG | ABOVE_1H_STAMP | btc_24h_now | BUY_H_NEGATIVE | BUY_H_POSITIVE | cmc_rank | eth_24h_now | EXTREME_ABOVE | INDICATOR_1 | INDICATOR_2 | INDICATOR_3 | INDICATOR_4 | INDICATOR_5 | INDICATOR_6 | INDICATOR_7 | INDICATOR_8 | INDICATOR_9 | INDICATOR_10 | INDICATOR_11 | JUST_CROSS_ABOVE |    macd    | macd_sline |   macd_btc   | macd_btc_sline | MACD_DAY_CURVED | MACD_DAY_NEGATIVE | MACD_DAY_POSITIVE | MACD_DAY_POSITIVE_BY_2 | MACD_DAY_POSITIVE_EXTREME | market_count_15m | market_count_30m | market_count_now | outcome |  pct.24h  |     pct.24h_8d.avg     |     percentiles_1     |    percentiles_5     |    percentiles_25     |    percentiles_50     |    percentiles_75     |    percentiles_95    |    percentiles_99     |      pnl      | price_diff_change | price_diff_change_10h | price_diff_change_1d |  ROC  |       roc_9d        |     roc_9d_btc      | ROC_CURVED | ROC_CURVED_DAY_NEGATIVE | ROC_CURVED_DAY_POSITIVE | ROC_CURVED_HOUR_NEGATIVE | ROC_CURVED_HOUR_POSITIVE | ROC_CURVED_NOW | ROC_H |        rsi         |      rsi_btc       | RSI_CURVED | RSI_CURVED_H | RSI_DOWN_H | RSI_H | RSI_UP | STILL_ABOVE | tendancies_pct_down | tendancies_pct_up | track_candle_down_avg | track_candle_down_count | track_candle_up_avg | track_candle_up_count |  volume_bybit_90d  | volume_bybit_now |   volume.90d.avg   |     volume.now     | WHOLE_MARKET_CURVED |        worked        | condition_rsi_h_logic | condition_version_shaile_v3 | condition_version_shaile_v3_price_diff |<br>+================+=======+==========+==============+================+=============+================+================+==========+=============+===============+=============+=============+=============+=============+=============+=============+=============+=============+=============+==============+==============+==================+============+============+==============+================+=================+===================+===================+========================+===========================+==================+==================+==================+=========+===========+========================+=======================+======================+=======================+=======================+=======================+======================+=======================+===============+===================+=======================+======================+=======+=====================+=====================+============+=========================+=========================+==========================+==========================+================+=======+====================+====================+============+==============+============+=======+========+=============+=====================+===================+=======================+=========================+=====================+=======================+====================+==================+====================+====================+=====================+======================+=======================+=============================+========================================+<br>|             37 |     0 |        0 |            0 |              0 |    0.006116 |              0 |              0 |      172 |   -0.001055 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                1 |   -0.00318 |  -0.003268 | -1555.638308 |    -956.853805 |               0 |                 0 |                 0 |                      0 |                         0 |              280 |              301 |              270 |       1 | 0.020302  |  0.0009883050105959545 |  0.030090350097666186 |  0.03656476018844949 |   0.04621346487106849 |  0.054600068426900066 |   0.05931775291760762 |  0.06418385100194385 |   0.06608552858233452 |   33.02346956 |          0.111969 |              0.000689 |             0.000689 | False | -0.8455997494519196 |  -7.161542754592265 |          0 |                       0 |                       0 |                        0 |                        0 |              1 |     0 | 28.363047001620743 | 20.369031044894854 |          0 |            1 |          0 |     0 |      0 |           0 |   920.2962962962963 | 564.1428571428571 |     25.69747899159664 |                  3058.0 |                27.0 |                1863.0 |  4632267.786590466 |     1744930.2658 |  42508411.77358462 |  13088691.88153213 |                   1 | -0.35626486743094166 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             52 |     0 |        0 |            0 |              0 |    0.009994 |              0 |              0 |       37 |    0.005041 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -0.006595 |  -0.006491 | -1538.000701 |    -953.326284 |               0 |                 0 |                 0 |                      0 |                         0 |              301 |              304 |              313 |       1 | -0.000443 |  -0.003905353758687357 |   0.09200715769082309 |  0.10114101577770748 |   0.12726515596333138 |   0.14349797466920153 |    0.1499828190264516 |   0.1541803815164486 |   0.15616130538284778 |     9.8318995 |          0.046757 |              0.010097 |             0.019034 | False |  -4.439029558215912 |  -6.828941014713585 |          1 |                       0 |                       0 |                        1 |                        0 |              1 |     0 | 16.070553650171448 |  21.62522958383734 |          0 |            1 |          0 |     0 |      0 |           0 |   926.4333333333333 |            494.04 |    24.870588235294118 |                  2114.0 |               20.25 |                 972.0 | 1677807.5459704415 |     1333082.2150 | 16948759.910110444 |  11541252.34566485 |                   1 |  -0.7075739490625619 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             78 |     0 |        0 |            0 |              0 |    0.006897 |              0 |              0 |      179 |    0.003098 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |   -0.06991 |  -0.066552 | -1545.674775 |    -954.861099 |               0 |                 0 |                 0 |                      0 |                         0 |              347 |              376 |              307 |       1 | -0.01113  |  -0.012132632554915913 |   0.12272965576913622 |  0.13206828146269825 |    0.6784868277607953 |     0.869587529532573 |    0.9362443534069156 |   1.0828765707778023 |    1.2300749222315275 |   33.30301167 |          0.101241 |              0.008151 |             0.033291 | False |  -9.577608142493643 |  -6.973655114109012 |          0 |                       0 |                       0 |                        0 |                        0 |              0 |     0 | 12.062420919443284 | 20.943851499733412 |          0 |            1 |          0 |     0 |      0 |           0 |   922.6666666666666 | 472.7037037037037 |    26.376237623762375 |                  2664.0 |  29.571428571428573 |                1449.0 |   7115425.72954121 |     2086709.9751 |  41007931.36931277 |  15139683.84161384 |                   1 | 0.046085603617050275 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             91 |     0 |        0 |            0 |              0 |    0.006897 |              0 |              0 |      135 |    0.003098 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -0.038806 |  -0.035793 | -1545.674775 |    -954.861099 |               0 |                 0 |                 0 |                      0 |                         0 |              347 |              376 |              307 |       1 | -0.053958 |  -0.014772897954267568 |   0.24905266106128693 |   0.3246064469386573 |    0.4087421112920247 |    0.5261055438929663 |    0.5538502855399923 |   0.6024901886755271 |    0.6077356629371643 |   30.54126075 |          0.046248 |              0.003847 |             0.051368 | False | -13.714902807775376 |  -6.973655114109012 |          0 |                       0 |                       0 |                        0 |                        0 |              1 |     0 |  12.75579809004094 | 20.943851499733412 |          0 |            1 |          0 |     0 |      0 |           0 |   938.8387096774194 |            466.88 |     27.19148936170213 |                  3834.0 |  31.328767123287673 |                2287.0 | 16726014.304468343 |    21292603.3995 |  56210001.62525901 |  48136507.35368992 |                   1 |  -1.5084024755345595 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|            106 |     0 |        0 |            0 |              0 |    0.009452 |              0 |              0 |      108 |    0.004731 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |   -0.06922 |  -0.065271 | -1538.000701 |    -953.326284 |               0 |                 0 |                 0 |                      0 |                         0 |              301 |              304 |              313 |       1 | 0.002212  |  -0.010154569056265144 |    0.5464650551478067 |   0.6670072451456027 |     0.833758438621306 |    1.0502004596499794 |    1.1052822881610622 |   1.2460356706664677 |    1.2648755717190194 |   32.04161222 |          0.092187 |                  -0.0 |             0.008788 | False |  -9.218436873747503 |  -6.828941014713585 |          0 |                       0 |                       0 |                        0 |                        0 |              1 |     0 | 21.573261309925712 |  21.62522958383734 |          0 |            1 |          0 |     0 |      0 |           0 |               829.6 | 615.2692307692307 |            27.0078125 |                  3457.0 |  27.356164383561644 |                1997.0 |  6249031.768253536 |     2193317.8707 | 30215678.993003327 |  16369363.05515529 |                   1 |  -1.5814786547651654 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|            118 |     0 |        0 |            0 |              0 |    0.009452 |              0 |              0 |       17 |    0.004731 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -0.467703 |  -0.509626 | -1550.094148 |    -955.744973 |               0 |                 0 |                 0 |                      0 |                         0 |              301 |              304 |              313 |       1 | -0.033596 |   0.008607304292115694 |     5.003370551518032 |    5.353826793334769 |    6.6240151406433485 |     6.968971138237527 |    7.2177476642835545 |    7.738457647070182 |     8.087959803771971 |    31.1559621 |          0.070789 |              0.000423 |             0.000423 | False |   4.102961099283919 |  -7.056993587149629 |          0 |                       0 |                       0 |                        1 |                        0 |              1 |     0 | 32.876254180602004 | 20.546054005940093 |          0 |            1 |          0 |     0 |      0 |           0 |               857.4 |             580.5 |     31.46153846153846 |                  4090.0 |                34.4 |                2580.0 | 146792719.03448808 |    91097278.4626 |  463796392.5513367 | 252604070.48129955 |                   1 |  -0.1961030442636087 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             82 |     0 |        0 |            0 |              0 |    0.012329 |              0 |              0 |      254 |    0.006809 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                1 |  -0.001626 |  -0.001674 | -1571.576769 |    -960.041497 |               0 |                 0 |                 0 |                      0 |                         0 |              291 |              281 |              322 |       1 | -0.002932 |   0.006652190787402842 |  0.021993802842497825 | 0.023807205867024873 |   0.02958841611611462 |  0.033634032755652736 |   0.03535255360305138 |  0.03972991898925596 |  0.041359093442559246 |     0.4646241 |          0.064134 |              0.002102 |             0.002102 | False |   2.566411526339496 |  -7.462102807182747 |          1 |                       0 |                       0 |                        1 |                        0 |              1 |     0 | 37.359840954274375 | 20.007636841544425 |          0 |            1 |          0 |     0 |      0 |           0 |   847.7241379310345 |             656.8 |     28.23728813559322 |                  3332.0 |  28.634146341463413 |                2348.0 |  4430493.903842219 |     1102535.2714 | 20297051.502753872 |   6105236.28434329 |                   1 |  -0.5649634386044369 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|            101 |     0 |        0 |            0 |              0 |    0.009328 |              0 |              0 |       43 |    0.004788 |             1 |           0 |           0 |           0 |           0 |           1 |           0 |           0 |           1 |           1 |            1 |            1 |                0 |   0.045503 |   0.019181 | -1568.266228 |    -959.379389 |               0 |                 0 |                 0 |                      0 |                         0 |              272 |              248 |              279 |       0 | -0.042628 |   0.020656342240896537 |    1.6499617307980856 |   1.8340711585964475 |    2.1332831064034448 |    2.5739960639444326 |     2.776663541296995 |   2.9504337594327263 |     2.988297499724797 |  -182.9796285 |          0.119881 |              0.001009 |             0.064582 | True  |  15.994962216624685 |  -7.399674167630666 |          0 |                       0 |                       0 |                        0 |                        0 |              0 |     0 |  59.46456692913388 |  20.08164211164292 |          0 |            1 |          0 |     0 |      0 |           1 |   977.2857142857143 |  515.074074074074 |      35.7962962962963 |                  5799.0 |   35.10569105691057 |                4318.0 |  39760393.19712864 |    46549486.3597 | 125274128.17378177 | 158800632.15076038 |                   1 |  0.38524042782220214 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             89 |     0 |        0 |            0 |              0 |    0.006116 |              0 |              0 |      149 |   -0.001052 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -1.261479 |  -1.129392 | -1555.638308 |    -956.853805 |               0 |                 0 |                 0 |                      0 |                         0 |              280 |              301 |              270 |       1 | -0.027315 | -0.0017841929165068105 |    34.986547489166256 |   36.547742970784505 |     43.15486533938835 |     48.98259278050176 |    52.212857182077016 |    59.46206950730543 |    60.235053209577295 |       33.4352 |          0.072317 |              0.004605 |             0.014618 | False | -3.1334973455910964 |  -7.161542754592265 |          1 |                       0 |                       0 |                        0 |                        0 |              1 |     0 | 48.390529396115994 | 20.369031044894854 |          0 |            1 |          0 |     0 |      0 |           0 |   778.7096774193549 | 618.6666666666666 |     32.20979020979021 |                  4606.0 |  30.431192660550458 |                3317.0 |  7816321.593369123 |     3975539.0232 |  40362501.21390498 |  19658889.16308008 |                   1 | -0.30442970549012305 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|            126 |     0 |        0 |            0 |              0 |    0.013042 |              0 |              0 |      188 |    0.009254 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -1.803501 |  -1.358441 | -1562.674205 |    -958.260985 |               0 |                 0 |                 0 |                      0 |                         0 |              289 |              279 |              322 |       1 | 0.00193   |  -0.004953366020444051 |    24.321287578401115 |   25.824410642114852 |    31.153284465695403 |     39.52978744943668 |     41.14679097851282 |   45.463411238642784 |     45.91004773532643 |     31.825395 |          0.057479 |              0.002779 |             0.002779 | False |  -6.654676258992797 |  -7.294222417447516 |          1 |                       0 |                       0 |                        1 |                        0 |              1 |     0 |  20.63645130183224 |  20.20789983497167 |          0 |            1 |          0 |     0 |      0 |           0 |   814.3793103448276 | 645.7407407407408 |    28.856060606060606 |                  3809.0 |   32.69230769230769 |                2975.0 |  7050217.094653019 |     3103330.8189 |  26307508.40868072 |  14421260.20126755 |                   1 | -0.27038020499378135 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             10 |     0 |        0 |            1 |              1 |    0.005083 |              0 |              0 |       42 |    0.020271 |             0 |           1 |           0 |           0 |           0 |           0 |           0 |           1 |           0 |           0 |            0 |            1 |                0 | -93.245759 | -96.794972 | -1499.658218 |    -814.166487 |               0 |                 1 |                 0 |                      0 |                         0 |              413 |              410 |              413 |       0 | 0.039471  |  -0.009889200316154352 |    2237.5192688802085 |   2427.3618392087437 |     2910.524022966337 |     3421.769582400741 |    3722.5962325252895 |   3906.1939059866477 |     3989.987985410749 |   -168.673725 |          0.081503 |              0.058851 |             0.081503 | False |  -6.049631672085276 | -7.9531014410129774 |          0 |                       1 |                       0 |                        0 |                        0 |              0 |     1 | 50.930581282526234 |  24.13404332818763 |          0 |            0 |          0 |     1 |      0 |           0 |   902.6071428571429 |            623.88 |     24.92391304347826 |                  2293.0 |   30.09259259259259 |                1625.0 |  9558539.477321425 |    15799126.7592 |  90791340.04783471 |  87124205.21046358 |                   0 |   26.665825260229983 |                     1 |                           0 |                                      0 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|            116 |     0 |        0 |            1 |              1 |    -0.00089 |              0 |              0 |      370 |    0.025928 |             0 |           1 |           0 |           0 |           0 |           0 |           0 |           1 |           0 |           0 |            0 |            1 |                0 |  -0.010846 |  -0.010128 |   -1523.7095 |    -818.976743 |               0 |                 0 |                 0 |                      0 |                         0 |              381 |              379 |              413 |       0 | 0.084475  |   -0.02098978338066717 |   0.23829835116863252 |  0.25240325008119857 |   0.36814478843042214 |   0.39835854149575156 |   0.42679939601899536 |  0.44595017069950693 |    0.4568695038046156 | -180.68601285 |           0.11936 |              0.062889 |             0.106674 | False | -14.166085136078166 |  -8.405433991703482 |          0 |                       1 |                       0 |                        0 |                        0 |              0 |     1 |  42.26552984165652 |  22.09705141106592 |          0 |            0 |          0 |     1 |      0 |           0 |   844.3571428571429 | 619.4642857142857 |    29.521008403361346 |                  3513.0 |  26.481012658227847 |                2092.0 | 11709845.709366683 |     4296144.9985 | 13064167.601883933 |   4820447.00080279 |                   0 |  -0.7562255555211186 |                     1 |                           0 |                                      0 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             96 |     0 |        0 |            0 |              0 |    0.009661 |              0 |              0 |      272 |    0.008657 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |           1 |            1 |            0 |                0 |  -0.009612 |  -0.003874 | -1573.555117 |    -960.437167 |               0 |                 0 |                 0 |                      0 |                         0 |              348 |              331 |              342 |       1 | 0.027945  |  -0.012782334488706562 |   0.09630380600690842 |  0.10448567944110743 |    0.1283188600908425 |   0.13677230622327424 |   0.15401621597074405 |  0.19183683370550475 |    0.2138910039194992 |   34.73246201 |          0.134581 |              0.005644 |             0.013837 | False | -12.615653913478376 |  -7.499409560457238 |          0 |                       0 |                       0 |                        0 |                        0 |              1 |     0 | 17.999601116872753 | 19.963671805777068 |          0 |            1 |          0 |     0 |      0 |           0 |   753.0689655172414 | 667.1379310344828 |     39.36199095022624 |                  8699.0 |   36.37062937062937 |                5201.0 | 14184720.574773671 |     5357371.3203 |  35419539.28141818 |  22268202.78240295 |                   1 |   1.3523970735105841 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|            110 |     0 |        0 |            0 |              0 |    0.009661 |              0 |              0 |       44 |    0.008657 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -0.019273 |  -0.020063 | -1573.555117 |    -960.437167 |               0 |                 0 |                 0 |                      0 |                         0 |              349 |              332 |              340 |       1 | -4.5e-05  |   0.006751720608052903 |   0.21057809878885747 |  0.23296146223407266 |   0.29146343399397845 |    0.3314403418232606 |    0.3470474004199562 |   0.4004047182897111 |   0.41586579611807156 |   23.00869213 |          0.101111 |              0.001727 |             0.012413 | False |  2.4094694488630886 |  -7.499409560457238 |          1 |                       0 |                       0 |                        1 |                        0 |              1 |     0 | 31.118216384376083 | 19.963671805777068 |          0 |            1 |          0 |     0 |      0 |           0 |   922.6206896551724 | 519.7777777777778 |            29.8046875 |                  3815.0 |   32.73684210526316 |                2488.0 | 12077859.829578035 |     5705533.6829 | 111151028.48637943 |  57767767.86739478 |                   1 |  -0.7597922798026104 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|            123 |     0 |        0 |            0 |              0 |    0.009661 |              0 |              0 |      236 |    0.008657 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -0.087564 |  -0.076121 | -1580.543151 |    -961.834774 |               0 |                 0 |                 0 |                      0 |                         0 |              349 |              332 |              340 |       1 | 0.02832   |   -0.01839224810152593 |    0.5970624546541109 |   0.7461855805314792 |     0.917264372492707 |    1.2272075660825512 |    1.3271345723856416 |   1.5089400733020866 |    1.6839907226562503 |   31.36302032 |          0.072201 |              0.003018 |             0.004063 | False | -17.996914013185574 |  -7.631186640571985 |          0 |                       0 |                       0 |                        1 |                        0 |              1 |     0 |  17.18213058419245 | 19.809910670324257 |          0 |            1 |          0 |     0 |      0 |           0 |   850.4666666666667 | 534.3103448275862 |    31.380368098159508 |                  5115.0 |   35.10588235294118 |                2984.0 | 12113368.658443488 |     4435257.6691 |  87425640.53047995 |   45756294.9505498 |                   1 | -0.47856872019122587 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|            151 |     0 |        0 |            1 |              1 |     0.00014 |              0 |              0 |      176 |   -0.001341 |             0 |           1 |           0 |           0 |           0 |           1 |           0 |           1 |           1 |           1 |            1 |            1 |                0 |    0.16993 |    0.14311 | -1579.673636 |    -961.660871 |               0 |                 0 |                 1 |                      0 |                         0 |              202 |              216 |              195 |       1 | 0.107697  | -0.0006946833119064225 |    2.0485920206705726 |   2.3763281654034345 |    2.7684619086129323 |    3.6179833447212566 |     3.834867274559084 |    4.195154886154028 |     4.244554763221741 |   54.64007175 |          0.224366 |              0.224366 |             0.224366 | False |   2.914663461538458 |  -7.614789720786019 |          0 |                       0 |                       0 |                        0 |                        0 |              0 |     1 |   64.4544997486174 | 19.828913902505562 |          0 |            1 |          0 |     1 |      0 |           0 |   843.8928571428571 | 641.4444444444445 |    43.742138364779876 |                  6955.0 |               40.44 |                4044.0 | 10790236.615545375 |    20584631.9865 |   14479111.5763953 |  50173641.44355639 |                   1 |    0.866398947456708 |                     0 |                           1 |                                      0 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             42 |     0 |        0 |            0 |              0 |    0.008641 |              0 |              0 |      169 |    0.003838 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -0.000148 |  -0.000144 | -1568.266228 |    -959.379389 |               0 |                 0 |                 0 |                      0 |                         0 |              268 |              252 |              278 |       1 | 0.004354  |  -0.002386733260989099 | 0.0017884371979744174 | 0.002044594613090791 | 0.0024350445065951755 | 0.0029808585339984885 | 0.0031693621725949078 | 0.003425372057302769 | 0.0034643050804152153 |    8.57129855 |          0.097503 |              0.005215 |             0.005215 | False | -3.9583333333333415 |  -7.399674167630666 |          1 |                       0 |                       0 |                        1 |                        0 |              1 |     0 | 30.602957906712163 |  20.08164211164292 |          0 |            1 |          0 |     0 |      0 |           0 |   802.4642857142857 | 637.2413793103449 |    27.135135135135137 |                  3012.0 |   28.85135135135135 |                2135.0 | 2701950.3987483736 |     1164961.2565 | 15399483.770497348 |   8709421.12626453 |                   1 |   -0.717915628965085 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             14 |     0 |        0 |            0 |              0 |    0.009387 |              0 |              0 |       79 |     0.00458 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -0.055573 |  -0.055264 | -1538.000701 |    -953.326284 |               0 |                 0 |                 0 |                      0 |                         0 |              299 |              306 |              312 |       1 | 0.001747  |  -0.007767670023163834 |    0.5641104537248611 |   0.6765841892466825 |    0.8159013573270537 |    0.9922805237419466 |    1.0766194076826083 |    1.108533418791303 |    1.1226136693954467 |   33.77259144 |          0.059475 |                  -0.0 |             0.011041 | False |  -6.766428106701361 |  -6.828941014713585 |          0 |                       0 |                       0 |                        1 |                        0 |              1 |     0 |  22.40204429301535 |  21.62522958383734 |          0 |            1 |          0 |     0 |      0 |           0 |   791.9666666666667 | 637.6538461538462 |    22.469135802469136 |                  1820.0 |                25.2 |                1008.0 | 16861842.698110115 |     8429552.1232 | 138192343.24073723 |  79394920.39889139 |                   1 |  -0.9844998379985053 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             16 |     0 |        0 |            0 |              0 |    0.009661 |              0 |              0 |      117 |    0.008657 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -1.147202 |  -0.609098 | -1573.555117 |    -960.437167 |               0 |                 0 |                 0 |                      0 |                         0 |              349 |              332 |              340 |       1 | 0.039468  |  -0.015840430663121893 |     11.21996193011602 |   12.025130799635493 |    15.774283410039452 |    17.004485673262028 |    18.700068578908798 |   22.471481596992128 |    23.922029504776003 |   33.08289075 |          0.112607 |              0.004973 |             0.004973 | False | -15.815097123186629 |  -7.499409560457238 |          0 |                       0 |                       0 |                        1 |                        0 |              1 |     0 | 13.159118385566842 | 19.963671805777068 |          0 |            1 |          0 |     0 |      0 |           0 |   820.0666666666667 | 638.7692307692307 |    38.271186440677965 |                  6774.0 |  30.958677685950413 |                3746.0 |  16061058.31496171 |     6076196.4380 | 49162905.855082005 |  28325874.33105808 |                   1 |   0.6979291392387923 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             85 |     0 |        0 |            0 |              0 |    0.009416 |              0 |              0 |       32 |    0.004794 |             0 |           0 |           0 |           0 |           0 |           1 |           0 |           0 |           1 |           1 |            1 |            0 |                1 |   -0.06802 |  -0.068436 | -1538.000701 |    -953.326284 |               0 |                 0 |                 0 |                      0 |                         0 |              301 |              304 |              313 |       1 | 0.000243  |   -0.00384323283404827 |    0.7967837817192078 |   0.9317417366169766 |      1.13208120999498 |    1.4571882724116039 |    1.5432671270168452 |   1.6620786652323745 |     1.681457736492157 |   29.83275414 |           0.09161 |              0.006742 |             0.008353 | False | -4.3680838672102595 |  -6.828941014713585 |          1 |                       0 |                       0 |                        1 |                        0 |              1 |     0 | 25.678696901948257 |  21.62522958383734 |          0 |            1 |          0 |     0 |      0 |           0 |               933.0 | 528.7777777777778 |                25.375 |                  2436.0 |  28.836363636363636 |                1586.0 |  59224267.99081595 |    31617404.5580 | 363949968.73767054 | 189973932.79894653 |                   1 |  -1.0700865117935363 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|            131 |     0 |        0 |            0 |              0 |    0.009654 |              0 |              0 |      178 |    0.008654 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -5.703051 |  -4.905101 | -1573.555117 |    -960.437167 |               0 |                 0 |                 0 |                      0 |                         0 |              348 |              331 |              342 |       1 | 0.026519  |   -0.01305262033555712 |     66.70938995361328 |    79.30789273664237 |     95.02119391706253 |    123.63215664994168 |    130.54560823364926 |   138.98057942708334 |    141.62556860351563 |    31.6989225 |          0.086112 |              0.007158 |              0.02551 | False | -11.915345319445358 |  -7.499409560457238 |          0 |                       0 |                       0 |                        1 |                        0 |              1 |     0 | 20.091889026329724 | 19.963671805777068 |          0 |            1 |          0 |     0 |      0 |           0 |   831.7586206896551 | 586.0714285714286 |    27.317460317460316 |                  3442.0 |  31.041666666666668 |                2235.0 | 2978624.2973880614 |      982341.2212 | 15713732.116638226 |   6567421.02357256 |                   1 |  -1.1311312978575518 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             93 |     0 |        0 |            0 |              0 |    0.009002 |              0 |              0 |      246 |    0.003838 |             0 |           0 |           0 |           0 |           0 |           1 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -0.008868 |  -0.008353 | -1568.266228 |    -959.379389 |               0 |                 0 |                 0 |                      0 |                         0 |              268 |              252 |              278 |       1 | -0.005867 |   -0.00215300955865169 |    0.1482060178319613 |  0.15593487519702634 |   0.18900313680395942 |     0.266284745176419 |    0.2806315842140266 |  0.30835879583768233 |   0.31162760443157617 |     30.713874 |          0.087669 |              0.001265 |             0.001265 | False |  -3.785488958990535 |  -7.399674167630666 |          1 |                       0 |                       0 |                        1 |                        0 |              1 |     0 |  31.96046128500825 |  20.08164211164292 |          0 |            1 |          0 |     0 |      0 |           0 |   852.7666666666667 | 547.5357142857143 |     33.13793103448276 |                  4805.0 |   33.80487804878049 |                2772.0 |   6284194.65195247 |     3007386.5564 |  20012840.44799398 |    8175059.4837415 |                   1 | -0.31584964512468705 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             58 |     0 |        0 |            0 |              0 |    0.010257 |              0 |              0 |       47 |    0.009159 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |           1 |            1 |            0 |                0 |  -0.176243 |  -0.168042 | -1573.555117 |    -960.437167 |               0 |                 0 |                 0 |                      0 |                         0 |              346 |              330 |              342 |       1 | 0.006692  |  -0.008973857275652388 |    1.7730685725212094 |    2.055534533434863 |     2.518472018458295 |     3.008400948060333 |     3.249964742901343 |   3.6976985248294816 |     3.730077499290307 |   35.28342239 |           0.05957 |               0.00013 |             0.004622 | False |     -9.899762323034 |  -7.499409560457238 |          0 |                       0 |                       0 |                        0 |                        0 |              1 |     0 |  27.24909584086798 | 19.963671805777068 |          0 |            1 |          0 |     0 |      0 |           0 |   839.8333333333334 | 561.4074074074074 |    28.188524590163933 |                  3439.0 |  28.419354838709676 |                1762.0 |  61611478.75215747 |    30123653.3352 |  278640556.8589913 | 159623282.92851216 |                   1 |  -1.2183403083747564 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|             54 |     0 |        0 |            0 |              0 |    -0.00052 |              0 |              0 |      167 |   -0.000731 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -1.359846 |  -1.195798 | -1590.825772 |    -963.891298 |               0 |                 0 |                 0 |                      0 |                         0 |              215 |              202 |              198 |       1 | -0.014028 |  -0.006254376619588521 |     19.78003396511078 |    20.88476899181783 |    23.559881572123174 |    27.289379233476886 |     28.20962854907626 |   30.622818542112704 |    31.005280917031424 |     24.511935 |          0.031414 |              0.006478 |             0.016932 | False |   -9.35052970981115 |   -7.82509149932531 |          1 |                       0 |                       0 |                        1 |                        0 |              1 |     0 | 15.761821366024492 | 19.587915670506405 |          0 |            1 |          0 |     0 |      0 |           0 |   780.3666666666667 | 564.7333333333333 |     24.96938775510204 |                  2447.0 |  26.946428571428573 |                1509.0 | 2629948.1036170935 |     1383401.9929 |  51980472.19252256 |  28710539.98863802 |                   1 |  -0.4758974633660622 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|            157 |     0 |        0 |            0 |              0 |    0.009654 |              0 |              0 |       62 |    0.008654 |             0 |           0 |           0 |           0 |           0 |           1 |           0 |           0 |           1 |           1 |            1 |            0 |                0 |  -2.264512 |  -3.011973 | -1580.543151 |    -961.834774 |               0 |                 0 |                 0 |                      0 |                         0 |              348 |              331 |              342 |       0 | -0.003855 |   0.014955698532543957 |     80.18977652036227 |    83.26574234484843 |     93.49385325113933 |    115.91560953359274 |    125.79733928516754 |    128.7239053058406 |     130.2497486368815 |  -183.2489962 |          0.160914 |              0.005693 |             0.011926 | True  |   6.462625073572692 |  -7.631186640571985 |          0 |                       0 |                       0 |                        1 |                        0 |              1 |     0 |  50.62317687616017 | 19.809910670324257 |          0 |            1 |          0 |     0 |      0 |           0 |               883.0 | 528.7857142857143 |    26.394495412844037 |                  2877.0 |  26.194444444444443 |                1886.0 | 10338536.807841241 |    18342715.3654 |  98127589.89708096 | 110444669.91963568 |                   1 | -0.31871424393298575 |                     0 |                           0 |                                      1 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br>|            108 |     0 |        0 |            1 |              1 |    0.009413 |              0 |              0 |      154 |    0.016575 |             0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |           0 |            0 |            1 |                0 |  -0.030538 |  -0.030551 | -1695.598099 |   -1226.304031 |               0 |                 1 |                 0 |                      0 |                         0 |              384 |              386 |              380 |       1 | 0.003412  |   -0.01487279058809407 |    0.2901117910905318 |  0.33116200622648767 |   0.44362996930782644 |    0.6075663825559471 |    0.6277375423083194 |   0.6910488143072022 |    0.6958615827560425 |   34.16861636 |          0.039478 |              0.004062 |             0.018894 | False |   -9.53846153846155 |  -5.403869696106445 |          0 |                       1 |                       0 |                        0 |                        1 |              0 |     0 |  52.79755849440489 | 28.613964567515254 |          0 |            0 |          0 |     0 |      0 |           0 |   807.1935483870968 | 548.2758620689655 |    33.593023255813954 |                  5778.0 |   37.06481481481482 |                4003.0 | 24806544.894151147 |    42537916.0066 |  77944695.96188244 | 107509234.50398685 |                   0 |  -1.2908312778224005 |                     0 |                           0 |                                      0 |<br>+----------------+-------+----------+--------------+----------------+-------------+----------------+----------------+----------+-------------+---------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+------------------+------------+------------+--------------+----------------+-----------------+-------------------+-------------------+------------------------+---------------------------+------------------+------------------+------------------+---------+-----------+------------------------+-----------------------+----------------------+-----------------------+-----------------------+-----------------------+----------------------+-----------------------+---------------+-------------------+-----------------------+----------------------+-------+---------------------+---------------------+------------+-------------------------+-------------------------+--------------------------+--------------------------+----------------+-------+--------------------+--------------------+------------+--------------+------------+-------+--------+-------------+---------------------+-------------------+-----------------------+-------------------------+---------------------+-----------------------+--------------------+------------------+--------------------+--------------------+---------------------+----------------------+-----------------------+-----------------------------+----------------------------------------+<br></pre><blockquote><strong>Build and train the model</strong></blockquote><pre>    # Get 85% of the dataset<br>    train_df = df.sample(frac=0.85, random_state=417)<br><br>    # The rest of dataset is for testing (15%)<br>    test_df = df.drop(train_df.index)<br><br>    # The training dataset is all selected features (85%) except the target (what we&#39;d like to predict)<br>    X_train = train_df.drop(&quot;outcome&quot;, axis=1)<br>    # The target is stored here<br>    y_train = train_df[&quot;outcome&quot;]<br><br>    # Testing dataset (15%) except the target <br>    X_test = test_df.drop(&quot;outcome&quot;, axis=1)<br>    # And target is stored here<br>    y_test = test_df[&quot;outcome&quot;]<br><br>    model = LinearSVC(penalty=&quot;l2&quot;,loss=&quot;squared_hinge&quot;,C=10,random_state=417)<br><br>    # Train the datasets features vs target<br>    model.fit(X_train,y_train)<br><br>    # Preditct target (&quot;outcome&quot;) with unused datasets <br>    predictions = model.predict(X_test)<br><br></pre><blockquote><strong>Evaluate Performance of the Model</strong></blockquote><pre>    # Calculate accuracy<br>    accuracy = accuracy_score(y_test, predictions)<br>    print(f&quot;Model Accuracy: {accuracy:.2%}&quot;)<br><br>    print(&quot;******** Predictions vs Actual ********&quot;)<br>    print(predictions)<br>    print(y_test.values)</pre><pre>*****************************************************************<br>Model Accuracy: 75.00%<br>******** Predictions vs Actual **********************************<br>[1 1 1 1]<br>[0 1 1 1]</pre><p>75% is not bad, let see if we can fine tune it even more.</p><blockquote><strong>Fine-tune the model — we are using a </strong>StandardScaler()</blockquote><pre>    #######  Using standard scaled #######<br><br>    # Get 85% of the dataset<br>    train_df = df.sample(frac=0.85, random_state=417)<br><br>    # The rest of dataset is for testing (15%)<br>    test_df = df.drop(train_df.index)<br><br>    # Understand axis<br>    # axis=0: Refers to the index or rows. Operations are performed column-wise, meaning the operation is applied to each column.<br>    # axis=1: Refers to the columns. Operations are performed row-wise, meaning the operation is applied to each row.<br><br>    # The training dataset is all selected features (85%) except the target (what we&#39;d like to predict)<br>    X_train = train_df.drop(&quot;outcome&quot;, axis=1)<br>    # The target is stored here<br>    y_train = train_df[&quot;outcome&quot;]<br><br>    # Testing dataset (15%) except the target <br>    X_test = test_df.drop(&quot;outcome&quot;, axis=1)<br>    # And target is stored here<br>    y_test = test_df[&quot;outcome&quot;]<br><br>    # Standardize the features<br>    scaler = StandardScaler()<br>    X_train_scaled = scaler.fit_transform(X_train)<br>    X_test_scaled = scaler.transform(X_test)<br><br>    model = LinearSVC(penalty=&quot;l2&quot;,loss=&quot;squared_hinge&quot;,C=10,random_state=417)<br><br>    # Train the datasets features using scaled datasets. Features vs outcome<br>    model.fit(X_train_scaled, y_train)<br><br>    # Get predictions using scaled test dataset. Predict outcome <br>    y_pred = model.predict(X_test_scaled)<br><br>    # Calculate accuracy<br>    print(&quot;******** Prediction using scaled ********&quot;)<br>    accuracy = accuracy_score(y_test, y_pred)<br>    print(f&quot;Model Accuracy: {accuracy:.2%}&quot;)<br><br>    print(&quot;******** Predictions vs Actual ********&quot;)<br>    print(y_pred)<br>    print(y_test.values)</pre><pre>******** Prediction using scaled ********<br>Model Accuracy: 100.00%<br>******** Predictions vs Actual ********<br>[0 1 1 1]<br>[0 1 1 1]</pre><p>Note, the dataset isn’s much yet so don’t be deceived by accuracy … just yet. The more data of the 2 classes (wins vs losses) we gather the better. Nevertherless, a normalized scaled model seems to yiel better results. Scaling transforms a dataset to make it more effective at model prediction by standardizing the range and distribution of the features.</p><p><strong>Here’s how a normalized scaled model transformed out datasets. Observe how every features have been transformed to numerical distances:</strong></p><pre><br>+======================+=====+=====+====================+====================+=====================+=====+=====+=======================+======================+======================+====================+=====+=====+=====+=====================+=====+=====================+=====================+=====================+=====================+======================+====================+=======================+======================+======================+======================+=====+======================+======================+=====+=====+======================+=======================+======================+======================+======================+======================+======================+======================+======================+======================+======================+======================+=======================+======================+======================+=======================+====================+=======================+======================+=====================+======================+=====+=====================+=====+=====================+====================+======================+======================+=====+=====================+=====+====================+=====+======================+========================+======================+======================+======================+=======================+======================+======================+======================+======================+======================+=====================+======================+======================+======================+=====================+<br>|          0           |  1  |  2  |         3          |         4          |          5          |  6  |  7  |           8           |          9           |          10          |         11         | 12  | 13  | 14  |         15          | 16  |         17          |         18          |         19          |         20          |          21          |         22         |          23           |          24          |          25          |          26          | 27  |          28          |          29          | 30  | 31  |          32          |          33           |          34          |          35          |          36          |          37          |          38          |          39          |          40          |          41          |          42          |          43          |          44           |          45          |          46          |          47           |         48         |          49           |          50          |         51          |          52          | 53  |         54          | 55  |         56          |         57         |          58          |          59          | 60  |         61          | 62  |         63         | 64  |          65          |           66           |          67          |          68          |          69          |          70           |          71          |          72          |          73          |          74          |          75          |         76          |          77          |          78          |          79          |         80          |<br>+======================+=====+=====+====================+====================+=====================+=====+=====+=======================+======================+======================+====================+=====+=====+=====+=====================+=====+=====================+=====================+=====================+=====================+======================+====================+=======================+======================+======================+======================+=====+======================+======================+=====+=====+======================+=======================+======================+======================+======================+======================+======================+======================+======================+======================+======================+======================+=======================+======================+======================+=======================+====================+=======================+======================+=====================+======================+=====+=====================+=====+=====================+====================+======================+======================+=====+=====================+=====+====================+=====+======================+========================+======================+======================+======================+=======================+======================+======================+======================+======================+======================+=====================+======================+======================+======================+=====================+<br>|  0.09461990952448561 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | -0.3977329239342701 | 0.0 | 0.0 | -0.017519001632597488 |  -0.5226725648483378 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.24821604847150142 |  0.24561328208935088 |   0.7377708253708144 | -0.09966915420062379 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |   0.8273661858090515 |     1.444551639831892 | 0.015487220179369838 |  -1.7815623242543108 |  -1.1924131494753674 | -0.24197330541669665 | -0.24197629036700938 | -0.24135556271022926 | -0.24251355481231288 | -0.24197224460787978 |  -0.2424018289137293 | -0.24226752808415777 |    0.4193548321694418 |  -1.0432253951476793 | -0.25991381742434455 |    0.4943254165578587 | -0.316227766016838 |    -1.227585104563628 |   1.1551662409658638 | -0.7559289460184545 | -0.21821789023599233 | 0.0 | -1.0954451150103321 | 0.0 | 0.47140452079103157 | -0.316227766016838 |   -1.177406444263547 |   0.4228857140747499 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |      1.388937440952297 |  -1.8299798762172574 |  -0.4435668499673448 |  -0.0322970335628767 |    0.1815952548748062 |  -0.1516988773390643 | -0.05334934314833937 |   0.3965482647344518 |  -0.2592162816067862 | -0.11741119249320392 | 0.21821789023599217 |  -0.4045489909149622 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|   0.2200197896171776 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | 0.46081672599810847 | 0.0 | 0.0 |    1.7425566957223502 |   0.6571319633137513 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 |   2.121320343559643 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.24972595788880567 |  0.24720339614193815 |  -0.6486769649868153 | -0.28432713914862856 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |   0.8482401033409313 |    0.5353932651125195 |   0.7608096913115221 |   0.7692666034218939 |  -0.9864757702858971 |  -0.2423023564637395 | -0.24241338963315848 |   -0.241819941736173 | -0.24306201471731986 |  -0.2424899407841612 | -0.24290858733441797 | -0.24274332961869388 |    0.4776859755273575 |   1.0642598400227894 |   -0.221660148175075 |  -0.29099847068785206 | -0.316227766016838 |   -1.0836517702049118 |  -0.5145546547993908 | -0.7559289460184545 | -0.21821789023599233 | 0.0 | -1.0954451150103321 | 0.0 | 0.47140452079103157 | -0.316227766016838 |  -0.8284998124629389 |  -0.5649500280075677 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |     -1.788848835576841 |     1.51754260493307 |    2.014481585168887 |    3.015984714439501 |    1.3486730138446064 |    2.674546873446384 | -0.13526931279754387 | -0.38165360862639136 |  -0.4623596089341946 |  -0.5309519461054127 | 0.21821789023599217 |   0.0985351628686815 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>| -0.23141977871651356 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | -0.3977329239342701 | 0.0 | 0.0 |    0.5477607843792105 |  -0.5226725648483378 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.24660735413308152 |  0.24408095594681722 |   0.7377708253708144 | -0.09966915420062379 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |   0.8273661858090515 |     1.444551639831892 | 0.015487220179369838 | -0.44770518453395264 |  -0.9192596700137721 |  -0.2422454299909999 | -0.24235861817638418 |  -0.2409088672662863 | -0.24202968629303856 |   -0.241477129354243 | -0.24180901786916284 |  -0.2415156834982419 |    0.4577915663751801 |  0.26882033564069624 | -0.16829234138157542 |   0.11607011001817921 | -0.316227766016838 |   -0.6858564574046405 |   1.1551662409658638 | -0.7559289460184545 | -0.21821789023599233 | 0.0 | -1.0954451150103321 | 0.0 |  -2.121320343559643 | -0.316227766016838 |  -1.2235416426916292 |   0.4228857140747499 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |     1.1122976868559706 |  -1.7326305279492495 |  -0.6082213832344422 |  -0.7653884303075389 |  -0.22518911134549388 |  -0.9644627548813449 | -0.36315183278955593 |   -0.541377343637806 | -0.40775550516921094 |  -0.6449112157123182 | 0.21821789023599217 | -0.13118544115917022 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|     1.74989832674802 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 |  0.4586423962045026 | 0.0 | 0.0 |   -0.9553695556976426 |   0.6564952636223526 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 |   2.121320343559643 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.13310285913292144 |  0.09734843541404213 |    -0.99618146468929 |  -0.3306105224160531 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |   0.8482401033409313 |    0.5353932651125195 |   0.7608096913115221 | -0.22112886316789296 |   1.8832131007782584 |  -0.0697652788628966 | -0.07727802020059399 | -0.08720724207052712 | -0.07996253097528191 | -0.07980978699363975 |  -0.0842962023667044 | -0.08564773573454536 |    -2.556076160776022 |   1.6925234413693295 | -0.22061705980934646 |  -0.33098552002111137 |   3.16227766016838 |    1.4144178868841897 |  -0.9330598063560002 | -0.7559289460184545 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 |   1.3421732424214354 |  -0.7199121704391902 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |    0.43375775809178047 |  -0.7951605848533899 |  -0.6045338992343131 |   -0.631928201669408 |   -1.0068850152895588 |  -0.5406228807930673 |  -0.2592531143434688 |  0.25248959129110893 |  0.15035990839078292 |   0.8786712694518972 | 0.21821789023599217 |  -0.1953370950792667 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|   1.0978189502660216 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 |  0.4586423962045026 | 0.0 | 0.0 |    0.5349135165153058 |   0.6564952636223526 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 | -0.044737875876595355 | 0.003038167669237049 |  -0.6486769649868153 | -0.28432713914862856 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |   0.8482401033409313 |    0.5353932651125195 |   0.7608096913115221 |   0.7248545299829935 |  -1.0144386862619135 | -0.09880468025645935 | -0.08513722030671154 | -0.08467797615663596 | -0.06909210870220259 | -0.07366183496635736 | -0.07163916227122326 | -0.07190467112061577 |   0.43546661714710366 |  -0.0921336014257911 | -0.18943084642582952 | -0.046744767460674956 | -0.316227766016838 |   -0.9919548382887791 |  -0.5145546547993908 | -0.7559289460184545 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 |   -0.689285367620066 |  -0.5649500280075677 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |    -0.4427797679675548 |   0.1624305349068677 | -0.41812478347388166 |  -0.2779139801645071 |   0.11513795376763855 | -0.20213291269968311 |  -0.4965038510182743 |   -0.595309525415563 |  -0.6549047851270463 |  -0.7819507351043054 | 0.21821789023599217 |  -0.3382041988682961 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|   1.5994184706367895 | 0.0 | 0.0 |   3.16227766016838 |   3.16227766016838 |  -2.496582411847832 | 0.0 | 0.0 |    0.5092189807874963 |  -1.4647758748881856 | -0.21821789023599236 |   3.16227766016838 | 0.0 | 0.0 | 0.0 |   2.121320343559643 | 0.0 |   2.121320343559643 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 |    2.516611478423583 | -0.316227766016838 |    0.2590118439133872 |  0.25452572215169683 |  -0.9529417816741772 | -0.32485152206734647 | 0.0 | -0.21821789023599233 |    4.582575694955839 | 0.0 | 0.0 |  -2.1993518563135117 |    -1.788011470281433 |  -2.3695446874435175 |   3.2531036868014125 |   0.2640742608858903 |  -0.2380967440489308 | -0.23790213567602533 | -0.23744788252933763 | -0.23815797753079088 | -0.23772405747525374 | -0.23796837411268162 | -0.23787390722597074 |    0.7547506082234686 |   3.2063874915208763 |    4.434388291189829 |    4.1142519265291755 | -0.316227766016838 |    0.9498552681304097 |  -0.8809855352148286 | -0.7559289460184545 | -0.21821789023599233 | 0.0 | -1.0954451150103321 | 0.0 |  -2.121320343559643 |   3.16227766016838 |   2.2624672069511105 |  -0.7007605066376159 | 0.0 | 0.21821789023599217 | 0.0 |   3.16227766016838 | 0.0 | -0.21821789023599236 |   -0.23521092918023898 |   1.0880488838355638 |    2.899129963848834 |   1.9232399315995938 |    2.2906408268381933 |   1.5523895866726147 | -0.24469232819533632 |  0.36197426686957823 |  -0.6669682457843323 | -0.08484477653768809 | 0.21821789023599217 | 0.013070259860060161 | -0.21821789023599233 |    4.582575694955839 | -3.1622776601683795 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|  -1.9368581479771245 | 0.0 | 0.0 |   3.16227766016838 |   3.16227766016838 |  -0.961194959020137 | 0.0 | 0.0 |   -1.2123149129757371 |    3.122008701949208 | -0.21821789023599236 |   3.16227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 |   2.121320343559643 |   -4.58257569495584 |   -4.58257569495584 |   -4.58257569495584 |    2.516611478423583 | -0.316227766016838 |    -4.572433951286386 |   -4.574654591111785 |    3.026105515544825 |    4.559596755928343 | 0.0 |    4.582575694955839 | -0.21821789023599233 | 0.0 | 0.0 |   2.2050447429131146 |     2.131471300730974 |   2.2727495613224598 |   1.1282382432933995 |  -0.6871612900158688 |     4.57754633617167 |    4.577451723705156 |     4.57777585281548 |    4.577046376812722 |    4.577244665343849 |    4.577213824462639 |    4.577280487147014 |      -2.3532244767107 | -0.20209702901118573 |   0.9109848043824565 |    1.1248904252746397 | -0.316227766016838 |  -0.22391065099132865 |   -1.955415152441682 | -0.7559289460184545 |    4.582575694955839 | 0.0 | -1.0954451150103321 | 0.0 |  -2.121320343559643 |   3.16227766016838 |   1.3626269923958407 |   3.6379956900077697 | 0.0 |   -4.58257569495584 | 0.0 |   3.16227766016838 | 0.0 | -0.21821789023599236 |      0.769158497189807 |   0.7944406739486387 |  -0.9015440647945339 |  -0.9978473261983676 |  -0.10455135727030397 |   -0.793762942891558 | -0.28439674764174205 |  0.12827267317117458 |  0.07867750999897492 |   0.5058612724209183 |   -4.58257569495584 |    4.550012583902701 |    4.582575694955839 | -0.21821789023599233 | -3.1622776601683795 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|  -1.1342989153838958 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | 0.14398581321553736 | 0.0 | 0.0 |   0.41928810574016323 | -0.36561997430328547 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |    0.2502154345869411 |  0.24738921416305884 |  -0.3856684098013392 | -0.24929758893468817 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |  -0.8216732992094484 |   -1.0606847705059348 |  -0.6020656844729849 |  0.03453643196530079 |  0.08902014279297303 |  -0.2425059611392518 | -0.24261680943543742 | -0.24202840449171376 | -0.24325048885101985 | -0.24268525390367482 |  -0.2431410926666865 |  -0.2429975449391827 |    0.1135873599922197 |  0.17963758616918282 | -0.23079249325461682 |  -0.47141099782095586 | -0.316227766016838 |  0.049919547607971716 |  -0.1978093174911362 |  1.3228756555322954 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 | 0.010089040784090796 |  -0.4460582723864158 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |    -0.9438900864729716 |   1.0177902181564766 | -0.45494858451778614 |  -0.5473407328142548 |  -0.39187079899692023 | -0.29912144223933473 |  -0.5054225828887589 |  -0.5863912208137001 |  -0.6579753014814411 |  -0.7477078903804233 | 0.21821789023599217 |  -0.2655384103182754 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|   -1.259698795476588 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | -0.6403260051922978 | 0.0 | 0.0 |    0.4578299093318774 |  -1.4040771709748274 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 |   3.16227766016838 |   0.25005861998965173 |  0.24723358534322476 |  0.24229920195940202 | -0.16565993382414942 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |  -0.5711862888268915 |  -0.07071231803372899 |  -0.7724251064460482 |   0.5312291018135373 |  0.43819089184944615 | -0.24244499325789096 | -0.24254826188669013 |  -0.2419559077207822 | -0.24317777205159155 |  -0.2426125542279709 | -0.24306611490147212 | -0.24292189258855532 |   0.45390103240139906 |   0.5247733951191333 |  -0.3271397982196663 |   -0.5661160659959069 | -0.316227766016838 |   0.45749432527916795 |   0.5584619780728983 | -0.7559289460184545 | -0.21821789023599233 | 0.0 | -1.0954451150103321 | 0.0 | 0.47140452079103157 | -0.316227766016838 | -0.13894778714975242 | -0.15642458389479058 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |     1.0717500160427986 | -0.20412865931557572 |   -0.745308715378862 |  -0.5185183360191654 |   -0.8204170147012564 |  -0.5629302425871872 | -0.44319776409760125 |  -0.5580682590089826 | -0.39309433136401856 |  -0.6776991689578591 | 0.21821789023599217 | -0.20194053699214826 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|   0.7717792620250223 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | 0.39589745073187604 | 0.0 | 0.0 |   -1.5334966095733553 |  -0.1760956994968912 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.22603355825592536 |  0.22200826589587416 |   0.5180020029289639 | -0.12893967094968944 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 | -0.13283402065741678 | -0.010101759719104141 |  0.14325678665916736 |  -1.1473977805215676 |   1.2264283789875046 |  -0.2317315705161473 | -0.23198964282028756 |  -0.2310631121984351 | -0.23343738789423188 | -0.23334397989841163 | -0.23359583340550832 | -0.23323071104629237 |    0.4279099528484126 | -0.45771607070134007 |  -0.3328022779193356 |   -0.5716820289067635 | -0.316227766016838 |    1.1054484573513745 |    0.890495174798747 | -0.7559289460184545 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 |  0.16134722915410502 |  0.02198107903411438 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 | -0.0041570866904876306 |  0.06929823148878797 |   0.4188452233119121 |  0.12810587034022886 |    0.8925166182892144 |  0.13247751421211498 |    4.139420811419913 |   3.8054806626726743 |   3.7233048502824353 |   3.1512866037627525 | 0.21821789023599217 |  -0.1737753776039356 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>| -0.13109987464235998 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 |  1.2895469959038925 | 0.0 | 0.0 |     1.511305874172065 |   0.2649249534120531 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 |   3.16227766016838 |   0.25013899264274797 |  0.24731299390238462 |  -0.5502966720492841 | -0.27122406635533136 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |  -0.3415731959762142 |   -0.4747827067978946 |  0.33491113637886366 | -0.19238247902756675 |   1.0241585402486377 |  -0.2424624348115497 | -0.24257359487864333 |  -0.2419834386901794 | -0.24320730723847014 |  -0.2426435838299814 | -0.24309629177891975 | -0.24295176445685093 | 0.0007625252576304477 |  -0.6164938122029248 |  -0.2970605357548817 |   -0.5365495036160559 | -0.316227766016838 |     0.904255893420901 | -0.39607374431305686 |  1.3228756555322954 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 |  0.45967139418913866 |  -0.5206415874219201 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |   -0.16967285372430146 |   1.3447331867604935 | -0.23234925791228106 |  -0.3468371029353728 |  -0.44214887557679533 | -0.09253587431987678 |  -0.4497020536874255 |  -0.5894398126578457 |  -0.6101212331837883 |  -0.7893393996703274 | 0.21821789023599217 | -0.23864109649472406 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|   0.4708195498025616 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | 0.39589745073187604 | 0.0 | 0.0 |  -0.36439523395802514 |  -0.1760956994968912 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.24664304083233277 |   0.2441447717336954 |    1.119391070213611 | -0.04884196823948337 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 | -0.13283402065741678 | -0.010101759719104141 |  0.14325678665916736 | -0.03217511172763392 |  -0.7146154977327909 | -0.24133262068198716 | -0.24129637661181683 | -0.24065173851858343 |  -0.2417752539946606 |  -0.2412582628315302 |  -0.2416076747003323 | -0.24147364102781638 |    0.4402360094870468 |  0.05280626027550535 | -0.34180689789286983 |   -0.3966471426311414 | -0.316227766016838 |   -0.6388273281649484 |    1.614757514707279 | -0.7559289460184545 | -0.21821789023599233 | 0.0 | -1.0954451150103321 | 0.0 | 0.47140452079103157 | -0.316227766016838 |  -0.5907193819666104 |   1.1095859482252932 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |    -0.4797052384462307 |   0.6505025865475744 |  -0.4806636466107444 |  -0.2685153725139345 |   -0.7379729672044917 |   -0.432965613004054 | -0.39108050792994115 |  -0.5361711148449875 |  -0.5132064576695589 |  -0.6252530866970272 | 0.21821789023599217 | -0.41739975768827275 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|   0.9724190701733295 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 |  1.5110180163097486 | 0.0 | 0.0 |     0.663386195154353 |   0.7838352019021246 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.15694628073944455 |  0.17972270997160136 | -0.10758545328743066 | -0.21226033813398515 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |  -0.3833210310399737 |   -0.5151897456743112 |  0.33491113637886366 | -0.04095786397852448 |  -0.1765155374145524 | -0.19011698150911352 | -0.19134069688180294 |  -0.1904428064731178 |  -0.1875684496862352 | -0.18941341638343498 |  -0.1870421216891762 | -0.18753805769895973 |      0.43722680117805 |  -0.7752715537045092 |  -0.2826488862936934 |   -0.5223835002677479 | -0.316227766016838 |  -0.30313391451344956 |  0.13709035287551616 |  1.3228756555322954 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 |  -0.6530518576314096 |  -0.3188143674299096 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |    -0.7400710957831025 |   1.1598660066992685 | -0.10737719396941953 | -0.04796137964716435 |   0.49722424144526006 |   0.5155822058937389 | -0.36525386819321176 | -0.49173035756249817 |  -0.5513931397708154 |  -0.6563962147706407 | 0.21821789023599217 | -0.18683734224380805 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|  0.14477986156156242 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 |  0.2561191068572121 | 0.0 | 0.0 |    1.4085277312608273 | -0.36561997430328547 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 |   2.121320343559643 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.24976443746017218 |  0.24698026506510184 |  -0.3856684098013392 | -0.24929758893468817 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |  -0.8216732992094484 |   -1.0606847705059348 |  -0.6020656844729849 | -0.28379162036219013 |  0.11320045532586713 | -0.24219054890132735 | -0.24231122568940824 |  -0.2417194489803497 |  -0.2428795684910726 | -0.24232600204810345 | -0.24276479577691334 | -0.24262525457707726 |   0.42175718118744765 | -0.05498605168605142 |  -0.3148781880429388 |   -0.5540634545799167 | -0.316227766016838 |   0.07255142584171459 |  -0.1978093174911362 |  1.3228756555322954 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 |   0.1004131679405981 |  -0.4460582723864158 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |   -0.08341511198311148 |  -0.4817345637348514 |   0.7574224060703627 |   0.5761061683508557 |    0.7547592661304556 |   0.3186954909282461 |  -0.3899470134693298 | -0.49641582461089984 |  -0.6128982555689716 |  -0.7562504029266731 | 0.21821789023599217 |  -0.1948333428090723 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|  -0.7330192990872815 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 |  0.6459453769965523 | 0.0 | 0.0 |   -1.1480785736562136 |   0.7636730450078275 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 |   2.121320343559643 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.24110782689905366 |   0.2390250119887646 |  -0.6486769649868153 | -0.28432713914862856 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |   0.8064922682771718 |    0.5151897456743112 |   0.7608096913115221 |   0.1073522999177197 |   -0.592462803842674 |  -0.2386902756931852 | -0.23853914354544561 | -0.23786186411320606 |  -0.2390167059182455 | -0.23848137614112622 |  -0.2385822500179321 | -0.23849544433725992 |    0.4853539797382342 |  -0.7253836111831249 |  -0.3390395205960389 |  -0.48381932867109856 | -0.316227766016838 |   -0.7280386471010217 |  -0.5145546547993908 | -0.7559289460184545 | -0.21821789023599233 | 0.0 | -1.0954451150103321 | 0.0 | 0.47140452079103157 | -0.316227766016838 | -0.21306669388592833 |  -0.5649500280075677 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |    -0.3046533408574854 |  -0.2498545860650032 | -0.24219791991378636 |  -0.2797937016946216 |   -0.4918682795156389 |  -0.6608886574222353 |   1.3935577350377475 |   0.8278152566143657 |   1.9141496754446399 |   1.6648596579969979 | 0.21821789023599217 |  -0.3535402860377032 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>| 0.044459957487408816 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | -0.6403260051922978 | 0.0 | 0.0 |    0.1623427484620687 |  -1.4034404712834285 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.18497957943732998 |  0.19113328153183384 |  0.24229920195940202 | -0.16565993382414942 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |  -0.5711862888268915 |  -0.07071231803372899 |  -0.7724251064460482 |  -0.9517791036143205 |  0.15135705470029157 | -0.16714191607001652 |  -0.1700471099803002 | -0.17056826892304777 | -0.17425213293671585 | -0.17508532231622811 |  -0.1697673621623586 |  -0.1702320985325038 |   0.45963130060628543 |  -0.4212604149516148 |  -0.2437778790320539 |  -0.27465630138943475 | -0.316227766016838 |   0.15792183410627353 |   0.5584619780728983 |  1.3228756555322954 | -0.21821789023599233 | 0.0 | -1.0954451150103321 | 0.0 | 0.47140452079103157 | -0.316227766016838 |   1.1936197005979976 | -0.15642458389479058 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |     -1.350237571017432 |   0.7072943100323014 |   0.5699679215425604 |    0.451417973519926 | -0.026173053954373086 |   0.8472829769193474 |  -0.3405580777973166 |  -0.4491358063709329 |  -0.4140619945179593 |   -0.572665446020792 | 0.21821789023599217 | -0.19282509631405573 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|   -1.836538243902971 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | 0.37570724550553547 | 0.0 | 0.0 |   -0.7369660020112622 | -0.20814291729730053 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.24734886167969697 |  0.24464329209223545 |    1.119391070213611 | -0.04884196823948337 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 | -0.17458185572117627 |   0.03030527915731242 |  0.12196185891253444 | -0.04665730958814495 | -0.46767449847747233 | -0.24129460902635017 | -0.24127735943644477 | -0.24068130972561463 | -0.24185684672672803 | -0.24129537488564026 | -0.24177735655768978 | -0.24164550683805847 |   0.46432695400813934 |  -0.7276501604607583 | -0.34180689789286983 |  -0.34950385526963795 | -0.316227766016838 |   -0.3177664660173814 |    1.614757514707279 | -0.7559289460184545 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 |  -0.5355746944862009 |   1.1095859482252932 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |    -1.1234628683409966 |   1.0246850363752467 |  -1.3973298228408662 |    -1.29421675411309 |     -1.23707654705029 |  -1.3921821701512085 | -0.04897084185405135 | -0.23162273086837984 |   0.5418320732795733 |  0.38229792651038486 | 0.21821789023599217 | -0.31241841323858627 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|  -0.8333392031614351 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 |  -2.701590649530672 | 0.0 | 0.0 |    0.3935935700123538 |  -1.3353136043037503 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.17989205256016466 |  0.18782512294991996 |  -1.5075208580344166 |  -0.3987147094233133 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |  -1.9279909283990748 |    -2.070860742416349 |  -2.3056599042036185 |  -0.5379619789420409 |  -0.3111139653074426 | -0.19989973409215828 | -0.20114946579048149 | -0.20301743081047596 | -0.20481170681874772 | -0.20616416383441255 | -0.20535585327314568 |  -0.2055444233095425 |    0.3354415474433291 |  -1.3971411002467784 | -0.20390635844002167 |  -0.22623660899950176 | -0.316227766016838 |   -0.6561232858303859 |  -1.5488738935209299 |  1.3228756555322954 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 |  -0.9773948399048447 |  -0.9436411425203022 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |     -1.321893032382962 |  -0.1942582271584451 |  -0.8923596410522535 |  -0.9013549543191557 |   -0.8328175960211678 |  -0.9062696371575539 |  -0.5077436155828174 |  -0.5757236014505225 |  -0.3005429566843045 |  -0.4279622439411832 | 0.21821789023599217 |  -0.2229784539308058 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|   0.8971791421177143 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | 0.46081672599810847 | 0.0 | 0.0 |      1.28005505262178 |   0.6571319633137513 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.24569429183079033 |  0.24360425550603879 |    -0.99618146468929 |  -0.3306105224160531 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |    0.869114020872811 |    0.5555967845507277 |   0.7182198358182562 |   0.7809457952448867 |  -1.5668596298770077 | -0.24122362394168906 |  -0.2411391502279298 | -0.24051345325134682 | -0.24152590127727988 |  -0.2409710134749006 | -0.24128324286930183 | -0.24096731035302532 |   0.43079169055676947 |  -0.4240279909116726 |  -0.2775611695710582 |   -0.4955162206529363 | -0.316227766016838 |    -1.788262630603105 |  -0.9330598063560002 | -0.7559289460184545 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 |  -0.8828918040565015 |  -0.7199121704391902 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |   -0.12275902381901756 |   -0.702810559845985 |   0.4024514302351168 |   0.7703440597960226 |     1.055912513328052 |   0.5243111735523075 | -0.20204045543872814 |  -0.4266853073960695 | 0.045791305381103625 | -0.15546219147688872 | 0.21821789023599217 | -0.22344820616488834 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|   0.5711394538767152 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | 0.46081672599810847 | 0.0 | 0.0 |   -1.1866203772479276 |   0.6571319633137513 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.24922629237943467 |  0.24639690607654338 |  -0.6486769649868153 | -0.28432713914862856 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |    0.869114020872811 |    0.5555967845507277 |   0.7182198358182562 | -0.10246827424628639 |   1.0344555796399915 |  -0.2420561871836058 | -0.24215827208557242 | -0.24154977541439823 | -0.24278778276899685 | -0.24224000834043502 |  -0.2426512083783737 | -0.24249932499944782 |    0.3145201289973596 |  0.26571874189235595 |  -0.3050433548803554 |  -0.32079520446627235 | -0.316227766016838 |    0.8837062284364212 |  -0.5145546547993908 |  1.3228756555322954 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 | 0.044372765597653165 |  -0.5649500280075677 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |     1.1115112018617508 |  -0.9457377420891746 |  0.08421481521897424 | -0.04420193658693532 |     0.507532956820517 |  0.04324806703563548 | -0.20318510162777229 | -0.36465099445281357 |   0.2776117513041286 |  0.03655787494594861 | 0.21821789023599217 | -0.27290260312127046 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|   0.3454196697098696 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 | 0.35738075153085735 | 0.0 | 0.0 |   -1.1994676451118325 | -0.16399840536031288 |     4.58257569495584 | -0.316227766016838 | 0.0 | 0.0 | 0.0 |   2.121320343559643 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 |    2.516611478423583 | -0.316227766016838 |    0.2525764976413138 |  0.24835193085425367 |  -0.3856684098013392 | -0.24929758893468817 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 |  -0.7381776290819294 |   -1.1414988482587678 |  -0.5807707567263519 |  -1.4286950086422894 |   2.4729836081256384 | -0.23895547201922454 | -0.23897890886028286 | -0.23849973437188882 | -0.23962865896623806 |  -0.2390941959104969 |  -0.2395043969035369 |  -0.2393915846149058 |   -2.5523272293957397 |   0.7135411623258257 | -0.32032779256592886 |    0.7708240402573292 |   3.16227766016838 |    2.6625620299886976 |  -0.1978093174911362 | -0.7559289460184545 | -0.21821789023599233 | 0.0 | -1.0954451150103321 | 0.0 |  -2.121320343559643 | -0.316227766016838 |    1.930452323087483 |  -0.4460582723864158 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 |     4.58257569495584 |     2.0466137712407586 |  -1.0243651093623702 |    1.294326372130622 |   1.1989205686621327 |    1.0558682325976894 |     1.81813815761126 |   0.6891762444002208 |   1.6299757753722472 |  0.41560836798473527 |    1.651708443480653 | 0.21821789023599217 | -0.07154357712369849 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br>|  -0.8834991551985119 | 0.0 | 0.0 | -0.316227766016838 | -0.316227766016838 |  0.5642527004653596 | 0.0 | 0.0 |   -1.2765512522952607 | -0.11030339805234216 | -0.21821789023599236 | -0.316227766016838 | 0.0 | 0.0 | 0.0 | -0.4714045207910318 | 0.0 | -0.4714045207910318 | 0.21821789023599217 | 0.21821789023599217 | 0.21821789023599217 | -0.39735970711951313 | -0.316227766016838 |   0.24988199668828523 |  0.24707302462417066 |    1.119391070213611 | -0.04884196823948337 | 0.0 | -0.21821789023599233 | -0.21821789023599233 | 0.0 | 0.0 | -0.13283402065741678 | -0.010101759719104141 |  0.14325678665916736 | -0.11486378983442272 | -0.06809151462973952 | -0.24231161228845044 | -0.24242003121472938 | -0.24182168666315132 | -0.24305254016154074 | -0.24249516313596764 | -0.24295505651337174 | -0.24281307254531004 |   0.13113180373758512 |  -1.0310814627022538 | -0.12686683199978438 |  -0.18225294720017632 | -0.316227766016838 | -0.013021803363541622 |    1.614757514707279 |  1.3228756555322954 | -0.21821789023599233 | 0.0 |   0.912870929175277 | 0.0 | 0.47140452079103157 | -0.316227766016838 |  -0.9568527370000176 |   1.1095859482252932 | 0.0 | 0.21821789023599217 | 0.0 | -0.316227766016838 | 0.0 | -0.21821789023599236 |      1.176730470007528 |  -1.3759718370930167 |    -0.91231395462673 |  -1.1100040441618673 |    -2.382890261010132 |  -1.4270980407854832 |  -0.5384363783566672 |  -0.5781809830082091 |  -0.6428373452039463 |  -0.7024371377748099 | 0.21821789023599217 |  -0.2637197805285026 | -0.21821789023599233 | -0.21821789023599233 | 0.31622776601683805 |<br>+----------------------+-----+-----+--------------------+--------------------+---------------------+-----+-----+-----------------------+----------------------+----------------------+--------------------+-----+-----+-----+---------------------+-----+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------+-----------------------+----------------------+----------------------+----------------------+-----+----------------------+----------------------+-----+-----+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+-----------------------+--------------------+-----------------------+----------------------+---------------------+----------------------+-----+---------------------+-----+---------------------+--------------------+----------------------+----------------------+-----+---------------------+-----+--------------------+-----+----------------------+------------------------+----------------------+----------------------+----------------------+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+---------------------+----------------------+----------------------+----------------------+---------------------+<br><br></pre><p>That’s it folks. We have setup a ML job which will continously be fed new datasets and will therefore continously get better at predicting our target outcome. Remember, the more dataset with equal distributions of our prediction classes the better.</p><p>In case, you missed it here is the githib repo 👉🏾<a href="https://github.com/mickalubs/machinelearning">https://github.com/mickalubs/machinelearning</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d7867339420" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Semantic search with Vector embeddings using Elasticsearch]]></title>
            <link>https://medium.com/@mickey.lubs/semantic-search-with-vector-embeddings-using-elasticsearch-6a47119fac92?source=rss-cf59434f0bce------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a47119fac92</guid>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[vector-search]]></category>
            <category><![CDATA[natural-language-process]]></category>
            <category><![CDATA[vector-search-engine]]></category>
            <category><![CDATA[semantic-search]]></category>
            <dc:creator><![CDATA[BigM]]></dc:creator>
            <pubDate>Fri, 27 Oct 2023 12:15:19 GMT</pubDate>
            <atom:updated>2023-10-27T12:15:19.201Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mOV8szZfcHr2WgMljNJTVg.png" /></figure><blockquote><strong>So, why vector search ? </strong>🤔</blockquote><blockquote><em>Vector search is an advanced search method that transforms data into high-dimensional vectors, capturing semantic relationships. <br>Each document or item becomes a vector in a multi-dimensional space, preserving context and nuances.</em></blockquote><blockquote><em>Vector search gives you context, meaning behind your query not just results of keywords matches and that what sets it apart from traditional search mechanism.</em></blockquote><blockquote><em>Unlike traditional </em><strong>full text searches</strong><em>, vector search calculates similarity between vectors, providing more accurate and contextually relevant results. Widely used in areas like </em><strong>natural language processing</strong><em> (</em><strong><em>NLP</em></strong><em>) and </em><strong>recommendation systems</strong><em>, vector search is at the forefront of enhancing </em><strong>how we retrieve and interact with information</strong><em>.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gZEvqVtgU1BuLXZrelsShA.png" /><figcaption>word embeddings</figcaption></figure><blockquote><strong>But how does Vector search extract meaning behind queries ?</strong></blockquote><blockquote><em>Data has to be converted to vector embeddings using machine learning models. Some examples … (Word2Vec, BERT, Doc2Vec, etc..). Both the queries and the search data goes through this process. When you do a search, it’s not text data anymore but embeddings similarity comparison that’s happening in the background.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pA9x48IK6RyKvtUHmRHV2Q.png" /><figcaption>Something like this</figcaption></figure><blockquote><strong>What use cases can Semantic Vector search help solve:</strong></blockquote><blockquote><em>· </em><strong><em>Retail</em></strong><em>: Upgrade your product search from lexical (keyword) to semantic search. Customize shopping experiences based on user behavior and preferences. Express intent multimodally — not just using text, but also using other modalities.</em></blockquote><blockquote><em>· </em><strong><em>Financial service</em></strong><em>: Improve modeling of risk and detection of fraud, personalize banking experiences, and provide more relevant and faster customer support.</em></blockquote><blockquote><em>· </em><strong><em>Pharmaceutical </em></strong><em>: Analyze genetic and chemical sequences to accelerate drug discovery. Suggest therapeutic approaches matching patient records and past cases. Deobfuscate novel aspects in patent research using aggregations.</em></blockquote><p>A more extensive detailed list can be found here on the Elasticsearch page 👉🏾 <a href="https://www.elastic.co/enterprise-search/vector-search">https://www.elastic.co/enterprise-search/vector-search</a></p><blockquote><strong>Let’s go through a quick (manual) showcase about this on Elasticsearch</strong></blockquote><p>Tasks to be performed here:<br> — Data to be converted into vector embeddings<br> — Index and mappings to be created on Elastic<br> — Data is indexed <br> — We can now query Elastic</p><p><strong>Convert data into embeddings using sbert</strong></p><pre>from sentence_transformers import SentenceTransformer,util<br>model = SentenceTransformer(&#39;all-mpnet-base-v2&#39;)<br><br>embedding = &#39;who is the best player in the world&#39;<br><br>query_embedding = model.encode(embedding, convert_to_tensor=True)<br><br># Create a dictionary with the text_data<br>json_data = {&quot;text&quot;: embedding, &quot;embedding&quot;: query_embedding.tolist()}<br><br># Convert the dictionary to a JSON-formatted string<br>json_string = json.dumps(json_data, indent=2)<br><br># Print the JSON string<br>print(json_string)</pre><p><strong>Create index and mappings on Elastic</strong></p><pre>PUT my_vector_index_3<br>{<br>  &quot;settings&quot;: {<br>    &quot;number_of_replicas&quot;: 0<br>  }, <br>  &quot;mappings&quot;: {<br>    &quot;properties&quot;: {<br>      &quot;embedding&quot;: {<br>        &quot;type&quot;: &quot;dense_vector&quot;,<br>        &quot;dims&quot;: 768,<br>        &quot;index&quot;: true<br>      },<br>      &quot;text&quot;: {<br>        &quot;type&quot;: &quot;text&quot;<br>      }<br>    }<br>  }<br>}</pre><pre>Note 💡 the dimensions we specified! which has to be the same as the ML model which encoded it.<br>In my case its Sbert model &quot;all-mpnet-base-v2&quot; which uses dimension of 768.</pre><p><strong>Index search data</strong></p><p>You can use various methods, for simplicity in this example we will use Elastic DLS to index the documents from Devtools:</p><pre>POST my_vector_index_3/_doc<br>{<br>  &quot;text&quot;: &quot;men sneakers&quot;,<br>  &quot;embedding&quot;: [<br>    0.004020906053483486,<br>    -0.059757526963949203,<br>     .....]<br>}</pre><p>Lets explore all the documents we’ve indexed. The field you want to pay attention to is “<strong>text</strong>”. So, this represents data in your search engine/ data store:</p><pre>&quot;hits&quot; : [<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;JTW_b4sB7aLP1NnlrxKM&quot;,<br>        &quot;_score&quot; : 1.0,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;This is an example text.&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;ejXBb4sB7aLP1NnlOBeh&quot;,<br>        &quot;_score&quot; : 1.0,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;go to your app store&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;qzXCb4sB7aLP1NnlJxrz&quot;,<br>        &quot;_score&quot; : 1.0,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;search for the app name you would like to download in the search bar&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;_DXDb4sB7aLP1NnlrB_K&quot;,<br>        &quot;_score&quot; : 1.0,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;once you have found, download the app&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;1zXFb4sB7aLP1NnlciUz&quot;,<br>        &quot;_score&quot; : 1.0,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;to acquire programming knowledge, you need to sign up to our portal&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;SjXHb4sB7aLP1NnlmS0S&quot;,<br>        &quot;_score&quot; : 1.0,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;men sneakers&quot;<br>        }<br>      }<br>    ]</pre><p>Now, let search 😋 :</p><p># <strong>Question 1</strong>: i need some shoes</p><pre>POST my_vector_index_3/_search<br>{<br>  &quot;_source&quot;: [&quot;text&quot;],<br>  &quot;query&quot;: {<br>    &quot;script_score&quot;: {<br>      &quot;query&quot;: {<br>        &quot;match_all&quot;: {}<br>      },<br>      &quot;script&quot;: {<br>        &quot;source&quot;: &quot;cosineSimilarity(params.query_vector, &#39;embedding&#39;) + 1.0&quot;,<br>        &quot;params&quot;: {<br>          &quot;query_vector&quot;: [-0.02279641292989254,<br>    0.07182382792234421,<br>    0.02181812934577465,<br>    0.016594499349594116,<br>    0.03784205764532089,<br>    0.007964749820530415,<br>    -0.07071194052696228,<br>    0.002693902002647519,<br>    0.03367474675178528,<br>    0.026933051645755768,<br>    0.007853562012314796,<br>    -0.035895731300115585,<br>    0.041111163794994354,<br>    ......]<br>        }<br>      }<br>    }<br>  }<br>}<br></pre><p>Results — you notice that “men sneakers” is on top, the first document returned, the most relevant across all the documents we have:</p><pre>&quot;hits&quot; : [<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;SjXHb4sB7aLP1NnlmS0S&quot;,<br>        &quot;_score&quot; : 1.5044371,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;men sneakers&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;ejXBb4sB7aLP1NnlOBeh&quot;,<br>        &quot;_score&quot; : 1.1193225,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;go to your app store&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;1zXFb4sB7aLP1NnlciUz&quot;,<br>        &quot;_score&quot; : 1.0777055,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;to acquire programming knowledge, you need to sign up to our portal&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;qzXCb4sB7aLP1NnlJxrz&quot;,<br>        &quot;_score&quot; : 1.0193437,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;search for the app name you would like to download in the search bar&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;_DXDb4sB7aLP1NnlrB_K&quot;,<br>        &quot;_score&quot; : 1.0025607,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;once you have found, download the app&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;JTW_b4sB7aLP1NnlrxKM&quot;,<br>        &quot;_score&quot; : 0.9591581,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;This is an example text.&quot;<br>        }<br>      }<br>    ]</pre><p># <strong>Question 2</strong>: how do install an application on my phone</p><p>Results — notice the the top results:</p><pre>&quot;hits&quot; : [<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;qzXCb4sB7aLP1NnlJxrz&quot;,<br>        &quot;_score&quot; : 1.5985566,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;search for the app name you would like to download in the search bar&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;ejXBb4sB7aLP1NnlOBeh&quot;,<br>        &quot;_score&quot; : 1.5524893,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;go to your app store&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;_DXDb4sB7aLP1NnlrB_K&quot;,<br>        &quot;_score&quot; : 1.4561604,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;once you have found, download the app&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;1zXFb4sB7aLP1NnlciUz&quot;,<br>        &quot;_score&quot; : 1.1462771,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;to acquire programming knowledge, you need to sign up to our portal&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;JTW_b4sB7aLP1NnlrxKM&quot;,<br>        &quot;_score&quot; : 1.0488365,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;This is an example text.&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;SjXHb4sB7aLP1NnlmS0S&quot;,<br>        &quot;_score&quot; : 1.03959,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;men sneakers&quot;<br>        }<br>      }<br>    ]</pre><p># <strong>Question 3</strong>: how do i learn how to code</p><pre>POST my_vector_index_3/_search<br>{<br>  &quot;_source&quot;: [&quot;text&quot;],<br>  &quot;query&quot;: {<br>    &quot;script_score&quot;: {<br>      &quot;query&quot;: {<br>        &quot;match_all&quot;: {}<br>      },<br>      &quot;script&quot;: {<br>        &quot;source&quot;: &quot;cosineSimilarity(params.query_vector, &#39;embedding&#39;) + 1.0&quot;,<br>        &quot;params&quot;: {<br>          &quot;query_vector&quot;: [<br>    0.001979067223146558,<br>    -0.025795960798859596,<br>    -0.032055746763944626,<br>    0.0434575118124485,<br>    0.014214670285582542,<br>    0.054628144949674606,<br>    -0.03570494428277016,<br>    ....<br>  ]<br>        }<br>      }<br>    }<br>  }<br>}</pre><p>Results — you start to see the possibilities:</p><pre>&quot;hits&quot; : [<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;1zXFb4sB7aLP1NnlciUz&quot;,<br>        &quot;_score&quot; : 1.6304966,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;to acquire programming knowledge, you need to sign up to our portal&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;_DXDb4sB7aLP1NnlrB_K&quot;,<br>        &quot;_score&quot; : 1.145816,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;once you have found, download the app&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;ejXBb4sB7aLP1NnlOBeh&quot;,<br>        &quot;_score&quot; : 1.1392682,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;go to your app store&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;qzXCb4sB7aLP1NnlJxrz&quot;,<br>        &quot;_score&quot; : 1.0863104,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;search for the app name you would like to download in the search bar&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;JTW_b4sB7aLP1NnlrxKM&quot;,<br>        &quot;_score&quot; : 1.0821862,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;This is an example text.&quot;<br>        }<br>      },<br>      {<br>        &quot;_index&quot; : &quot;my_vector_index_3&quot;,<br>        &quot;_type&quot; : &quot;_doc&quot;,<br>        &quot;_id&quot; : &quot;SjXHb4sB7aLP1NnlmS0S&quot;,<br>        &quot;_score&quot; : 1.0213398,<br>        &quot;_source&quot; : {<br>          &quot;text&quot; : &quot;men sneakers&quot;<br>        }<br>      }<br>    ]</pre><p>That’s it! this was a short walkthrough about leveraging vector search with Elastic to achieve semantic search results, hope it was insightful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a47119fac92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cybersecurity with Elastic SIEM]]></title>
            <link>https://blog.devgenius.io/cybersecurity-with-elastic-siem-4d542c6d09f3?source=rss-cf59434f0bce------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d542c6d09f3</guid>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[data-engineer]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[BigM]]></dc:creator>
            <pubDate>Tue, 17 Oct 2023 12:02:22 GMT</pubDate>
            <atom:updated>2023-10-19T16:43:44.135Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JTHXheHF8tTE3GA9t31Q1w.png" /></figure><blockquote><strong>What is Elasticsearch?</strong></blockquote><p>Elasticsearch is known as a NO-SQL database. At its core, it’s a Restful API search engine. It allows you to stream data into it from various endpoint and stores it on Elastic to be used for many use cases.</p><p>Elastic handles text and numerical data very well …</p><p>As a <strong><em>full text search engine</em></strong>, Elastic uses <strong>inverted indexing</strong> model to store data. What that means is that every word is broken down into token which are mapped to document ID where they reside. That enables Elastic to return search results really quickly because it doesn’t have the scan through the entire data store. To give you context it uses relevancy in the backend to find out how frequently a word/term is used in a document together with positioning (<strong>phrase_match</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RETWJtaxwsDcWQY8F4qokw.png" /><figcaption>Inverted index</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LI1aYTtpXN5Ege6rgfvXYA.png" /><figcaption>Inverted index</figcaption></figure><p>As an <strong>Analytical engine</strong>, it gives you all the ability to run all sorts of aggregations on the data and do windowing of events (within timelines, what’s been the count of <strong>X</strong> or min, max values, etc)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*--MWYDrBDnKG0COfUWhOYg.png" /></figure><p>Elastic is a distributed cluster in nature so data is spread across any number of data nodes to give you fast/parallel search, high ingestion throughput and ensure redundancy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BvaggyyPzRwIsF_DkJsNJg.png" /><figcaption>typical cluster formation</figcaption></figure><p>As an <strong>Observability tool</strong>, it shines really well as it’s able to integrate with many endpoints and correlate logs to give you a <strong>Unify view</strong> of your estate. (host logs, metrics, APM, up time, Network appliances IDS, IPS and more)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xsG6mnduqIDumspn8kKH_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*45KLiQN-mcWCJAJ78sD2lg.png" /></figure><p>So, let say we are looking after a company’s IT infrastructure. This company offers its services online via a web interface. This company has typical 3 layer model with frontend, application and database layer in the backend. We are responsible of protecting this customer’s IT infrastructure from a security stand point. We decided to use Elastic as our central logging system so monitor, understand patterns and detecs anomalies in realtime.</p><blockquote><strong>Elastic is a search engine so let ask it some intelligent questions in order to gather some useful insights about our security space.</strong></blockquote><p>What’s the distribution of http error codes across countries hiting our web server ?</p><pre>GET .ds-logs-nginx.access-*/_search<br>{<br>  &quot;size&quot;: 0, <br>  &quot;aggs&quot;: {<br>    &quot;COUNTRY&quot;: {<br>      &quot;terms&quot;: {<br>        &quot;field&quot;: &quot;source.geo.country_name&quot;<br>      },<br>      &quot;aggs&quot;: {<br>        &quot;COUNT&quot;: {<br>          &quot;terms&quot;: {<br>            &quot;field&quot;: &quot;http.response.status_code&quot;<br>          }<br>        }<br>      }<br>    }<br>  }<br>}</pre><pre>{<br>  &quot;took&quot;: 12,<br>  &quot;timed_out&quot;: false,<br>  &quot;_shards&quot;: {<br>    &quot;total&quot;: 1,<br>    &quot;successful&quot;: 1,<br>    &quot;skipped&quot;: 0,<br>    &quot;failed&quot;: 0<br>  },<br>  &quot;hits&quot;: {<br>    &quot;total&quot;: {<br>      &quot;value&quot;: 6347,<br>      &quot;relation&quot;: &quot;eq&quot;<br>    },<br>    &quot;max_score&quot;: null,<br>    &quot;hits&quot;: []<br>  },<br>  &quot;aggregations&quot;: {<br>    &quot;COUNTRY&quot;: {<br>      &quot;doc_count_error_upper_bound&quot;: 0,<br>      &quot;sum_other_doc_count&quot;: 102,<br>      &quot;buckets&quot;: [<br>        {<br>          &quot;key&quot;: &quot;Singapore&quot;,<br>          &quot;doc_count&quot;: 3650,<br>          &quot;COUNT&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: 404,<br>                &quot;doc_count&quot;: 3645<br>              },<br>              {<br>                &quot;key&quot;: 400,<br>                &quot;doc_count&quot;: 4<br>              },<br>              {<br>                &quot;key&quot;: 200,<br>                &quot;doc_count&quot;: 1<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;United Arab Emirates&quot;,<br>          &quot;doc_count&quot;: 1360,<br>          &quot;COUNT&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: 200,<br>                &quot;doc_count&quot;: 1308<br>              },<br>              {<br>                &quot;key&quot;: 304,<br>                &quot;doc_count&quot;: 19<br>              },<br>              {<br>                &quot;key&quot;: 303,<br>                &quot;doc_count&quot;: 12<br>              },<br>              {<br>                &quot;key&quot;: 404,<br>                &quot;doc_count&quot;: 12<br>              },<br>              {<br>                &quot;key&quot;: 499,<br>                &quot;doc_count&quot;: 9<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;United States&quot;,<br>          &quot;doc_count&quot;: 675,<br>          &quot;COUNT&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: 404,<br>                &quot;doc_count&quot;: 457<br>              },<br>              {<br>                &quot;key&quot;: 400,<br>                &quot;doc_count&quot;: 87<br>              },<br>              {<br>                &quot;key&quot;: 200,<br>                &quot;doc_count&quot;: 80<br>              },<br>              {<br>                &quot;key&quot;: 405,<br>                &quot;doc_count&quot;: 42<br>              },<br>              {<br>                &quot;key&quot;: 301,<br>                &quot;doc_count&quot;: 9<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Russia&quot;,<br>          &quot;doc_count&quot;: 175,<br>          &quot;COUNT&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: 404,<br>                &quot;doc_count&quot;: 156<br>              },<br>              {<br>                &quot;key&quot;: 200,<br>                &quot;doc_count&quot;: 10<br>              },<br>              {<br>                &quot;key&quot;: 400,<br>                &quot;doc_count&quot;: 8<br>              },<br>              {<br>                &quot;key&quot;: 405,<br>                &quot;doc_count&quot;: 1<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;France&quot;,<br>          &quot;doc_count&quot;: 104,<br>          &quot;COUNT&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: 404,<br>                &quot;doc_count&quot;: 51<br>              },<br>              {<br>                &quot;key&quot;: 405,<br>                &quot;doc_count&quot;: 50<br>              },<br>              {<br>                &quot;key&quot;: 200,<br>                &quot;doc_count&quot;: 3<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;United Kingdom&quot;,<br>          &quot;doc_count&quot;: 101,<br>          &quot;COUNT&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: 400,<br>                &quot;doc_count&quot;: 48<br>              },<br>              {<br>                &quot;key&quot;: 404,<br>                &quot;doc_count&quot;: 38<br>              },<br>              {<br>                &quot;key&quot;: 200,<br>                &quot;doc_count&quot;: 11<br>              },<br>              {<br>                &quot;key&quot;: 405,<br>                &quot;doc_count&quot;: 3<br>              },<br>              {<br>                &quot;key&quot;: 413,<br>                &quot;doc_count&quot;: 1<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Hong Kong&quot;,<br>          &quot;doc_count&quot;: 76,<br>          &quot;COUNT&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: 404,<br>                &quot;doc_count&quot;: 75<br>              },<br>              {<br>                &quot;key&quot;: 200,<br>                &quot;doc_count&quot;: 1<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Netherlands&quot;,<br>          &quot;doc_count&quot;: 47,<br>          &quot;COUNT&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: 404,<br>                &quot;doc_count&quot;: 31<br>              },<br>              {<br>                &quot;key&quot;: 400,<br>                &quot;doc_count&quot;: 7<br>              },<br>              {<br>                &quot;key&quot;: 200,<br>                &quot;doc_count&quot;: 6<br>              },<br>              {<br>                &quot;key&quot;: 405,<br>                &quot;doc_count&quot;: 2<br>              },<br>              {<br>                &quot;key&quot;: 301,<br>                &quot;doc_count&quot;: 1<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Japan&quot;,<br>          &quot;doc_count&quot;: 32,<br>          &quot;COUNT&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: 301,<br>                &quot;doc_count&quot;: 27<br>              },<br>              {<br>                &quot;key&quot;: 400,<br>                &quot;doc_count&quot;: 5<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Indonesia&quot;,<br>          &quot;doc_count&quot;: 25,<br>          &quot;COUNT&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: 404,<br>                &quot;doc_count&quot;: 23<br>              },<br>              {<br>                &quot;key&quot;: 200,<br>                &quot;doc_count&quot;: 2<br>              }<br>            ]<br>          }<br>        }<br>      ]<br>    }<br>  }<br>}</pre><p>Good but can we break this down by cities for the past 24 hours ?</p><pre>GET .ds-logs-nginx.access-*/_search<br>{<br>  &quot;size&quot;: 0, <br>  &quot;query&quot;: {<br>    &quot;bool&quot;: {<br>      &quot;filter&quot;: [<br>        {<br>          &quot;range&quot;: {<br>            &quot;@timestamp&quot;: {<br>              &quot;gte&quot;: &quot;now-24h/m&quot;,<br>              &quot;lte&quot;: &quot;now/m&quot;<br>            }<br>          }<br>        }<br>      ]<br>    }<br>  }, <br>  &quot;aggs&quot;: {<br>    &quot;COUNTRY&quot;: {<br>      &quot;terms&quot;: {<br>        &quot;field&quot;: &quot;source.geo.country_name&quot;<br>      },<br>      &quot;aggs&quot;: {<br>        &quot;CITY&quot;: {<br>          &quot;terms&quot;: {<br>            &quot;field&quot;: &quot;source.geo.city_name&quot;<br>          },<br>          &quot;aggs&quot;: {<br>            &quot;CODE&quot;: {<br>              &quot;terms&quot;: {<br>                &quot;field&quot;: &quot;http.response.status_code&quot;<br>              }<br>            }<br>          }<br>        }<br>      }<br>    }<br>  }<br>}</pre><pre>{<br>  &quot;took&quot;: 7,<br>  &quot;timed_out&quot;: false,<br>  &quot;_shards&quot;: {<br>    &quot;total&quot;: 1,<br>    &quot;successful&quot;: 1,<br>    &quot;skipped&quot;: 0,<br>    &quot;failed&quot;: 0<br>  },<br>  &quot;hits&quot;: {<br>    &quot;total&quot;: {<br>      &quot;value&quot;: 235,<br>      &quot;relation&quot;: &quot;eq&quot;<br>    },<br>    &quot;max_score&quot;: null,<br>    &quot;hits&quot;: []<br>  },<br>  &quot;aggregations&quot;: {<br>    &quot;COUNTRY&quot;: {<br>      &quot;doc_count_error_upper_bound&quot;: 0,<br>      &quot;sum_other_doc_count&quot;: 14,<br>      &quot;buckets&quot;: [<br>        {<br>          &quot;key&quot;: &quot;United States&quot;,<br>          &quot;doc_count&quot;: 135,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 1,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Boardman&quot;,<br>                &quot;doc_count&quot;: 85,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 85<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;New York&quot;,<br>                &quot;doc_count&quot;: 12,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 6<br>                    },<br>                    {<br>                      &quot;key&quot;: 405,<br>                      &quot;doc_count&quot;: 6<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;San Francisco&quot;,<br>                &quot;doc_count&quot;: 8,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 6<br>                    },<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 1<br>                    },<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Tappahannock&quot;,<br>                &quot;doc_count&quot;: 4,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 2<br>                    },<br>                    {<br>                      &quot;key&quot;: 405,<br>                      &quot;doc_count&quot;: 2<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Cedar Knolls&quot;,<br>                &quot;doc_count&quot;: 2,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 2<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Columbus&quot;,<br>                &quot;doc_count&quot;: 2,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 2<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;North Charleston&quot;,<br>                &quot;doc_count&quot;: 2,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 2<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Ashburn&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Dudley&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Richmond&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;France&quot;,<br>          &quot;doc_count&quot;: 28,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: []<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Turkey&quot;,<br>          &quot;doc_count&quot;: 17,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Balıkesir&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Hong Kong&quot;,<br>          &quot;doc_count&quot;: 15,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Hong Kong&quot;,<br>                &quot;doc_count&quot;: 15,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 15<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Netherlands&quot;,<br>          &quot;doc_count&quot;: 7,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Amsterdam&quot;,<br>                &quot;doc_count&quot;: 3,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 1<br>                    },<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 1<br>                    },<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Groningen&quot;,<br>                &quot;doc_count&quot;: 2,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 1<br>                    },<br>                    {<br>                      &quot;key&quot;: 405,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Eygelshoven&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Japan&quot;,<br>          &quot;doc_count&quot;: 6,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Tokyo&quot;,<br>                &quot;doc_count&quot;: 6,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 301,<br>                      &quot;doc_count&quot;: 6<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;United Kingdom&quot;,<br>          &quot;doc_count&quot;: 5,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;London&quot;,<br>                &quot;doc_count&quot;: 2,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 2<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Poplar&quot;,<br>                &quot;doc_count&quot;: 2,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 1<br>                    },<br>                    {<br>                      &quot;key&quot;: 405,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;China&quot;,<br>          &quot;doc_count&quot;: 3,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Shenzhen&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Russia&quot;,<br>          &quot;doc_count&quot;: 3,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Moscow&quot;,<br>                &quot;doc_count&quot;: 2,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 1<br>                    },<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Makhachkala&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Canada&quot;,<br>          &quot;doc_count&quot;: 2,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Toronto&quot;,<br>                &quot;doc_count&quot;: 2,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 1<br>                    },<br>                    {<br>                      &quot;key&quot;: 405,<br>                      &quot;doc_count&quot;: 1<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        }<br>      ]<br>    }<br>  }<br>}</pre><p>Good! Break it down even further to identify the source IPs associated with each error code but this time i’m only interested in the top 5 countries.</p><pre>GET .ds-logs-nginx.access-*/_search<br>{<br>  &quot;size&quot;: 0, <br>  &quot;aggs&quot;: {<br>    &quot;COUNTRY&quot;: {<br>      &quot;terms&quot;: {<br>        &quot;field&quot;: &quot;source.geo.country_name&quot;,<br>        &quot;size&quot;: 5<br>      },<br>      &quot;aggs&quot;: {<br>        &quot;CITY&quot;: {<br>          &quot;terms&quot;: {<br>            &quot;field&quot;: &quot;source.geo.city_name&quot;<br>          },<br>          &quot;aggs&quot;: {<br>            &quot;CODE&quot;: {<br>              &quot;terms&quot;: {<br>                &quot;field&quot;: &quot;http.response.status_code&quot;<br>              },<br>              &quot;aggs&quot;: {<br>                &quot;NAME&quot;: {<br>                  &quot;terms&quot;: {<br>                    &quot;field&quot;: &quot;source.ip&quot;<br>                  }<br>                }<br>              }<br>            }<br>          }<br>        }<br>      }<br>    }<br>  }<br>}</pre><pre>{<br>  &quot;took&quot;: 1,<br>  &quot;timed_out&quot;: false,<br>  &quot;_shards&quot;: {<br>    &quot;total&quot;: 1,<br>    &quot;successful&quot;: 1,<br>    &quot;skipped&quot;: 0,<br>    &quot;failed&quot;: 0<br>  },<br>  &quot;hits&quot;: {<br>    &quot;total&quot;: {<br>      &quot;value&quot;: 6347,<br>      &quot;relation&quot;: &quot;eq&quot;<br>    },<br>    &quot;max_score&quot;: null,<br>    &quot;hits&quot;: []<br>  },<br>  &quot;aggregations&quot;: {<br>    &quot;COUNTRY&quot;: {<br>      &quot;doc_count_error_upper_bound&quot;: 0,<br>      &quot;sum_other_doc_count&quot;: 383,<br>      &quot;buckets&quot;: [<br>        {<br>          &quot;key&quot;: &quot;Singapore&quot;,<br>          &quot;doc_count&quot;: 3650,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: []<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;United Arab Emirates&quot;,<br>          &quot;doc_count&quot;: 1360,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Dubai&quot;,<br>                &quot;doc_count&quot;: 787,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 747,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;5.195.231.50&quot;,<br>                            &quot;doc_count&quot;: 747<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 304,<br>                      &quot;doc_count&quot;: 14,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;5.195.250.32&quot;,<br>                            &quot;doc_count&quot;: 14<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 303,<br>                      &quot;doc_count&quot;: 11,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;5.195.250.32&quot;,<br>                            &quot;doc_count&quot;: 11<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 10,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;5.195.250.32&quot;,<br>                            &quot;doc_count&quot;: 10<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 499,<br>                      &quot;doc_count&quot;: 5,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;5.195.250.32&quot;,<br>                            &quot;doc_count&quot;: 5<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Abu Dhabi&quot;,<br>                &quot;doc_count&quot;: 573,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 561,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;217.164.138.61&quot;,<br>                            &quot;doc_count&quot;: 561<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 304,<br>                      &quot;doc_count&quot;: 5,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;217.164.138.61&quot;,<br>                            &quot;doc_count&quot;: 5<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 499,<br>                      &quot;doc_count&quot;: 4,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;217.164.138.61&quot;,<br>                            &quot;doc_count&quot;: 4<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 2,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;217.164.138.61&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 303,<br>                      &quot;doc_count&quot;: 1,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;217.164.138.61&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;United States&quot;,<br>          &quot;doc_count&quot;: 675,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 13,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Boardman&quot;,<br>                &quot;doc_count&quot;: 345,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 343,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;52.25.199.217&quot;,<br>                            &quot;doc_count&quot;: 170<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;54.245.146.6&quot;,<br>                            &quot;doc_count&quot;: 85<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;35.92.223.53&quot;,<br>                            &quot;doc_count&quot;: 65<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;35.164.58.220&quot;,<br>                            &quot;doc_count&quot;: 21<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;18.237.11.253&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;52.35.139.129&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 405,<br>                      &quot;doc_count&quot;: 2,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;35.92.223.53&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;35.164.58.220&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Ashburn&quot;,<br>                &quot;doc_count&quot;: 81,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 36,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;54.80.185.234&quot;,<br>                            &quot;doc_count&quot;: 28<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;3.223.72.184&quot;,<br>                            &quot;doc_count&quot;: 5<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;34.197.127.12&quot;,<br>                            &quot;doc_count&quot;: 3<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 27,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;54.80.185.234&quot;,<br>                            &quot;doc_count&quot;: 18<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;34.204.201.168&quot;,<br>                            &quot;doc_count&quot;: 4<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;3.223.72.184&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;3.93.76.206&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;34.197.127.12&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;54.235.20.33&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 18,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;54.80.185.234&quot;,<br>                            &quot;doc_count&quot;: 10<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;3.223.72.184&quot;,<br>                            &quot;doc_count&quot;: 4<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;18.212.226.163&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;34.197.127.12&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;New York&quot;,<br>                &quot;doc_count&quot;: 77,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 40,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;185.254.196.173&quot;,<br>                            &quot;doc_count&quot;: 29<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;185.254.196.186&quot;,<br>                            &quot;doc_count&quot;: 11<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 405,<br>                      &quot;doc_count&quot;: 37,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;185.254.196.173&quot;,<br>                            &quot;doc_count&quot;: 26<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;185.254.196.186&quot;,<br>                            &quot;doc_count&quot;: 11<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;San Francisco&quot;,<br>                &quot;doc_count&quot;: 18,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 11,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 1,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;107.170.232.53&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;107.170.239.49&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;107.170.242.12&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;107.170.252.35&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;162.243.132.34&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.241.196.75&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.241.207.94&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.241.222.77&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.241.225.27&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;198.199.95.88&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 5,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;162.243.151.13&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.241.197.22&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.241.207.100&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;198.199.94.19&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;198.199.101.17&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 2,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;162.243.151.36&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.241.196.60&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Clifton&quot;,<br>                &quot;doc_count&quot;: 16,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 10,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;174.138.66.99&quot;,<br>                            &quot;doc_count&quot;: 10<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 4,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;174.138.66.99&quot;,<br>                            &quot;doc_count&quot;: 3<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;167.71.102.95&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 2,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;174.138.66.99&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Cedar Knolls&quot;,<br>                &quot;doc_count&quot;: 14,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 12,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;45.79.181.104&quot;,<br>                            &quot;doc_count&quot;: 3<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;45.79.181.251&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;45.79.181.94&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;45.79.181.179&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;45.79.181.223&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;172.104.11.34&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;172.104.11.51&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;172.105.128.11&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.155.90.118&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 2,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;45.33.87.154&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;45.79.181.251&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;White Salmon&quot;,<br>                &quot;doc_count&quot;: 12,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 6,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.79&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.39&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.44&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.218&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.219&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 3,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.33&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.79&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.212&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 3,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.14&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.35&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.94&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Columbus&quot;,<br>                &quot;doc_count&quot;: 10,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 10,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;18.223.113.110&quot;,<br>                            &quot;doc_count&quot;: 6<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;3.133.130.45&quot;,<br>                            &quot;doc_count&quot;: 4<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Tappahannock&quot;,<br>                &quot;doc_count&quot;: 7,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 3,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;20.106.211.168&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;172.178.81.138&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 405,<br>                      &quot;doc_count&quot;: 3,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;20.106.211.168&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;172.178.81.138&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 1,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;172.178.81.138&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;North Charleston&quot;,<br>                &quot;doc_count&quot;: 6,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 6,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;162.216.149.99&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;162.216.149.164&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;162.216.149.252&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;162.216.150.37&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;162.216.150.69&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;162.216.150.132&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Russia&quot;,<br>          &quot;doc_count&quot;: 175,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Moscow&quot;,<br>                &quot;doc_count&quot;: 10,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 400,<br>                      &quot;doc_count&quot;: 6,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;87.251.64.11&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;109.237.97.180&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;109.237.98.226&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          }<br>                        ]<br>                      }<br>                    },<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 4,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;109.237.97.180&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;109.237.98.226&quot;,<br>                            &quot;doc_count&quot;: 2<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Makhachkala&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 1,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;176.120.213.184&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;France&quot;,<br>          &quot;doc_count&quot;: 104,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Le Grau-du-Roi&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 1,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;5.196.102.73&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Narbonne&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 1,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;86.227.124.164&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Paris&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 200,<br>                      &quot;doc_count&quot;: 1,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;81.250.142.187&quot;,<br>                            &quot;doc_count&quot;: 1<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        }<br>      ]<br>    }<br>  }<br>}</pre><p>Now, let get the source ip addresses associated with a specific http error code. We’ll pick 404.</p><pre>GET .ds-logs-nginx.access-*/_search<br>{<br>  &quot;size&quot;: 0,<br>  &quot;query&quot;: {<br>    &quot;bool&quot;: {<br>      &quot;must&quot;: [<br>        {<br>          &quot;match&quot;: {<br>            &quot;http.response.status_code&quot;: &quot;404&quot;<br>          }<br>        }<br>      ]<br>    }<br>  }, <br>  &quot;aggs&quot;: {<br>    &quot;COUNTRY&quot;: {<br>      &quot;terms&quot;: {<br>        &quot;field&quot;: &quot;source.geo.country_name&quot;,<br>        &quot;min_doc_count&quot;: 1<br>      },<br>      &quot;aggs&quot;: {<br>        &quot;CITY&quot;: {<br>          &quot;terms&quot;: {<br>            &quot;field&quot;: &quot;source.geo.city_name&quot;<br>          },<br>          &quot;aggs&quot;: {<br>            &quot;CODE&quot;: {<br>              &quot;terms&quot;: {<br>                &quot;field&quot;: &quot;http.response.status_code&quot;<br>              },<br>              &quot;aggs&quot;: {<br>                &quot;NAME&quot;: {<br>                  &quot;terms&quot;: {<br>                    &quot;field&quot;: &quot;source.ip&quot;<br>                  }<br>                }<br>              }<br>            }<br>          }<br>        }<br>      }<br>    }<br>  }<br>}</pre><p>Let say, we are interested in a particular error code … code 404, can we identify who’s getting this errors on our web server ?</p><pre>GET .ds-logs-nginx.access-*/_search<br>{<br>  &quot;size&quot;: 0,<br>  &quot;query&quot;: {<br>    &quot;bool&quot;: {<br>      &quot;must&quot;: [<br>        {<br>          &quot;match&quot;: {<br>            &quot;http.response.status_code&quot;: &quot;404&quot;<br>          }<br>        }<br>      ]<br>    }<br>  }, <br>  &quot;aggs&quot;: {<br>    &quot;COUNTRY&quot;: {<br>      &quot;terms&quot;: {<br>        &quot;field&quot;: &quot;source.geo.country_name&quot;,<br>        &quot;min_doc_count&quot;: 1<br>      },<br>      &quot;aggs&quot;: {<br>        &quot;CITY&quot;: {<br>          &quot;terms&quot;: {<br>            &quot;field&quot;: &quot;source.geo.city_name&quot;<br>          },<br>          &quot;aggs&quot;: {<br>            &quot;CODE&quot;: {<br>              &quot;terms&quot;: {<br>                &quot;field&quot;: &quot;http.response.status_code&quot;<br>              },<br>              &quot;aggs&quot;: {<br>                &quot;NAME&quot;: {<br>                  &quot;terms&quot;: {<br>                    &quot;field&quot;: &quot;source.ip&quot;<br>                  }<br>                }<br>              }<br>            }<br>          }<br>        }<br>      }<br>    }<br>  }<br>}</pre><p>But, what are these source ips trying to access ???</p><pre>GET .ds-logs-nginx.access-*/_search<br>{<br>  &quot;size&quot;: 0,<br>  &quot;query&quot;: {<br>    &quot;bool&quot;: {<br>      &quot;must&quot;: [<br>        {<br>          &quot;match&quot;: {<br>            &quot;http.response.status_code&quot;: &quot;404&quot;<br>          }<br>        }<br>      ]<br>    }<br>  }, <br>  &quot;aggs&quot;: {<br>    &quot;COUNTRY&quot;: {<br>      &quot;terms&quot;: {<br>        &quot;field&quot;: &quot;source.geo.country_name&quot;,<br>        &quot;min_doc_count&quot;: 1<br>      },<br>      &quot;aggs&quot;: {<br>        &quot;CITY&quot;: {<br>          &quot;terms&quot;: {<br>            &quot;field&quot;: &quot;source.geo.city_name&quot;<br>          },<br>          &quot;aggs&quot;: {<br>            &quot;CODE&quot;: {<br>              &quot;terms&quot;: {<br>                &quot;field&quot;: &quot;http.response.status_code&quot;<br>              },<br>              &quot;aggs&quot;: {<br>                &quot;NAME&quot;: {<br>                  &quot;terms&quot;: {<br>                    &quot;field&quot;: &quot;source.ip&quot;<br>                  },<br>                  &quot;aggs&quot;: {<br>                    &quot;URL&quot;: {<br>                      &quot;terms&quot;: {<br>                        &quot;field&quot;: &quot;url.path&quot;<br>                      }<br>                    }<br>                  }<br>                }<br>              }<br>            }<br>          }<br>        }<br>      }<br>    }<br>  }<br>}</pre><pre>{<br>  &quot;took&quot;: 11,<br>  &quot;timed_out&quot;: false,<br>  &quot;_shards&quot;: {<br>    &quot;total&quot;: 1,<br>    &quot;successful&quot;: 1,<br>    &quot;skipped&quot;: 0,<br>    &quot;failed&quot;: 0<br>  },<br>  &quot;hits&quot;: {<br>    &quot;total&quot;: {<br>      &quot;value&quot;: 4540,<br>      &quot;relation&quot;: &quot;eq&quot;<br>    },<br>    &quot;max_score&quot;: null,<br>    &quot;hits&quot;: []<br>  },<br>  &quot;aggregations&quot;: {<br>    &quot;COUNTRY&quot;: {<br>      &quot;doc_count_error_upper_bound&quot;: 0,<br>      &quot;sum_other_doc_count&quot;: 37,<br>      &quot;buckets&quot;: [<br>        {<br>          &quot;key&quot;: &quot;Singapore&quot;,<br>          &quot;doc_count&quot;: 3645,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: []<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;United States&quot;,<br>          &quot;doc_count&quot;: 457,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Boardman&quot;,<br>                &quot;doc_count&quot;: 343,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 343,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;52.25.199.217&quot;,<br>                            &quot;doc_count&quot;: 170,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 130,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.aws/credentials&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.development&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.dist&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.old&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.prod&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.production&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.project&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.save&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/admin-app/.env&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;54.245.146.6&quot;,<br>                            &quot;doc_count&quot;: 85,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 65,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.aws/credentials&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.development&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.dist&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.old&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.prod&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.production&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.project&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.save&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/admin-app/.env&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;35.92.223.53&quot;,<br>                            &quot;doc_count&quot;: 65,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 52,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/docker/.env&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/info.php&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/phpinfo.php&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.aws/credentials&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.development&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.dist&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.old&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.prod&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/.env.production&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;35.164.58.220&quot;,<br>                            &quot;doc_count&quot;: 21,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 11,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/4093d9b170.js&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/api/.env&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/assets/front/js/custom.js&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/assets/front/js/main.js&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/assets/js/app.js&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/assets/js/custom.js&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/assets/js/main.js&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/assets/js/vendor.main.js&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/env.bak&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/frontend/js/app.js&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;18.237.11.253&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.git/config&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;52.35.139.129&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.git/HEAD&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;New York&quot;,<br>                &quot;doc_count&quot;: 40,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 40,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;185.254.196.173&quot;,<br>                            &quot;doc_count&quot;: 29,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.env&quot;,<br>                                  &quot;doc_count&quot;: 29<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;185.254.196.186&quot;,<br>                            &quot;doc_count&quot;: 11,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.env&quot;,<br>                                  &quot;doc_count&quot;: 11<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Ashburn&quot;,<br>                &quot;doc_count&quot;: 27,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 27,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;54.80.185.234&quot;,<br>                            &quot;doc_count&quot;: 18,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/cdn-cgi/trace&quot;,<br>                                  &quot;doc_count&quot;: 18<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;34.204.201.168&quot;,<br>                            &quot;doc_count&quot;: 4,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.git/config&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;3.223.72.184&quot;,<br>                            &quot;doc_count&quot;: 2,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/cdn-cgi/trace&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;3.93.76.206&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.git/config&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;34.197.127.12&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/cdn-cgi/trace&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;54.235.20.33&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.git/HEAD&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;San Francisco&quot;,<br>                &quot;doc_count&quot;: 11,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 11,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 1,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;107.170.232.53&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/manager/text/list&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;107.170.239.49&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/manager/text/list&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;107.170.242.12&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/actuator/health&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;107.170.252.35&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/manager/text/list&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;162.243.132.34&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/hudson&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.241.196.75&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/druid/index.html&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.241.207.94&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/actuator/health&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.241.222.77&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/manager/html&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;192.241.225.27&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/druid/index.html&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;198.199.95.88&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/actuator/health&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Clifton&quot;,<br>                &quot;doc_count&quot;: 10,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 10,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;174.138.66.99&quot;,<br>                            &quot;doc_count&quot;: 10,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/1.php&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/bundle.js&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/favicon.ico&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/files/&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/form.html&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/geoip/&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/info.php&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/password.php&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/systembc/password.php&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/upl.php&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;White Salmon&quot;,<br>                &quot;doc_count&quot;: 6,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 6,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.79&quot;,<br>                            &quot;doc_count&quot;: 2,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/favicon.ico&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/geoserver/web/&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.39&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/geoserver/web/&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.44&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/favicon.ico&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.218&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/geoserver/web/&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;64.62.197.219&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/favicon.ico&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Tappahannock&quot;,<br>                &quot;doc_count&quot;: 3,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 3,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;20.106.211.168&quot;,<br>                            &quot;doc_count&quot;: 2,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.env&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;172.178.81.138&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.env&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Cazadero&quot;,<br>                &quot;doc_count&quot;: 2,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 2,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;216.218.206.67&quot;,<br>                            &quot;doc_count&quot;: 2,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/favicon.ico&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/geoserver/web/&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Dudley&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 1,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;66.189.122.244&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/cgi-bin-igd/netcore_get.cgi&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Russia&quot;,<br>          &quot;doc_count&quot;: 156,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Moscow&quot;,<br>                &quot;doc_count&quot;: 4,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 4,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;109.237.97.180&quot;,<br>                            &quot;doc_count&quot;: 2,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.env&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;109.237.98.226&quot;,<br>                            &quot;doc_count&quot;: 2,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.env&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Hong Kong&quot;,<br>          &quot;doc_count&quot;: 75,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Hong Kong&quot;,<br>                &quot;doc_count&quot;: 75,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 75,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;43.155.118.219&quot;,<br>                            &quot;doc_count&quot;: 39,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/Core/Skin/Login.aspx&quot;,<br>                                  &quot;doc_count&quot;: 39<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;43.154.8.109&quot;,<br>                            &quot;doc_count&quot;: 36,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/Core/Skin/Login.aspx&quot;,<br>                                  &quot;doc_count&quot;: 36<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;France&quot;,<br>          &quot;doc_count&quot;: 51,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Le Grau-du-Roi&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 1,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;5.196.102.73&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/favicon.ico&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;United Kingdom&quot;,<br>          &quot;doc_count&quot;: 38,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;London&quot;,<br>                &quot;doc_count&quot;: 37,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 37,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;3.10.141.193&quot;,<br>                            &quot;doc_count&quot;: 32,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 21,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/NPClient.html&quot;,<br>                                  &quot;doc_count&quot;: 2<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/+CSCOE+/logon.html&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/2.0/gui/&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/Login.html&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/WebViewer.html&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/admin/index.html&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/api/v1/charts&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/apps&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/cgi-bin/login.cgi&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/doc/page/login.asp&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;185.91.69.110&quot;,<br>                            &quot;doc_count&quot;: 5,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/SiteLoader&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/WuEL&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/a&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/download/file.ext&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/mPlayer&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Poplar&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 1,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;83.229.69.160&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.env&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Netherlands&quot;,<br>          &quot;doc_count&quot;: 31,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Amsterdam&quot;,<br>                &quot;doc_count&quot;: 30,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 30,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;94.156.253.57&quot;,<br>                            &quot;doc_count&quot;: 23,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 13,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.travis.yml&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/app/config/parameters.yml&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/app_dev.php/_profiler/open&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/application/configs/application.ini&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/config.json&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/config.py&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/config/&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/config/.travis.yml&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/config/app/config/parameters.yml&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/config/app_dev.php/_profiler/open&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;185.216.71.70&quot;,<br>                            &quot;doc_count&quot;: 4,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.git/config&quot;,<br>                                  &quot;doc_count&quot;: 4<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;188.166.71.161&quot;,<br>                            &quot;doc_count&quot;: 2,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/aaa9&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/aab8&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          },<br>                          {<br>                            &quot;key&quot;: &quot;81.161.229.133&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/boaform/admin/formLogin&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Oude Meer&quot;,<br>                &quot;doc_count&quot;: 1,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 1,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;194.26.192.49&quot;,<br>                            &quot;doc_count&quot;: 1,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.env&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Indonesia&quot;,<br>          &quot;doc_count&quot;: 23,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Cirebon&quot;,<br>                &quot;doc_count&quot;: 23,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 23,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;180.251.227.238&quot;,<br>                            &quot;doc_count&quot;: 23,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 13,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/.aws/credentials&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/_profiler/app_dev.php/phpinfo&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/_profiler/app_dev/phpinfo&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/_profiler/info&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/_profiler/phpinfo&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/_wpeprivate/config.json&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/app_dev.php/_profiler/phpinfo&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/application.conf&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/application.properties&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/aws.yml&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;Turkey&quot;,<br>          &quot;doc_count&quot;: 15,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: []<br>          }<br>        },<br>        {<br>          &quot;key&quot;: &quot;United Arab Emirates&quot;,<br>          &quot;doc_count&quot;: 12,<br>          &quot;CITY&quot;: {<br>            &quot;doc_count_error_upper_bound&quot;: 0,<br>            &quot;sum_other_doc_count&quot;: 0,<br>            &quot;buckets&quot;: [<br>              {<br>                &quot;key&quot;: &quot;Dubai&quot;,<br>                &quot;doc_count&quot;: 10,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 10,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;5.195.231.32&quot;,<br>                            &quot;doc_count&quot;: 10,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/web&quot;,<br>                                  &quot;doc_count&quot;: 3<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/web/webclient/version_info&quot;,<br>                                  &quot;doc_count&quot;: 3<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/favicon.ico&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/longpolling/im_status&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/longpolling/poll&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/web/database/selector&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              },<br>              {<br>                &quot;key&quot;: &quot;Abu Dhabi&quot;,<br>                &quot;doc_count&quot;: 2,<br>                &quot;CODE&quot;: {<br>                  &quot;doc_count_error_upper_bound&quot;: 0,<br>                  &quot;sum_other_doc_count&quot;: 0,<br>                  &quot;buckets&quot;: [<br>                    {<br>                      &quot;key&quot;: 404,<br>                      &quot;doc_count&quot;: 2,<br>                      &quot;NAME&quot;: {<br>                        &quot;doc_count_error_upper_bound&quot;: 0,<br>                        &quot;sum_other_doc_count&quot;: 0,<br>                        &quot;buckets&quot;: [<br>                          {<br>                            &quot;key&quot;: &quot;217.164.138.61&quot;,<br>                            &quot;doc_count&quot;: 2,<br>                            &quot;URL&quot;: {<br>                              &quot;doc_count_error_upper_bound&quot;: 0,<br>                              &quot;sum_other_doc_count&quot;: 0,<br>                              &quot;buckets&quot;: [<br>                                {<br>                                  &quot;key&quot;: &quot;/favicon.ico&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                },<br>                                {<br>                                  &quot;key&quot;: &quot;/robot.txt&quot;,<br>                                  &quot;doc_count&quot;: 1<br>                                }<br>                              ]<br>                            }<br>                          }<br>                        ]<br>                      }<br>                    }<br>                  ]<br>                }<br>              }<br>            ]<br>          }<br>        }<br>      ]<br>    }<br>  }<br>}</pre><p>See where we got with this ? <br>By now we have a pretty good ideal about what’s going on on our front end web server and we can put a plan to mitigate our security risks.</p><ul><li>We know where most of our traffic comes from</li><li>We know from which (regions/countries/cities/source ips) are traffic with bad intentions and what they’re trying to do.</li></ul><p>Obviously with VPN, the locations could be misleading but the methods are <strong>NOT</strong> so you can then set up rules on your firewall to deny traffic with specific payloads. Like this:</p><pre># Deny packets containing the specified string in the payload<br>-A INPUT -m string --string &quot;wget&quot; --algo bm -j LOG --log-prefix &quot;IPTables-Forbiden: &quot; --log-level 4 --log-ip-options<br>-A INPUT -m string --string &quot;wget&quot; --algo bm -j DROP</pre><p>Great! now let have a look at our web front end dashboard to get a sense of what’s happening at that level:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bb31KLBWCAyKH9QsWIaSvQ.png" /></figure><p>So, we get our traffic throughput, access and error logs. There are some interesting calls that jumps up immediately as odd requests:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pp9y6F4EPd7kT15KOqa7OA.png" /></figure><p>The <strong><em>first</em></strong> one, the most <strong>flagrant</strong>… is this person is trying to upload some malicious file from a remote server and run it on our backend web server. Then you have people trying to see if we are running PHP or wordpress on our backend servers so they could extend their attacks around this technologies.</p><p>Based on the intel, we can now put together mitigation plans which will block traffic with these payloads. Here’s how it looks after implementation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bNie2tAM0lWpWqHpY5jG4g.png" /></figure><p>We observe that we now have forbiden entries in our firewall logs so traffic wasn’t allowed to hit our web server. Good, feels a little safe 😊</p><p>Lets take a scenario where we want to trace whoever has accessed our backend server with what they did on the server. Can we do that ? Yes, if we’re logging terminal activities along with access logs. It would look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jsXGTO45BqziB2QxX10kMQ.png" /></figure><p>With this, we know <strong>WHO</strong> did <strong>WHAT</strong> and <strong>WHEN</strong> from <strong>WHERE.</strong></p><blockquote><strong>Lastly, let’s see Elastic endpoint in action</strong></blockquote><p>So the scenario is, we have a hacker who has generated a <strong><em>reverse shell meterpreter</em></strong> payload to gain remote access to our server. Now, he would like to upload it to our server via the network. The hacker manages to successfully upload the file on our backend server (so he thought 😊):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUWR3Qbrw4y-Pymk4hV_iQ.png" /><figcaption>virus uploaded to backend server</figcaption></figure><p>Here’s how elastic endpoint caught it immediately and prevented this from happening:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WY75-qTyveWJA_6zpXfXEQ.png" /></figure><p>We can dive deep to get more context and details around this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETYWXJNAgaiHMnXCecQb1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HPLmPLCo22mvAdkfysZ4eA.png" /></figure><p>Within elastic <strong>SIEM</strong>, we can isolate any endpoint we’re protecting in a manual fashion or automatically based on a match.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4zhkmR6vOo2a5becd5wngA.png" /><figcaption>Isolate a host form network</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HltTimvV1laol70ceTbLNw.png" /><figcaption>Release host</figcaption></figure><p>Here is a <strong><em>reverse shell</em></strong> alert writen to dectect this in real-time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KmUph75cfsPZ-LG1pTrDUQ.png" /></figure><p><strong>SOC</strong> and <strong>Security teams</strong> can get creative with queries on Elastic to have an edge on attacks and better proctect their estate not after the facts but in real-time in an automated fashion.</p><p>For this to be effective, <strong>Elastic</strong> has to be your <strong><em>central logging system</em></strong> where all your endpoints are logging to. With the dataset in one location Elastic can corelate events together (with good <strong>ECS</strong>) to give you an holistic view of your estate. Running your detections rules from IDS platform has blind spots because it doesn’t give you the whole picture of attacks, you want to have visibilty across OS kernel space together with OSI layers 3 to 7.</p><p>That’s about it folks! Hope you’ve learned a thing or two, until next time take care.</p><p>Micka Luboya</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d542c6d09f3" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/cybersecurity-with-elastic-siem-4d542c6d09f3">Cybersecurity with Elastic SIEM</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Devops — Build CI/CD pipeline with Jenkins]]></title>
            <link>https://medium.com/@mickey.lubs/devops-build-ci-cd-pipeline-with-jenkins-2548f9923877?source=rss-cf59434f0bce------2</link>
            <guid isPermaLink="false">https://medium.com/p/2548f9923877</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[cicd]]></category>
            <dc:creator><![CDATA[BigM]]></dc:creator>
            <pubDate>Tue, 24 Jan 2023 08:13:37 GMT</pubDate>
            <atom:updated>2023-01-24T08:13:37.168Z</atom:updated>
            <content:encoded><![CDATA[<h3>Devops — Build CI/CD pipeline with Jenkins</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0oDJJx3LMv2Rqg8dvN5u2Q.png" /></figure><p><strong>So, why Jenkins and what is Jenkins ?</strong><br>Jenkins is the most popular <strong><em>ci/cd</em></strong> tool in the Devops world. Why, you ask … well, it’s open source first so no licenses involved here. 2nd, it works well and easier to setup to acomplish <strong><em>ci/cd</em></strong> workflows. 3rd, it comes and makes available a sea of plugins so integration with various tools makes it the ideal tool to have in hand. One of the key factor of <strong><em>ci/cd</em></strong> tools is the ability to <strong>revert back</strong>, <strong>undo changes</strong> quickly and with ease. Jenkins accomplishes that with “<strong><em>replays</em></strong>” — (love this feature). You see, because your deployments are attached to your <strong><em>SCM</em></strong> (source code management), it has the commits history of your changes so by pointing to the earlier deployment, you’re essentially going back to that state…by the click of a button. okay, okay.. let me not get ahead of myself, let’s spin up this <strong>walkthrough</strong> from scratch— step by step.</p><p><strong>Why CI and what is it ?</strong></p><p><strong><em>Continuous integration</em></strong>, it is the ability to continuously pull code changes from your <strong><em>source of truth</em></strong> (SCM) and have it ready/available for deployment at any given time. Basically, your project is never in a broken or otherwise undeliverable state. This is quite important for a number of reasons, <strong>one</strong> — you’re garranting 99.9% availibility of your code/service. T<strong>wo</strong> — with all the changes that will occur in the lifetime of a code/service it’s kind of a big deal to keep it functional <strong><em>at all times</em></strong>, CI gives you that.</p><p><strong>How about CD ?</strong></p><p><strong><em>Continous Delivery</em></strong>, the ability to deploy/deliver your code/services to platforms that runs them. Not just deliver them but as part of an automated workflow, <strong><em>an assembly line</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4CCgLna_iB6DMAkNJt_-3Q.jpeg" /><figcaption>assembly line</figcaption></figure><p>These 2 <strong>methodologies</strong> are at the heart of Devops.</p><p>Good! now that we got this out of the way, let’s talk about our setup and use case here. Company X has a website that offer various services to its client base, it needs this website and functionalities to be available 99.9% of the time with minimal to absolutely no distruption to functionalities.</p><p>Customer X has reached out to you to implement a <strong>CI/CD</strong> pipeline which will ensure that the codes and application as a whole is <strong><em>always</em></strong> functional …the keyword here is <strong><em>always</em></strong> and ready for deployments at any given time. Beside this, Customer X needs fast delivery of code changes to production with minimal to no impact.</p><p>God it ? easy right ? you got your deliverables, now let’s get to work</p><p>Time to talk to the Devs … “<em>Hello Dev, i’d like to know a few things</em>”:<br>- What programming language is involved here ? <br>- How do you build your codes/project/artifacts ?<br>- On which infrastructure is it deployed ? On premises or in cloud ?<br>- Operating system ?<br>- Access to SCM</p><p>Good! answer to these gives us a good fondation to gather the troops.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*idVGw7zMYXa0VoBRdhjdfQ.gif" /><figcaption>gather troops</figcaption></figure><p>Jenkins will connect with <strong><em>the source of truth</em></strong> (SCM), it will trigger builds and deployments via webhooks from the SCM so, at any moment a change is pushed to upstream repository it picks it up and build the system/code. <br>The builds will be done with <strong><em>docker</em></strong> build.<br>2 — we will use <strong><em>ansible</em></strong> as the infrastructure as code (IAC) to deploy the codes to various systems including production.<br>3 — <strong><em>github</em></strong> is used here as the SCM so that’s where <strong><em>pull requests</em></strong> and <strong><em>merges</em></strong> will be managed.</p><p>Here is the link to the github repository of this setup =&gt; <a href="https://github.com/mickalubs/jenkins-cicd">https://github.com/mickalubs/jenkins-cicd</a> and <a href="https://github.com/mickalubs/cicd-ansible">https://github.com/mickalubs/cicd-ansible</a></p><p>In there, you will find all the codes to build, deploy and run this CI/CD pipeline.</p><p>From your host server, build your Jenkins server’s image:</p><pre># Build the image<br>docker build -t &lt;TAG:VERSION&gt; .</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Gsf8OsJKPUIYnakYTmb7g.png" /></figure><p>Bring the container up:</p><pre># Create docker volume<br>docker volume create jenkins_data <br><br># Bring it Up<br>docker-compose up -d</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*AMpIXSLQ8CRCzlvuu_CXaw.png" /><figcaption>grab your password</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6XFl2upDB_Bn2GoPYqFN_Q.png" /></figure><p>Install suggested pluggins:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NSG7KhV2hfa_RQEE4BFvhA.png" /></figure><p>Done — Jenkins is ready for use</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WvG_cKSwQFW-6e9USKzMMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nH7TFFgJSpd3HQwAvXrXYA.png" /></figure><p>Set up SSH private key for use with github repo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AJ8eIX5ujBm3k4ytULzfQA.png" /></figure><p>On github =&gt; settings =&gt; SSH and GPG keys. You add the public key there after that it’ time for github token so you can do webhook pulls and notifications. On github =&gt; settings =&gt; Developer setting =&gt; Personal access token =&gt; Tokens. You mainly need to tick this persmission “<strong>admin:repo_hook</strong>”.<br>Once done, here the 2 credentials we’ve created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R4PXlyPl-ZZAawqt80ABJw.png" /></figure><p>Then we need to add it to =&gt; Manage Jenkins =&gt; Configure system:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FbvdgkHS1BX4eaID6k4XbA.png" /><figcaption>Github webhook to pull changes as they happen</figcaption></figure><p>Now, create a <strong><em>Multibranch Pipeline</em></strong> job because we need this to pick up the build steps within the Git project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Z3beMSBX-EHki21_0RKlA.png" /></figure><p>You will get this on your firt run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S8sBOiazzMzUWp4WiSdkMw.png" /></figure><p>Head to <strong>Manage Jenkins</strong> from <strong>Dashboard</strong> =&gt; Configure Global security and set it to “<em>accept first connection</em>”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zFnG6cv_IEDbj6dVk-w_iw.png" /></figure><p>It will automatically scan the Git project and build:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xunLYYTu5LkAH7wn39WYRw.png" /></figure><p>Yah! there is the first build:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DabwNlSh1_xp5ZgnjymDPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*_gMIVZ_fJ5C7Ju1agizqhA.png" /></figure><p>Good! the website is reachable from the browser:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5XweKvWVxAEPeXHBKJo9Vw.png" /></figure><p>Now, let’s spin up a feature branch and make some changes:</p><pre>git flow init<br><br>git flow feature start &lt;NAME&gt;</pre><p>Let’s change the background color to red and wording from version 1 to version 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fzyy0KeSzsiZ4NykcTFrTw.png" /></figure><p>Once pushed upstream, the build automatically kicks in and run the pipeline job:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eXNV4cIMahjhat7JNj3B9Q.png" /><figcaption>automatic build</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QC1AXqpBABFT1PGNK971pA.png" /></figure><p>Let see the changes, refresh your browser:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Os_hLJMXoqw12Ob6trIQg.png" /><figcaption>Changes applied</figcaption></figure><p>Good! once tested and ready to deploy to <strong>development</strong> servers, you will create pull request to merge with develop branch:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_fVLRf378KUHouTKWBUkjA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4eYrtrN0xfzt8PqBeQiew.png" /><figcaption>from feature branch to develop branch</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N-6llW1Z8sZjaSmLt-Q22w.png" /><figcaption>develop merge automatically picked up</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5qugsnUG2S2U81c1dyQqw.png" /><figcaption>Deployed to Dev systems</figcaption></figure><p>Once ready, we merge with master for <strong>Production</strong> deployment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OhJ7Cl43Gz_mEbtKqFksew.png" /><figcaption>master merge automatically picked up</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zHBtl-JM8QZiV0uEW40CvQ.png" /></figure><p>Now, the most exciting part …at least for me 😋 <br>Let say there is a bug with this deplyed code and we would like to revert back to previous version or any previous commits. In Jenkins, you would hit the “<strong><em>replay</em></strong>” switch just like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eoQETM6mWDS-1w5F-las1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*3LKj6xMwEj_--37HalaRCw.gif" /><figcaption>replay older builds</figcaption></figure><p>Build is done. Now, refresh your browser and we’re back to previous state:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UGEke9B56zKYYl2c8GxknA.png" /></figure><p>That’s about it! We have built a simple CI/CD pipeline with Jenkins, obviously there will be a lot more to this such as adding agents to your Jenkins platform for parallel builds but it’s out of scope for this demo.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2548f9923877" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>