SURE-tools 2.1.15__tar.gz → 2.1.17__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.
Files changed (30) hide show
  1. {sure_tools-2.1.15 → sure_tools-2.1.17}/PKG-INFO +1 -1
  2. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/PerturbFlow.py +1 -0
  3. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/utils/custom_mlp.py +6 -4
  4. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE_tools.egg-info/PKG-INFO +1 -1
  5. {sure_tools-2.1.15 → sure_tools-2.1.17}/setup.py +1 -1
  6. {sure_tools-2.1.15 → sure_tools-2.1.17}/LICENSE +0 -0
  7. {sure_tools-2.1.15 → sure_tools-2.1.17}/README.md +0 -0
  8. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/SURE.py +0 -0
  9. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/__init__.py +0 -0
  10. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/assembly/__init__.py +0 -0
  11. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/assembly/assembly.py +0 -0
  12. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/assembly/atlas.py +0 -0
  13. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/atac/__init__.py +0 -0
  14. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/atac/utils.py +0 -0
  15. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/codebook/__init__.py +0 -0
  16. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/codebook/codebook.py +0 -0
  17. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/flow/__init__.py +0 -0
  18. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/flow/flow_stats.py +0 -0
  19. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/flow/plot_quiver.py +0 -0
  20. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/perturb/__init__.py +0 -0
  21. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/perturb/perturb.py +0 -0
  22. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/utils/__init__.py +0 -0
  23. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/utils/queue.py +0 -0
  24. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE/utils/utils.py +0 -0
  25. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE_tools.egg-info/SOURCES.txt +0 -0
  26. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE_tools.egg-info/dependency_links.txt +0 -0
  27. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE_tools.egg-info/entry_points.txt +0 -0
  28. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE_tools.egg-info/requires.txt +0 -0
  29. {sure_tools-2.1.15 → sure_tools-2.1.17}/SURE_tools.egg-info/top_level.txt +0 -0
  30. {sure_tools-2.1.15 → sure_tools-2.1.17}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SURE-tools
3
- Version: 2.1.15
3
+ Version: 2.1.17
4
4
  Summary: Succinct Representation of Single Cells
5
5
  Home-page: https://github.com/ZengFLab/SURE
6
6
  Author: Feng Zeng
@@ -204,6 +204,7 @@ class PerturbFlow(nn.Module):
204
204
  post_act_fct=post_act_fct,
205
205
  allow_broadcast=self.allow_broadcast,
206
206
  use_cuda=self.use_cuda,
207
+ bias=False,
207
208
  )
208
209
  )
209
210
 
@@ -85,6 +85,7 @@ class MLP(nn.Module):
85
85
  post_act_fct=lambda layer_ix, total_layers, layer: None,
86
86
  allow_broadcast=False,
87
87
  use_cuda=False,
88
+ bias=True,
88
89
  ):
89
90
  # init the module object
90
91
  super().__init__()
@@ -114,11 +115,12 @@ class MLP(nn.Module):
114
115
  assert type(layer_size) == int, "Hidden layer sizes must be ints"
115
116
 
116
117
  # get our nn layer module (in this case nn.Linear by default)
117
- cur_linear_layer = nn.Linear(last_layer_size, layer_size)
118
+ cur_linear_layer = nn.Linear(last_layer_size, layer_size, bias=bias)
118
119
 
119
120
  # for numerical stability -- initialize the layer properly
120
121
  cur_linear_layer.weight.data.normal_(0, 0.001)
121
- cur_linear_layer.bias.data.normal_(0, 0.001)
122
+ if bias:
123
+ cur_linear_layer.bias.data.normal_(0, 0.001)
122
124
 
123
125
  # use GPUs to share data during training (if available)
124
126
  if use_cuda:
@@ -160,7 +162,7 @@ class MLP(nn.Module):
160
162
  ), "output_size must be int, list, tuple"
161
163
 
162
164
  if type(output_size) == int:
163
- all_modules.append(nn.Linear(last_layer_size, output_size))
165
+ all_modules.append(nn.Linear(last_layer_size, output_size, bias=bias))
164
166
  if output_activation is not None:
165
167
  all_modules.append(
166
168
  call_nn_op(output_activation)
@@ -179,7 +181,7 @@ class MLP(nn.Module):
179
181
  split_layer = []
180
182
 
181
183
  # we have an activation function
182
- split_layer.append(nn.Linear(last_layer_size, out_size))
184
+ split_layer.append(nn.Linear(last_layer_size, out_size, bias=bias))
183
185
 
184
186
  # then we get our output activation (either we repeat all or we index into a same sized array)
185
187
  act_out_fct = (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SURE-tools
3
- Version: 2.1.15
3
+ Version: 2.1.17
4
4
  Summary: Succinct Representation of Single Cells
5
5
  Home-page: https://github.com/ZengFLab/SURE
6
6
  Author: Feng Zeng
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name='SURE-tools',
8
- version='2.1.15',
8
+ version='2.1.17',
9
9
  description='Succinct Representation of Single Cells',
10
10
  long_description=long_description,
11
11
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes