molcraft 0.1.0a1__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 molcraft might be problematic. Click here for more details.

@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Alexander Kensert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,58 @@
1
+ Metadata-Version: 2.4
2
+ Name: molcraft
3
+ Version: 0.1.0a1
4
+ Summary: Graph Neural Networks for Molecular Machine Learning
5
+ Author-email: Alexander Kensert <alexander.kensert@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Alexander Kensert
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://github.com/akensert/molcraft
29
+ Keywords: python,machine-learning,deep-learning,graph-neural-networks,molecular-machine-learning,molecular-graphs,computational-chemistry,computational-biology
30
+ Classifier: Programming Language :: Python :: 3
31
+ Classifier: Intended Audience :: Science/Research
32
+ Classifier: License :: OSI Approved :: MIT License
33
+ Classifier: Operating System :: POSIX :: Linux
34
+ Requires-Python: >=3.10
35
+ Description-Content-Type: text/markdown
36
+ License-File: LICENSE
37
+ Requires-Dist: tensorflow>=2.16
38
+ Requires-Dist: rdkit>=2023.9.5
39
+ Requires-Dist: pandas>=1.0.3
40
+ Requires-Dist: ipython>=8.12.0
41
+ Provides-Extra: gpu
42
+ Requires-Dist: tensorflow[and-cuda]>=2.16; extra == "gpu"
43
+ Dynamic: license-file
44
+
45
+ <img src="https://github.com/akensert/molcraft/blob/main/docs/_static/molcraft-logo.png" alt="molcraft-logo">
46
+
47
+ **Deep Learning on Molecules**: A Minimalistic GNN package for Molecular ML.
48
+
49
+ > [!NOTE]
50
+ > In progress/Unfinished.
51
+
52
+ ## Highlights
53
+ - Compatible with **Keras 3**
54
+ - Simplified API
55
+ - Fast featurization
56
+ - Modular graph **layers**
57
+ - Serializable graph **featurizers** and **models**
58
+ - Flexible **GraphTensor**
@@ -0,0 +1,14 @@
1
+ <img src="https://github.com/akensert/molcraft/blob/main/docs/_static/molcraft-logo.png" alt="molcraft-logo">
2
+
3
+ **Deep Learning on Molecules**: A Minimalistic GNN package for Molecular ML.
4
+
5
+ > [!NOTE]
6
+ > In progress/Unfinished.
7
+
8
+ ## Highlights
9
+ - Compatible with **Keras 3**
10
+ - Simplified API
11
+ - Fast featurization
12
+ - Modular graph **layers**
13
+ - Serializable graph **featurizers** and **models**
14
+ - Flexible **GraphTensor**
@@ -0,0 +1,16 @@
1
+ __version__ = '0.1.0a1'
2
+
3
+ import os
4
+ os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
5
+
6
+ from molcraft import chem
7
+ from molcraft import features
8
+ from molcraft import descriptors
9
+ from molcraft import conformers
10
+ from molcraft import featurizers
11
+ from molcraft import layers
12
+ from molcraft import models
13
+ from molcraft import ops
14
+ from molcraft import records
15
+ from molcraft import tensors
16
+ from molcraft import callbacks
@@ -0,0 +1,21 @@
1
+ import keras
2
+
3
+
4
+ class TensorBoard(keras.callbacks.TensorBoard):
5
+
6
+ def _log_weights(self, epoch):
7
+ with self._train_writer.as_default():
8
+ for layer in self.model.layers:
9
+ for weight in layer.weights:
10
+ # Use weight.path istead of weight.name to distinguish
11
+ # weights of different layers.
12
+ histogram_weight_name = weight.path + "/histogram"
13
+ self.summary.histogram(
14
+ histogram_weight_name, weight, step=epoch
15
+ )
16
+ if self.write_images:
17
+ image_weight_name = weight.path + "/image"
18
+ self._log_weight_as_image(
19
+ weight, image_weight_name, epoch
20
+ )
21
+ self._train_writer.flush()