Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UKRにおいてデータの重要度を考慮 #147

Draft
wants to merge 118 commits into
base: master
Choose a base branch
from

Conversation

ae14watanabe
Copy link
Member

@ae14watanabe ae14watanabe commented May 4, 2020

Description 説明
close #145

Type of change 変更の種類

  • New feature (non-breaking change which adds functionality)

UKRに関して各データに対する重みを以下のように考慮するように修正.
↓1/Nのところは1/\sum_n \rho_nに置き換えてください
image

コンストラクタでweightsとして重みの配列を与えると,上記の目的関数に対し以下のように勾配を計算する.なおデフォルトでは weights=None となっており,挙動はこれまでと変わらない.
チームビルディング-23 2

How Has This Been Tested? どのようにテストしたか?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
挙動を確認するために実行したテストを記述してください.再現できるように指示をお願いします.テストコードがある場合はtestに追加してください.

  • 修正前の ba7de74 でテストがpassすることを確認
  • c73108aweignt=None の際にこれまでと挙動が変わらないことを確認
    • 変更前のPyTorchと結果が一致することを確認
  • PyTorch版との結果比較 e6ff051

Test Configuration テスト環境:
python 3.6.10
numpy 1.18.1
scipy 1.4.1
pytorch 1.4.0
scikit-learn 0.22.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UKRの潜在変数推定の際にデータの信頼度が利用できるようにする
1 participant