asim 25.9.7__cp312-cp312-manylinux2014_x86_64.whl

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.
asim/__init__.py ADDED
File without changes
asim/version.py ADDED
@@ -0,0 +1 @@
1
+ version = "25.9.3"
File without changes
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.1
2
+ Name: asim
3
+ Version: 25.9.7
4
+ Summary: Automatic simulation system powered by neural networks
5
+ Author: SHUniversity
6
+ Requires-Python: >=3.12
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: torch >=2.8.0
10
+ Requires-Dist: lightning >=2.5.5
11
+
12
+ # Automatic simulation system powered by neural networks
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ pip install asim
18
+ ```
19
+
20
+ ## What is asim
21
+
22
+ - Physical field modeling with automatic constraint enforcement
23
+ - Flexible data grouping and normalization
24
+ - Built-in support for recurrent architectures
25
+ - Export/import of trained models
26
+
27
+ ## Using asim
28
+
29
+ ```python
30
+ import pandas as pd
31
+ from asim.dataset import TimeSeriesDataModel, Ts, Fi, Fo
32
+ from asim.model import PhysicalFieldModel
33
+ from asim.trainer import Trainer
34
+
35
+ df = pd.read_csv("demo.csv")
36
+ cols = [
37
+ Ts(label="ts"),
38
+ Fi(group="boiler", label="power1", min=0.0, union="a"),
39
+ Fi(group="boiler", label="power2", min=0.0, union="a"),
40
+ Fo(group="boiler", label="temperature", rnn=True),
41
+ ]
42
+
43
+ dm = TimeSeriesDataModel(df, columns=cols, batch_size=64)
44
+ fm = PhysicalFieldModel(dm, lr=0.003)
45
+
46
+ trainer = Trainer(max_epochs=100, enable_progress_bar=False, enable_checkpointing=False, logger=None)
47
+ trainer.fit(fm.model, datamodule=dm.datamodule)
48
+
49
+ fm.export("demo.pkl")
50
+ ```
51
+
52
+ ```python
53
+ from asim.simulator import PhysicalSimulator
54
+ import matplotlib.pyplot as plt
55
+
56
+ simulator = PhysicalSimulator("demo.pkl", x_names=dm.x_names, y_names=dm.y_names)
57
+ x, y, y_ = simulator.predict(dm.df[100:1000], y0=[100])
58
+ plt.plot(y)
59
+ plt.plot(y_)
60
+ plt.show()
61
+ ```
@@ -0,0 +1,12 @@
1
+ asim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ asim/dataset.cpython-312-x86_64-linux-gnu.so,sha256=1sI7DfIoppTgBfjOEgiLM9bFz5oQrOx6Qh4KdJHsSkw,939864
3
+ asim/explainer.cpython-312-x86_64-linux-gnu.so,sha256=Ci0ffB8W8t10wOhsF7DITO3a-U3T12fLI01J7L1IpiQ,181536
4
+ asim/model.cpython-312-x86_64-linux-gnu.so,sha256=8nd3CmtSndoR2kqgpURmihGBqs4K-ZE8Q7Bg9TT9DyY,798832
5
+ asim/simulator.cpython-312-x86_64-linux-gnu.so,sha256=Nz83463_ejyXeNRNc-rOLa-LAg3-CrwsghsPvj1NZe4,358536
6
+ asim/trainer.cpython-312-x86_64-linux-gnu.so,sha256=gTXYKNnn-DCOdMXo6G09D_Ha11b2q3X1ML9PquMpRAM,73416
7
+ asim/version.py,sha256=aTmWU2DYEDSNkIRL2UL9SfvZrP69nYwtJvUOxSBLKc4,19
8
+ asim-25.9.7.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ asim-25.9.7.dist-info/METADATA,sha256=X4ivutNtCsiDSgMlyjnRSlb1XjzOTNYUBwJTo8KE7lg,1549
10
+ asim-25.9.7.dist-info/WHEEL,sha256=ddLANNxmLl16iKMqMxooGOOwKO5B0I-39A_gK8tO17s,112
11
+ asim-25.9.7.dist-info/top_level.txt,sha256=6tOoh20rJ_xz66lNdZVG11p8YArVbqac0k2MEp33X9M,5
12
+ asim-25.9.7.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (71.1.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-manylinux2014_x86_64
5
+
@@ -0,0 +1 @@
1
+ asim