金子邦彦研究室人工知能Convolutional Neural Networks の利用CNN Graph を使ってみる(書きかけ)

CNN Graph を使ってみる(書きかけ)

CNN Graph のインストールについて図解で説明する. Python を使うのが前提である.

先人に感謝.

関連する外部ページ】 Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering https://arxiv.org/abs/1606.09375

GitHub の mdeff/cnn_graph の配布サイト(https://github.com/mdeff/cnn_graph

前準備

Python のインストール(Windows 上)

サイト内の関連ページ

関連する外部ページ

Python の公式ページ: https://www.python.org/

Git のインストール

Git の URL: https://git-scm.com/

プログラムのダウンロードと展開(解凍)

GitHub の mdeff/cnn_graph の配布サイト(https://github.com/mdeff/cnn_graph)で公開されている プログラムを,ダウンロードし展開(解凍)する.

※ 以下,Windows での手順を示す.Ubuntu でも同様の手順になる.

  1. GitHub の mdeff/cnn_graph の Web ページを開く.説明を確認

    https://github.com/mdeff/cnn_graph

  2. Windows では,コマンドプロンプトを実行.
  3. ディレクトリ(フォルダ)を空にする操作

    cd c:\pytools
    rmdir /s /q cnn_graph
    
  4. ダウンロード(git を使用)

    git clone https://github.com/mdeff/cnn_graph
    
  5. pip install -r requirements.txt の実行
    E:
    cd c:\pytools
    cd cnn_graph
    pip install -r requirements.txt
    
  6. models.py を次のように書き換え

usage.ipyrb を実行してみる(書きかけ)

まず、ディレクトリを移動

from <ほにゃらら> import ... の「from <ほにゃらら> 」は削除

[image]

[image]

[image]

[image]

[image]

[image]

[image]

[image]

[image]

[image]

[image]

[image]

[image]