SURE-tools 2.1.67__tar.gz → 2.1.69__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.
Potentially problematic release.
This version of SURE-tools might be problematic. Click here for more details.
- {sure_tools-2.1.67 → sure_tools-2.1.69}/PKG-INFO +1 -1
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/PerturbFlow.py +2 -4
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE_tools.egg-info/PKG-INFO +1 -1
- {sure_tools-2.1.67 → sure_tools-2.1.69}/setup.py +1 -1
- {sure_tools-2.1.67 → sure_tools-2.1.69}/LICENSE +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/README.md +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/SURE.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/__init__.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/assembly/__init__.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/assembly/assembly.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/assembly/atlas.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/atac/__init__.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/atac/utils.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/codebook/__init__.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/codebook/codebook.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/flow/__init__.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/flow/flow_stats.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/flow/plot_quiver.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/perturb/__init__.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/perturb/perturb.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/utils/__init__.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/utils/custom_mlp.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/utils/queue.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE/utils/utils.py +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE_tools.egg-info/SOURCES.txt +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE_tools.egg-info/dependency_links.txt +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE_tools.egg-info/entry_points.txt +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE_tools.egg-info/requires.txt +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/SURE_tools.egg-info/top_level.txt +0 -0
- {sure_tools-2.1.67 → sure_tools-2.1.69}/setup.cfg +0 -0
|
@@ -886,8 +886,8 @@ class PerturbFlow(nn.Module):
|
|
|
886
886
|
elif self.loss_func == 'poisson':
|
|
887
887
|
rate = concentrate.exp()
|
|
888
888
|
theta = dist.DirichletMultinomial(total_count=1, concentration=rate).mean
|
|
889
|
-
|
|
890
|
-
counts = dist.Poisson(rate=rate).to_event(1).mean
|
|
889
|
+
counts = theta * library_size
|
|
890
|
+
#counts = dist.Poisson(rate=rate).to_event(1).mean
|
|
891
891
|
elif self.loss_func == 'multinomial':
|
|
892
892
|
rate = concentrate.exp()
|
|
893
893
|
theta = dist.DirichletMultinomial(total_count=1, concentration=rate).mean
|
|
@@ -927,8 +927,6 @@ class PerturbFlow(nn.Module):
|
|
|
927
927
|
E = []
|
|
928
928
|
with tqdm(total=len(dataloader), desc='', unit='batch') as pbar:
|
|
929
929
|
for Z_batch, L_batch, _ in dataloader:
|
|
930
|
-
if self.loss_func != 'multinomial':
|
|
931
|
-
L_batch = None
|
|
932
930
|
concentrate = self._get_expression_response(Z_batch)
|
|
933
931
|
if use_sampler:
|
|
934
932
|
counts = self._count_sample(concentrate)
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|