Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rails アプリ地図考 Flush Cut

Avatar for makicamel makicamel
February 06, 2025

Rails アプリ地図考 Flush Cut

Avatar for makicamel

makicamel

February 06, 2025
Tweet

More Decks by makicamel

Other Decks in Programming

Transcript

  1. PyCall.rb Ruby - Python ブリッジライブラリ Python オブジェクトを Ruby から触れる Ruby

    オブジェクトを Python 側に見せられる mrknさん作   PyCall  https://github.com/mrkn/pycall.rb   PyCall があれば Ruby で機械学習ができる  https://magazine.rubyist.net/articles/0055/0055-pycall.html
  2. 固有ベクトル中心性 networkx = PyCall.import_module("networkx") graph = networkx.Graph.new # ... graphにノードやエッジを追加

    ... centralities = networkx.eigenvector_centrality(graph) # => {ノード名: 中心性} のハッシュが返る これだけのコードで 固有ベクトル中心性が得られる