SURE-tools 3.7.1__tar.gz → 3.7.2__tar.gz
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.
- {sure_tools-3.7.1 → sure_tools-3.7.2}/PKG-INFO +1 -1
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/SURE_vae.py +3 -4
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE_tools.egg-info/PKG-INFO +1 -1
- {sure_tools-3.7.1 → sure_tools-3.7.2}/setup.py +1 -1
- {sure_tools-3.7.1 → sure_tools-3.7.2}/LICENSE +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/README.md +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/SURE.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/SUREMO.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/SURE_nsf.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/SURE_vanilla.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/__init__.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/atac/__init__.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/atac/utils.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/dist/__init__.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/dist/negbinomial.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/graph/__init__.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/graph/graph_utils.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/utils/__init__.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/utils/custom_mlp.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/utils/label.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/utils/queue.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/utils/utils.py +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE_tools.egg-info/SOURCES.txt +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE_tools.egg-info/dependency_links.txt +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE_tools.egg-info/requires.txt +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE_tools.egg-info/top_level.txt +0 -0
- {sure_tools-3.7.1 → sure_tools-3.7.2}/setup.cfg +0 -0
|
@@ -269,7 +269,6 @@ class SUREVAE(nn.Module):
|
|
|
269
269
|
)
|
|
270
270
|
)
|
|
271
271
|
|
|
272
|
-
self.encoder_condition_effects = self.decoder_condition_effects
|
|
273
272
|
'''self.encoder_condition_effects = nn.ModuleList()
|
|
274
273
|
for condition_size in self.condition_sizes:
|
|
275
274
|
self.encoder_condition_effects.append(ZeroBiasMLP3(
|
|
@@ -479,7 +478,7 @@ class SUREVAE(nn.Module):
|
|
|
479
478
|
shift = 0
|
|
480
479
|
for i, condition_size in enumerate(self.condition_sizes):
|
|
481
480
|
cs_i = cs[:,shift:(shift+condition_size)]
|
|
482
|
-
l,s = self.
|
|
481
|
+
l,s = self.decoder_condition_effects[i]([cs_i,zns])
|
|
483
482
|
zcs_i = pyro.sample(f'zcs_{i}', dist.Normal(l, s).to_event(1))
|
|
484
483
|
shift += condition_size
|
|
485
484
|
|
|
@@ -627,7 +626,7 @@ class SUREVAE(nn.Module):
|
|
|
627
626
|
C_batch = cs[idx].to(self.get_device())
|
|
628
627
|
|
|
629
628
|
z_basal = self._get_cell_embedding(X_batch)
|
|
630
|
-
dzs,_ = self.
|
|
629
|
+
dzs,_ = self.decoder_condition_effects[i]([C_batch,z_basal])
|
|
631
630
|
|
|
632
631
|
A.append(tensor_to_numpy(dzs))
|
|
633
632
|
pbar.update(1)
|
|
@@ -671,7 +670,7 @@ class SUREVAE(nn.Module):
|
|
|
671
670
|
shift = 0
|
|
672
671
|
for i, condition_size in enumerate(self.condition_sizes):
|
|
673
672
|
C_batch_i = C_batch[:, shift:(shift+condition_size)]
|
|
674
|
-
zcs_i,_ = self.
|
|
673
|
+
zcs_i,_ = self.decoder_condition_effects[i]([C_batch_i,z_basal])
|
|
675
674
|
zcs += zcs_i
|
|
676
675
|
shift += condition_size
|
|
677
676
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|