self</span><span class="o">.</span><span class="n">get_distance_matrix</span><span class="p">()</span>
            <span class="k">with</span> <span class="n">np</span><span class="o">.</span><span class="n">errstate</span><span class="p">(</span><span class="n">divide</span><span class="o">=</span><span class="s1">&#39;ignore&#39;</span><span class="p">):</span>
                <span class="n">inv_distance_matrix</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="