Alexander Engelsberger
8ce18f83ce
Add prototype_initializer function to GLVQ
...
This allows overwriting it inside subclasses.
2021-05-21 17:13:10 +02:00
Alexander Engelsberger
7b4f7d84e0
Update Documentation
...
Clean up project
2021-05-21 15:42:45 +02:00
Jensun Ravichandran
a5e086ce0d
Refactor code
2021-05-21 13:33:57 +02:00
Jensun Ravichandran
0611f81aba
Update models namespace
2021-05-21 13:11:59 +02:00
Jensun Ravichandran
a9382dcd9b
Add get_prototype_grid method
2021-05-21 13:11:48 +02:00
Jensun Ravichandran
0933a88a1b
Fix ImageCBC bug
2021-05-21 13:11:36 +02:00
Jensun Ravichandran
88a34a06ef
[WIP] Update CBC implementation to use SiameseGLVQ
2021-05-20 17:36:00 +02:00
Jensun Ravichandran
de63eaf15a
Fix numpy issue in vis.py
2021-05-20 17:33:19 +02:00
Jensun Ravichandran
16dc3cf4eb
Update image visualization
2021-05-20 16:07:16 +02:00
Jensun Ravichandran
df061cc2ff
Refactor code
2021-05-20 14:40:02 +02:00
Alexander Engelsberger
969fb34cc3
Accumulate test loss
2021-05-20 14:20:23 +02:00
Alexander Engelsberger
0204f5eab6
Log test accuracy.
2021-05-20 14:03:31 +02:00
Alexander Engelsberger
b7fc5df386
Log test loss.
2021-05-20 13:47:20 +02:00
Alexander Engelsberger
faf1a88f99
[Bugfix] Remove optimzer_idx from validation and test.
2021-05-20 13:17:27 +02:00
Jensun Ravichandran
5ffbd43a7c
Refactor into shared_step
2021-05-19 16:57:51 +02:00
Jensun Ravichandran
fdf9443a2c
Add validation and test logic
2021-05-19 16:30:19 +02:00
Jensun Ravichandran
eefec19c9b
Custom non-gradient training
2021-05-18 19:49:16 +02:00
Jensun Ravichandran
4957e821f6
Close matplotlib figure on train end
2021-05-18 10:13:22 +02:00
Jensun Ravichandran
81346785bd
Cleanup models
...
Siamese architectures no longer accept a `backbone_module`. They have to be
initialized with an pre-initialized backbone object instead. This is so that the
visualization callbacks could use the very same object for visualization
purposes. Also, there's no longer a dependent copy of the backbone. It is
managed simply with `requires_grad` instead.
2021-05-17 17:00:23 +02:00
Jensun Ravichandran
7a87636ad7
Update KNN
2021-05-17 16:59:35 +02:00
Jensun Ravichandran
77b7b59bad
Clean visualization callbacks
2021-05-17 16:59:22 +02:00
Jensun Ravichandran
6e7d80be88
[BUGFIX] Fix siamese visualization callback
2021-05-15 12:52:44 +02:00
Jensun Ravichandran
b7684ae512
predict_latent
no longer returns numpy
2021-05-15 12:52:16 +02:00
Alexander Engelsberger
0eac2ce326
Examples use GPUs if available.
2021-05-13 15:22:01 +02:00
Jensun Ravichandran
8f9c29bd2b
[BUGFIX] Remove incorrect import statement
2021-05-12 16:45:01 +02:00
Jensun Ravichandran
ca39aa00d5
Stop passing component initializers as hparams
...
Pass the component initializer as an hparam slows down the script very much. The
API has now been changed to pass it as a kwarg to the models instead.
The example scripts have also been updated to reflect the new changes.
Also, ImageGMLVQ and an example script `gmlvq_mnist.py` that uses it have also
been added.
2021-05-12 16:36:22 +02:00
Alexander Engelsberger
1498c4bde5
Bump version: 0.1.6 → 0.1.7
2021-05-11 17:18:29 +02:00
Jensun Ravichandran
59b8ab6643
Add knn
2021-05-11 17:22:02 +02:00
Jensun Ravichandran
eab1ec72c2
Change optimizer using kwargs
2021-05-11 16:13:00 +02:00
Jensun Ravichandran
b38acd58a8
[BUGFIX] Fix visualization callbacks bug
2021-05-11 16:09:27 +02:00
Alexander Engelsberger
e87563e10d
Bump version: 0.1.5 → 0.1.6
2021-05-11 13:41:26 +02:00
Alexander Engelsberger
3fa6378c4d
Add LVQ1 and LVQ2.1 Models.
2021-05-11 13:26:13 +02:00
Alexander Engelsberger
30ee287ecc
Bump version: 0.1.4 → 0.1.5
2021-05-10 17:13:00 +02:00
Alexander Engelsberger
f49db0bf2c
Bump version: 0.1.3 → 0.1.4
2021-05-10 17:06:28 +02:00
Alexander Engelsberger
54a8494d86
Bump version: 0.1.2 → 0.1.3
2021-05-10 17:04:20 +02:00
Alexander Engelsberger
bf310be97c
Bump version: 0.1.1 → 0.1.2
2021-05-10 16:47:33 +02:00
Alexander Engelsberger
1ae2b41edd
Bump version: 0.1.0 → 0.1.1
2021-05-10 16:26:21 +02:00
Alexander Engelsberger
f6e3a37e2b
Bump version: 0.0.0 → 0.1.0
2021-05-10 16:01:46 +02:00
Alexander Engelsberger
6873927349
Setup bumpversion
2021-05-10 15:34:43 +02:00
Jensun Ravichandran
49100f43f5
Example to save and reload a model
2021-05-10 14:30:02 +02:00
Jensun Ravichandran
ed03ab168e
[BUGFIX] Fix lambda_matrix property in GMLVQ
2021-05-10 14:09:25 +02:00
Jensun Ravichandran
c6e06ceaa4
Properly initialize prototypes in LVQMLN
2021-05-09 20:55:28 +02:00
Jensun Ravichandran
ca4c9da10a
Add the namespace hook for GMLVQ in the model class
2021-05-09 20:53:31 +02:00
Jensun Ravichandran
ff7a1e93d2
Refactor visualization callbacks
2021-05-09 20:53:03 +02:00
Jensun Ravichandran
11b3e53ecb
Return prototypes as torch tensor
2021-05-07 15:45:37 +02:00
Jensun Ravichandran
d7972a69e8
Update GMLVQ model
2021-05-07 15:24:47 +02:00
Jensun Ravichandran
17315ff242
Add models to the prototorch.models namespace
2021-05-07 15:23:52 +02:00
Jensun Ravichandran
5f937066bf
Move and improve visualization callbacks
2021-05-07 15:22:54 +02:00
Alexander Engelsberger
4bbe73e3a9
Add GRLVQ with examples.
2021-05-06 18:42:06 +02:00
Alexander Engelsberger
3df282a0af
Increase visualization pause.
2021-05-06 18:41:33 +02:00