SURE-tools 2.1.20__py3-none-any.whl → 2.1.21__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 CHANGED
@@ -196,20 +196,15 @@ class PerturbFlow(nn.Module):
196
196
  if self.cell_factor_size>0:
197
197
  self.cell_factor_effect = nn.ModuleList()
198
198
  for i in np.arange(self.cell_factor_size):
199
- #self.cell_factor_effect.append(MLP(
200
- # [self.latent_dim+1] + hidden_sizes + [self.latent_dim],
201
- # activation=activate_fct,
202
- # output_activation=None,
203
- # post_layer_fct=post_layer_fct,
204
- # post_act_fct=post_act_fct,
205
- # allow_broadcast=self.allow_broadcast,
206
- # use_cuda=self.use_cuda,
207
- # bias=False,
208
- #)
209
- #)
210
- self.cell_factor_effect.append(ZeroBiasMLP(
211
- self.latent_dim+1, hidden_sizes, self.latent_dim,
212
- )
199
+ self.cell_factor_effect.append(MLP(
200
+ [self.latent_dim+1] + hidden_sizes + [self.latent_dim],
201
+ activation=activate_fct,
202
+ output_activation=None,
203
+ post_layer_fct=post_layer_fct,
204
+ post_act_fct=post_act_fct,
205
+ allow_broadcast=self.allow_broadcast,
206
+ use_cuda=self.use_cuda,
207
+ )
213
208
  )
214
209
 
215
210
  self.decoder_concentrate = MLP(
SURE/SURE.py CHANGED
@@ -240,7 +240,6 @@ class SURE(nn.Module):
240
240
  post_act_fct=post_act_fct,
241
241
  allow_broadcast=self.allow_broadcast,
242
242
  use_cuda=self.use_cuda,
243
- bias=False,
244
243
  )
245
244
 
246
245
  self.decoder_concentrate = MLP(
SURE/utils/custom_mlp.py CHANGED
@@ -212,24 +212,3 @@ class MLP(nn.Module):
212
212
 
213
213
 
214
214
 
215
- class ZeroBiasMLP(nn.Module):
216
- def __init__(self, input_dim, hidden_dims, output_dim):
217
- super().__init__()
218
- layers = []
219
- dims = [input_dim] + hidden_dims + [output_dim]
220
-
221
- # 构建线性层(强制所有偏置为0)
222
- for i in range(len(dims)-1):
223
- linear = nn.Linear(dims[i], dims[i+1])
224
- nn.init.zeros_(linear.bias) # 初始化偏置为0
225
- layers.append(linear)
226
- if i < len(dims)-2:
227
- layers.append(nn.ReLU()) # 激活函数
228
-
229
- self.net = nn.Sequential(*layers)
230
-
231
- def forward(self, x):
232
- if type(x) == list:
233
- x = torch.concat(x, dim=1)
234
- return self.net(x)
235
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SURE-tools
3
- Version: 2.1.20
3
+ Version: 2.1.21
4
4
  Summary: Succinct Representation of Single Cells
5
5
  Home-page: https://github.com/ZengFLab/SURE
6
6
  Author: Feng Zeng
@@ -1,5 +1,5 @@
1
- SURE/PerturbFlow.py,sha256=f0GUWbud-XDc3j0S3QKiRiUKr4cvtO9acoFyzMTH9eI,51151
2
- SURE/SURE.py,sha256=6qjf9E9OMBkZQSNnmvornpEa4E203-_rtz5Hs8jNCJA,47472
1
+ SURE/PerturbFlow.py,sha256=P5YebRbhyEIueyStdaMkFvLq43MJSBCcYd-pI09eTBQ,50938
2
+ SURE/SURE.py,sha256=xMD6VBYsgk-bZ_xBWzpdGyxEAleonNRoPkZAxAX467s,47444
3
3
  SURE/SURE2.py,sha256=8wlnMwb1xuf9QUksNkWdWx5ZWq-xIy9NLx8RdUnE82o,48501
4
4
  SURE/__init__.py,sha256=NOJI_K-eCqPgStXXvgl3wIEMp6d8saMTDYLJ7Ga9MqE,293
5
5
  SURE/assembly/__init__.py,sha256=jxZLURXKPzXe21LhrZ09LgZr33iqdjlQy4oSEj5gR2Q,172
@@ -16,12 +16,12 @@ SURE/flow/quiver.py,sha256=_euFqSaRrDoZ_oOabOx20LOoUTJ__XPhLW-vzLNQfAo,1859
16
16
  SURE/perturb/__init__.py,sha256=ouxShhbxZM4r5Gf7GmKiutrsmtyq7QL8rHjhgF0BU08,32
17
17
  SURE/perturb/perturb.py,sha256=CqO3xPfNA3cG175tadDidKvGsTu_yKfJRRLn_93awKM,3303
18
18
  SURE/utils/__init__.py,sha256=Htqv4KqVKcRiaaTBsR-6yZ4LSlbhbzutjNKXGD9-uds,660
19
- SURE/utils/custom_mlp.py,sha256=R63nhhRIO0sIEPwq7gAaBSDn5I5KMv7uDXsW6xEZXHw,7823
19
+ SURE/utils/custom_mlp.py,sha256=IlW5L_YEhtn0guHlGyvGLRjJ5JOIWs4qB7BPi1Dmq9U,7116
20
20
  SURE/utils/queue.py,sha256=E_5PA5EWcBoGAZj8BkKQnkCK0p4C-4-xcTPqdIXaPXU,1892
21
21
  SURE/utils/utils.py,sha256=IUHjDDtYaAYllCWsZyIzqQwaLul6fJRvHRH4vIYcR-c,8462
22
- sure_tools-2.1.20.dist-info/licenses/LICENSE,sha256=TFHKwmrAViXQbSX5W-NDItkWFjm45HWOeUniDrqmnu0,1065
23
- sure_tools-2.1.20.dist-info/METADATA,sha256=TWnbf7P62fec9iUnT2i8PZXuY9tMNL76_1uWS0j37rY,2651
24
- sure_tools-2.1.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
- sure_tools-2.1.20.dist-info/entry_points.txt,sha256=-nJI8rVe_qqrR0HmfAODzj-JNfEqCcSsyVh6okSqyHk,83
26
- sure_tools-2.1.20.dist-info/top_level.txt,sha256=BtFTebdiJeqra4r6mm-uEtwVRFLZ_IjYsQ7OnalrOvY,5
27
- sure_tools-2.1.20.dist-info/RECORD,,
22
+ sure_tools-2.1.21.dist-info/licenses/LICENSE,sha256=TFHKwmrAViXQbSX5W-NDItkWFjm45HWOeUniDrqmnu0,1065
23
+ sure_tools-2.1.21.dist-info/METADATA,sha256=5pPz0o1rpF7udNtmSfrCFE14qcuhl-86De2HkA_fUww,2651
24
+ sure_tools-2.1.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
+ sure_tools-2.1.21.dist-info/entry_points.txt,sha256=-nJI8rVe_qqrR0HmfAODzj-JNfEqCcSsyVh6okSqyHk,83
26
+ sure_tools-2.1.21.dist-info/top_level.txt,sha256=BtFTebdiJeqra4r6mm-uEtwVRFLZ_IjYsQ7OnalrOvY,5
27
+ sure_tools-2.1.21.dist-info/RECORD,,