-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[PoC]: Multi-directional refusal supression with Self-Organizing Maps #196
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
base: master
Are you sure you want to change the base?
Changes from 13 commits
6ebabc7
3ad2917
bf5f2ac
46c320a
85a6eb0
e012bb9
7f3b941
ce1c589
94b858c
a2a209c
dad69df
07655cd
31378cb
3b111e8
001006d
c37a046
c02869a
9b2d068
0be6b87
e8338ca
444edec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -215,6 +215,35 @@ class Settings(BaseSettings): | |
| ), | ||
| ) | ||
|
|
||
| multidirectional_som: bool = Field( | ||
| default=False, | ||
| description="Use multidirectional Self-Organising Maps. Requires 'minisom' package to be installed.", | ||
| ) | ||
|
|
||
| som_x: int = Field( | ||
| default=4, description="Number of SOM neurons in the x-axis." | ||
| ) | ||
|
|
||
| som_y: int = Field( | ||
| default=4, description="Number of SOM neurons in the y-axis." | ||
| ) | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to be able to control the X/Y dimensions separately? On average, we should expect the flattened topology to approximate a circle over many runs, so it seems one setting for both dimensions should be enough.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This (x,y) setting sat on the original project, so I took it. https://github.com/pralab/som-refusal-directions#3-run-self-organizing-map |
||
|
|
||
| som_iterations: int = Field( | ||
| default=10000, description="Number of SOM training iterations." | ||
| ) | ||
|
|
||
| som_lr: float = Field( | ||
| default=0.01, description="SOM learning rate." | ||
| ) | ||
|
|
||
| som_sigma: float = Field( | ||
| default=0.5, description="SOM neighborhood radius." | ||
| ) | ||
|
|
||
| som_k: int = Field( | ||
| default=4, description="Number of top neurons to use for multidirectional SOM." | ||
| ) | ||
|
|
||
| n_trials: int = Field( | ||
| default=200, | ||
| description="Number of abliteration trials to run during optimization.", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.