SURE-tools 2.1.42__py3-none-any.whl → 2.1.43__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of SURE-tools might be problematic. Click here for more details.
- SURE/PerturbFlow.py +7 -3
- {sure_tools-2.1.42.dist-info → sure_tools-2.1.43.dist-info}/METADATA +1 -1
- {sure_tools-2.1.42.dist-info → sure_tools-2.1.43.dist-info}/RECORD +7 -7
- {sure_tools-2.1.42.dist-info → sure_tools-2.1.43.dist-info}/WHEEL +0 -0
- {sure_tools-2.1.42.dist-info → sure_tools-2.1.43.dist-info}/entry_points.txt +0 -0
- {sure_tools-2.1.42.dist-info → sure_tools-2.1.43.dist-info}/licenses/LICENSE +0 -0
- {sure_tools-2.1.42.dist-info → sure_tools-2.1.43.dist-info}/top_level.txt +0 -0
SURE/PerturbFlow.py
CHANGED
|
@@ -73,7 +73,7 @@ class PerturbFlow(nn.Module):
|
|
|
73
73
|
config_enum: str = 'parallel',
|
|
74
74
|
use_cuda: bool = False,
|
|
75
75
|
seed: int = 42,
|
|
76
|
-
zero_bias: bool = True,
|
|
76
|
+
zero_bias: bool|list = True,
|
|
77
77
|
dtype = torch.float32, # type: ignore
|
|
78
78
|
):
|
|
79
79
|
super().__init__()
|
|
@@ -97,7 +97,11 @@ class PerturbFlow(nn.Module):
|
|
|
97
97
|
self.post_layer_fct = post_layer_fct
|
|
98
98
|
self.post_act_fct = post_act_fct
|
|
99
99
|
self.hidden_layer_activation = hidden_layer_activation
|
|
100
|
-
|
|
100
|
+
if type(zero_bias) == list:
|
|
101
|
+
self.use_bias = [not x for x in zero_bias]
|
|
102
|
+
else:
|
|
103
|
+
self.use_bias = [not zero_bias] * self.cell_factor_size
|
|
104
|
+
#self.use_bias = not zero_bias
|
|
101
105
|
|
|
102
106
|
self.codebook_weights = None
|
|
103
107
|
|
|
@@ -198,7 +202,7 @@ class PerturbFlow(nn.Module):
|
|
|
198
202
|
if self.cell_factor_size>0:
|
|
199
203
|
self.cell_factor_effect = nn.ModuleList()
|
|
200
204
|
for i in np.arange(self.cell_factor_size):
|
|
201
|
-
if self.use_bias:
|
|
205
|
+
if self.use_bias[i]:
|
|
202
206
|
self.cell_factor_effect.append(MLP(
|
|
203
207
|
[self.latent_dim+1] + self.decoder_hidden_layers + [self.latent_dim],
|
|
204
208
|
activation=activate_fct,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
SURE/PerturbFlow.py,sha256=
|
|
1
|
+
SURE/PerturbFlow.py,sha256=qQn1CEI0LbbM6lrOOD6Lyh_YqyUUTKCocrKicRg0flo,52300
|
|
2
2
|
SURE/SURE.py,sha256=ko15a9BhvUqHviogZ0YCdTQjM-2zqkO9OvHZSpnGbg0,47458
|
|
3
3
|
SURE/__init__.py,sha256=NOJI_K-eCqPgStXXvgl3wIEMp6d8saMTDYLJ7Ga9MqE,293
|
|
4
4
|
SURE/assembly/__init__.py,sha256=jxZLURXKPzXe21LhrZ09LgZr33iqdjlQy4oSEj5gR2Q,172
|
|
@@ -17,9 +17,9 @@ SURE/utils/__init__.py,sha256=QJUOfrXzdWSmoM0P3LH8oKEHttzCWqpDy2UF0F0dtN4,673
|
|
|
17
17
|
SURE/utils/custom_mlp.py,sha256=rHnx9jEef02zfCUdbYVCmbuHcDdIBmRgt__wpdpZvYg,8104
|
|
18
18
|
SURE/utils/queue.py,sha256=E_5PA5EWcBoGAZj8BkKQnkCK0p4C-4-xcTPqdIXaPXU,1892
|
|
19
19
|
SURE/utils/utils.py,sha256=IUHjDDtYaAYllCWsZyIzqQwaLul6fJRvHRH4vIYcR-c,8462
|
|
20
|
-
sure_tools-2.1.
|
|
21
|
-
sure_tools-2.1.
|
|
22
|
-
sure_tools-2.1.
|
|
23
|
-
sure_tools-2.1.
|
|
24
|
-
sure_tools-2.1.
|
|
25
|
-
sure_tools-2.1.
|
|
20
|
+
sure_tools-2.1.43.dist-info/licenses/LICENSE,sha256=TFHKwmrAViXQbSX5W-NDItkWFjm45HWOeUniDrqmnu0,1065
|
|
21
|
+
sure_tools-2.1.43.dist-info/METADATA,sha256=1Qw2MDrbIZ6wqDF1k-pGudYoJSPDyd9qiJYoy5dFX20,2651
|
|
22
|
+
sure_tools-2.1.43.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
23
|
+
sure_tools-2.1.43.dist-info/entry_points.txt,sha256=-nJI8rVe_qqrR0HmfAODzj-JNfEqCcSsyVh6okSqyHk,83
|
|
24
|
+
sure_tools-2.1.43.dist-info/top_level.txt,sha256=BtFTebdiJeqra4r6mm-uEtwVRFLZ_IjYsQ7OnalrOvY,5
|
|
25
|
+
sure_tools-2.1.43.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|