predicateneuron 0.1.0__tar.gz → 0.1.1__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 predicateneuron might be problematic. Click here for more details.

Files changed (25) hide show
  1. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/.idea/workspace.xml +4 -2
  2. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/PKG-INFO +6 -6
  3. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/README.md +5 -5
  4. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/pyproject.toml +1 -1
  5. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/src/predicateneuron/__init__.py +1 -1
  6. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/.gitignore +0 -0
  7. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/.idea/.gitignore +0 -0
  8. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
  9. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/.idea/misc.xml +0 -0
  10. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/.idea/modules.xml +0 -0
  11. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/.idea/predicateneuron.iml +0 -0
  12. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/.idea/vcs.xml +0 -0
  13. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/CITATION.cff +0 -0
  14. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/LICENSE +0 -0
  15. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/reference/original_tf.py +0 -0
  16. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/src/predicateneuron/keras/__init__.py +0 -0
  17. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/src/predicateneuron/keras/functional.py +0 -0
  18. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/src/predicateneuron/keras/layers.py +0 -0
  19. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/src/predicateneuron/tf.py +0 -0
  20. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/src/predicateneuron/torch/__init__.py +0 -0
  21. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/src/predicateneuron/torch/functional.py +0 -0
  22. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/src/predicateneuron/torch/layers.py +0 -0
  23. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/tests/test_keras.py +0 -0
  24. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/tests/test_parity_with_original.py +0 -0
  25. {predicateneuron-0.1.0 → predicateneuron-0.1.1}/tests/test_torch.py +0 -0
@@ -1,7 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="559a1296-1549-4b57-aea7-e3c5fde5b111" name="Changes" comment="" />
4
+ <list default="true" id="559a1296-1549-4b57-aea7-e3c5fde5b111" name="Changes" comment="">
5
+ <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
6
+ </list>
5
7
  <option name="SHOW_DIALOG" value="false" />
6
8
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
7
9
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -32,7 +34,7 @@
32
34
  <option name="number" value="Default" />
33
35
  <option name="presentableId" value="Default" />
34
36
  <updated>1792723035825</updated>
35
- <workItem from="1792723037060" duration="6169000" />
37
+ <workItem from="1792723037060" duration="6851000" />
36
38
  </task>
37
39
  <task id="LOCAL-00001" summary="-initial commit">
38
40
  <created>1792727916775</created>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: predicateneuron
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Differentiable predicate neuron (intersection / union / symmetric difference) and predicate layers for Keras, TensorFlow and PyTorch
5
5
  Project-URL: Homepage, https://github.com/IoannisKonstantoulas/predicateneuron
6
6
  Project-URL: Paper, https://TODO
@@ -70,10 +70,10 @@ from predicateneuron.torch import PredicateLayer
70
70
 
71
71
  model = torch.nn.Sequential(
72
72
  PredicateLayer(in_features=8, temperature=0.06, theta_init=0.5,
73
- hard_forward=False, hard_backward=False,
74
- torch.nn.Linear(28, 1), # 8 inputs -> 8*7/2 = 28 pairs
75
- torch.nn.Sigmoid(),
76
- )
73
+ hard_forward=False, hard_backward=False),
74
+ torch.nn.Linear(28, 1), # 8 inputs -> 8*7/2 = 28 pairs
75
+ torch.nn.Sigmoid(),
76
+ )
77
77
  ```
78
78
 
79
79
  Inputs are expected to lie in [0, 1], for example sigmoid outputs or normalized features.
@@ -100,7 +100,7 @@ Two independent switches control how the neuron behaves.
100
100
  | `hard_backward` | input gradients from the selected operation only | input gradients from the exact derivative of the soft mixture |
101
101
 
102
102
  The gradient with respect to `theta` always comes from the softmax surrogate, in every mode. All four combinations are
103
- valid. The defaults are (`hard_forward=False`, `hard_backward=False`)
103
+ valid. The defaults are (`hard_forward=False`, `hard_backward=False`).
104
104
 
105
105
  ## Layers
106
106
 
@@ -45,10 +45,10 @@ from predicateneuron.torch import PredicateLayer
45
45
 
46
46
  model = torch.nn.Sequential(
47
47
  PredicateLayer(in_features=8, temperature=0.06, theta_init=0.5,
48
- hard_forward=False, hard_backward=False,
49
- torch.nn.Linear(28, 1), # 8 inputs -> 8*7/2 = 28 pairs
50
- torch.nn.Sigmoid(),
51
- )
48
+ hard_forward=False, hard_backward=False),
49
+ torch.nn.Linear(28, 1), # 8 inputs -> 8*7/2 = 28 pairs
50
+ torch.nn.Sigmoid(),
51
+ )
52
52
  ```
53
53
 
54
54
  Inputs are expected to lie in [0, 1], for example sigmoid outputs or normalized features.
@@ -75,7 +75,7 @@ Two independent switches control how the neuron behaves.
75
75
  | `hard_backward` | input gradients from the selected operation only | input gradients from the exact derivative of the soft mixture |
76
76
 
77
77
  The gradient with respect to `theta` always comes from the softmax surrogate, in every mode. All four combinations are
78
- valid. The defaults are (`hard_forward=False`, `hard_backward=False`)
78
+ valid. The defaults are (`hard_forward=False`, `hard_backward=False`).
79
79
 
80
80
  ## Layers
81
81
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "predicateneuron"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "Differentiable predicate neuron (intersection / union / symmetric difference) and predicate layers for Keras, TensorFlow and PyTorch"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -5,4 +5,4 @@ from predicateneuron.keras import PredicateLayer, MinimalPredicateLayer, Minimal
5
5
  from predicateneuron.tf import PredicateLayer, MinimalPredicateLayer, MinimalJointPredicateLayer # tf.keras users
6
6
  from predicateneuron.torch import PredicateLayer, MinimalPredicateLayer, MinimalJointPredicateLayer # PyTorch
7
7
  """
8
- __version__ = "0.1.0"
8
+ __version__ = "0.1.1"
File without changes