Git Product home page Git Product logo

assignment_2023's Introduction

assignment_2023(ロボットインテリジェンス課題)

実行環境

  • Windows 11
  • Python 3.11.6 (@ pipenv)

実行方法

  1. pipenv等で依存パッケージをインストール
$ pipenv sync                        # pipenvの場合
$ pip install -r requirements.txt    # その他
  1. assignment_2023/_main_.pyでパラメータを設定
  • epochs:学習終了までのエポック数
  • batch_size:バッチサイズ
  • hidden_layer_features:中間層のニューロン数(任意の層数に対応,1層の場合でもlistで指定)
  • learning_rate:学習率
  • noise_prob:ノイズの生起確率(0~1)
  • seed:乱数のシード値
  • trainTrueの場合学習を行い,Falseの場合テストのみ実行
  • show_data_sample:学習に用いるデータのサンプルを表示
  • show_optimal_stimuli:テスト終了後に最適刺激を表示
  • show_receptive_field:テスト終了後に受容野を表示
  1. assignment_2023を実行
$ python -m assignment_2023
  1. visualizer.pyを実行(損失関数の推移と学習曲線を表示)
$ python assignment_2023/visualizer.py

補足事項

  • データセットは初回実行時dataディレクトリにダウンロードされます.
  • 学習時は各エポックが終了するたびcheckpointディレクトリにパラメータを記録したチェックポイント(npzファイル),logディレクトリに学習ログ(csvファイル)が保存されます.
    • 学習を中断しても,assignment_2023の実行時に引数としてチェックポイントファイルへのパスを渡せばそれを読み込んで再開できます.
  • visualizer.pyは引数にログファイルへのパスを指定できます.指定しなかった場合は最新のログを参照します.
  • モジュール・クラス名はPyTorchに倣っています.

assignment_2023's People

Contributors

mitukou1109 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.