auto-opt 0.0.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.
- auto_opt-0.0.1/LICENSE.txt +21 -0
- auto_opt-0.0.1/PKG-INFO +76 -0
- auto_opt-0.0.1/README.md +48 -0
- auto_opt-0.0.1/pyproject.toml +37 -0
- auto_opt-0.0.1/setup.cfg +4 -0
- auto_opt-0.0.1/src/auto_opt/__init__.py +0 -0
- auto_opt-0.0.1/src/auto_opt/data/__init__.py +0 -0
- auto_opt-0.0.1/src/auto_opt/data/collate_function.py +20 -0
- auto_opt-0.0.1/src/auto_opt/data/data_key.py +7 -0
- auto_opt-0.0.1/src/auto_opt/data/dataset.py +849 -0
- auto_opt-0.0.1/src/auto_opt/data/eval_type.py +30 -0
- auto_opt-0.0.1/src/auto_opt/data/feat_ext.py +49 -0
- auto_opt-0.0.1/src/auto_opt/data/feat_norm.py +70 -0
- auto_opt-0.0.1/src/auto_opt/data/multi_input_dataset.py +44 -0
- auto_opt-0.0.1/src/auto_opt/data/task_type.py +83 -0
- auto_opt-0.0.1/src/auto_opt/data/torch_kernel_pca.py +31 -0
- auto_opt-0.0.1/src/auto_opt/data/torch_kernel_poly.py +30 -0
- auto_opt-0.0.1/src/auto_opt/data/torch_max_abs_scaler.py +22 -0
- auto_opt-0.0.1/src/auto_opt/data/torch_min_max_scaler.py +24 -0
- auto_opt-0.0.1/src/auto_opt/data/torch_pca.py +27 -0
- auto_opt-0.0.1/src/auto_opt/data/torch_poly_feat.py +27 -0
- auto_opt-0.0.1/src/auto_opt/data/torch_robust_scaler.py +35 -0
- auto_opt-0.0.1/src/auto_opt/data/torch_standard_scaler.py +24 -0
- auto_opt-0.0.1/src/auto_opt/data/torch_truncated_svd.py +23 -0
- auto_opt-0.0.1/src/auto_opt/model/__init__.py +0 -0
- auto_opt-0.0.1/src/auto_opt/model/activation.py +135 -0
- auto_opt-0.0.1/src/auto_opt/model/bag_neural_model.py +551 -0
- auto_opt-0.0.1/src/auto_opt/model/bag_neural_trainer.py +456 -0
- auto_opt-0.0.1/src/auto_opt/model/bnn_guide.py +53 -0
- auto_opt-0.0.1/src/auto_opt/model/bnn_mlp_model_node.py +89 -0
- auto_opt-0.0.1/src/auto_opt/model/bnn_model.py +129 -0
- auto_opt-0.0.1/src/auto_opt/model/bnn_model_graph.py +281 -0
- auto_opt-0.0.1/src/auto_opt/model/bnn_torch_model.py +214 -0
- auto_opt-0.0.1/src/auto_opt/model/bnn_trainer.py +642 -0
- auto_opt-0.0.1/src/auto_opt/model/drop_neural_model_node.py +166 -0
- auto_opt-0.0.1/src/auto_opt/model/exit_neural_model_node.py +151 -0
- auto_opt-0.0.1/src/auto_opt/model/ftt_neural_model_node.py +211 -0
- auto_opt-0.0.1/src/auto_opt/model/ftt_torch_module.py +80 -0
- auto_opt-0.0.1/src/auto_opt/model/gbr_model.py +104 -0
- auto_opt-0.0.1/src/auto_opt/model/generable.py +13 -0
- auto_opt-0.0.1/src/auto_opt/model/gh.py +181 -0
- auto_opt-0.0.1/src/auto_opt/model/graph_neural_model_node.py +180 -0
- auto_opt-0.0.1/src/auto_opt/model/gte_neural_model_node.py +134 -0
- auto_opt-0.0.1/src/auto_opt/model/gtn_neural_model_node.py +120 -0
- auto_opt-0.0.1/src/auto_opt/model/gtv_neural_model_node.py +166 -0
- auto_opt-0.0.1/src/auto_opt/model/in_out_type.py +35 -0
- auto_opt-0.0.1/src/auto_opt/model/input_neural_model_node.py +312 -0
- auto_opt-0.0.1/src/auto_opt/model/layer_type.py +121 -0
- auto_opt-0.0.1/src/auto_opt/model/mlp_neural_model_node.py +183 -0
- auto_opt-0.0.1/src/auto_opt/model/model.py +42 -0
- auto_opt-0.0.1/src/auto_opt/model/moe_neural_model_node.py +194 -0
- auto_opt-0.0.1/src/auto_opt/model/moe_torch_module.py +47 -0
- auto_opt-0.0.1/src/auto_opt/model/neural_loss.py +96 -0
- auto_opt-0.0.1/src/auto_opt/model/neural_model.py +369 -0
- auto_opt-0.0.1/src/auto_opt/model/neural_model_graph.py +606 -0
- auto_opt-0.0.1/src/auto_opt/model/neural_model_node.py +174 -0
- auto_opt-0.0.1/src/auto_opt/model/neural_optimizer.py +58 -0
- auto_opt-0.0.1/src/auto_opt/model/neural_trainer.py +1044 -0
- auto_opt-0.0.1/src/auto_opt/model/nmg.py +630 -0
- auto_opt-0.0.1/src/auto_opt/model/normalization.py +29 -0
- auto_opt-0.0.1/src/auto_opt/model/npdh.py +133 -0
- auto_opt-0.0.1/src/auto_opt/model/res_net_neural_model_node.py +176 -0
- auto_opt-0.0.1/src/auto_opt/model/res_net_torch_module.py +29 -0
- auto_opt-0.0.1/src/auto_opt/model/rf_reg_model.py +100 -0
- auto_opt-0.0.1/src/auto_opt/model/sklearn_model_trainer.py +404 -0
- auto_opt-0.0.1/src/auto_opt/model/torch_model.py +357 -0
- auto_opt-0.0.1/src/auto_opt/model/trainer.py +44 -0
- auto_opt-0.0.1/src/auto_opt/opt/__init__.py +0 -0
- auto_opt-0.0.1/src/auto_opt/opt/bayes_opt.py +285 -0
- auto_opt-0.0.1/src/auto_opt/opt/bayes_optimizable.py +6 -0
- auto_opt-0.0.1/src/auto_opt/opt/bayes_options.py +37 -0
- auto_opt-0.0.1/src/auto_opt/opt/cat_constr.py +40 -0
- auto_opt-0.0.1/src/auto_opt/opt/change_type.py +58 -0
- auto_opt-0.0.1/src/auto_opt/opt/complex_constr_float.py +67 -0
- auto_opt-0.0.1/src/auto_opt/opt/complex_constr_int.py +69 -0
- auto_opt-0.0.1/src/auto_opt/opt/constr_type.py +38 -0
- auto_opt-0.0.1/src/auto_opt/opt/feat_ext_constr.py +318 -0
- auto_opt-0.0.1/src/auto_opt/opt/float_constr.py +118 -0
- auto_opt-0.0.1/src/auto_opt/opt/full_diff_pipeline.py +62 -0
- auto_opt-0.0.1/src/auto_opt/opt/gen_hill_climb_opt.py +195 -0
- auto_opt-0.0.1/src/auto_opt/opt/gen_hill_climb_options.py +52 -0
- auto_opt-0.0.1/src/auto_opt/opt/gen_sec_opt.py +7 -0
- auto_opt-0.0.1/src/auto_opt/opt/gen_strat.py +8 -0
- auto_opt-0.0.1/src/auto_opt/opt/hill_climb_opt.py +112 -0
- auto_opt-0.0.1/src/auto_opt/opt/hill_climb_options.py +34 -0
- auto_opt-0.0.1/src/auto_opt/opt/int_constr.py +121 -0
- auto_opt-0.0.1/src/auto_opt/opt/optimizer.py +62 -0
- auto_opt-0.0.1/src/auto_opt/opt/options.py +39 -0
- auto_opt-0.0.1/src/auto_opt/para/bag_neural_para_eng.py +397 -0
- auto_opt-0.0.1/src/auto_opt/para/bnn_para_eng.py +401 -0
- auto_opt-0.0.1/src/auto_opt/para/neural_para_eng.py +397 -0
- auto_opt-0.0.1/src/auto_opt/para/para_eng.py +133 -0
- auto_opt-0.0.1/src/auto_opt/para/para_eng_gen.py +44 -0
- auto_opt-0.0.1/src/auto_opt/para/para_type.py +8 -0
- auto_opt-0.0.1/src/auto_opt/para/sklearn_para_eng.py +199 -0
- auto_opt-0.0.1/src/auto_opt/param/param_holder.py +688 -0
- auto_opt-0.0.1/src/auto_opt/splits/train_val.py +98 -0
- auto_opt-0.0.1/src/auto_opt/splits/train_val_test.py +143 -0
- auto_opt-0.0.1/src/auto_opt/viz/bag_viz.py +75 -0
- auto_opt-0.0.1/src/auto_opt.egg-info/PKG-INFO +76 -0
- auto_opt-0.0.1/src/auto_opt.egg-info/SOURCES.txt +102 -0
- auto_opt-0.0.1/src/auto_opt.egg-info/dependency_links.txt +1 -0
- auto_opt-0.0.1/src/auto_opt.egg-info/requires.txt +15 -0
- auto_opt-0.0.1/src/auto_opt.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nick Cliffel
|
|
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.
|
auto_opt-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: auto-opt
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: An AutoDL Package
|
|
5
|
+
Author-email: Nick Cliffel <cliffel.11@osu.edu>
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.8
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE.txt
|
|
12
|
+
Requires-Dist: tapipy>=1.0.0
|
|
13
|
+
Requires-Dist: joblib>=1.5.3
|
|
14
|
+
Requires-Dist: matplotlib>=3.11.1
|
|
15
|
+
Requires-Dist: netext>=0.5.0
|
|
16
|
+
Requires-Dist: networkx>=3.4.2
|
|
17
|
+
Requires-Dist: numpy>=2.5.2
|
|
18
|
+
Requires-Dist: pandas>=3.0.5
|
|
19
|
+
Requires-Dist: psutil>=7.2.2
|
|
20
|
+
Requires-Dist: pyro_ppl>=1.9.1
|
|
21
|
+
Requires-Dist: rich>=15.0.0
|
|
22
|
+
Requires-Dist: scikit_learn>=1.9.0
|
|
23
|
+
Requires-Dist: threadpoolctl>=3.6.0
|
|
24
|
+
Requires-Dist: torch>=2.11.0
|
|
25
|
+
Requires-Dist: torch_geometric>=2.8.0
|
|
26
|
+
Requires-Dist: tqdm>=4.67.3
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
# auto-opt-package
|
|
30
|
+
|
|
31
|
+
## Name
|
|
32
|
+
|
|
33
|
+
auto-opt
|
|
34
|
+
|
|
35
|
+
## Description
|
|
36
|
+
|
|
37
|
+
This is an opensource AutoDL framework for tabular datasets. auto-opt will provide access a variety of different optimization methods in the future, however, currently auto-opt is centered around hill climbing with multiple step sizes. This form of optimization while simple produces good results while easily handeling categorical values.
|
|
38
|
+
|
|
39
|
+
## Visuals
|
|
40
|
+
|
|
41
|
+
Screenshots will be added at a later data.
|
|
42
|
+
|
|
43
|
+
## Installation
|
|
44
|
+
|
|
45
|
+
This code based can be downloaded via gitlab at (https://code.osu.edu/cliffel.11/auto-opt-package) or can be installed and utilized via pip.
|
|
46
|
+
|
|
47
|
+
## Usage
|
|
48
|
+
|
|
49
|
+
Usage examples will be added at a later date.
|
|
50
|
+
|
|
51
|
+
## Support
|
|
52
|
+
|
|
53
|
+
For bug reports and other issues please contact cliffel.11@osu.edu
|
|
54
|
+
|
|
55
|
+
## Roadmap
|
|
56
|
+
|
|
57
|
+
In the coming months we will finish the BayesOpt optimizer and add more node types. While the GNN based search is laid out it has not been throughly tested but will be in the future.
|
|
58
|
+
|
|
59
|
+
## Contributing
|
|
60
|
+
|
|
61
|
+
Right now we are not accepting contributions from others due to contribution requirements not having been established but hope to in the future.
|
|
62
|
+
|
|
63
|
+
## Authors and acknowledgment
|
|
64
|
+
|
|
65
|
+
Nick Cliffel (cliffel.11@osu.edu)
|
|
66
|
+
Rajiv Ramnath
|
|
67
|
+
|
|
68
|
+
National Science Foundation (NSF) funded AI institute for Intelligent Cyberinfrastructure with Computational Learning in the Environment (ICICLE) (OAC 2112606)
|
|
69
|
+
|
|
70
|
+
## License
|
|
71
|
+
|
|
72
|
+
This project is licensed under the MIT License. See the `LICENSE.txt` file for details.
|
|
73
|
+
|
|
74
|
+
## Project status
|
|
75
|
+
|
|
76
|
+
The project is currently undergoing development. The hill climbing based optimizers are stable and can be used freely. The BayesOpt optimizer is still incomplete at this time, however, is included in the release as it shows how to use the developed models for inference. The GNN search should has not been throughly tested and is still relatively unstable.
|
auto_opt-0.0.1/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# auto-opt-package
|
|
2
|
+
|
|
3
|
+
## Name
|
|
4
|
+
|
|
5
|
+
auto-opt
|
|
6
|
+
|
|
7
|
+
## Description
|
|
8
|
+
|
|
9
|
+
This is an opensource AutoDL framework for tabular datasets. auto-opt will provide access a variety of different optimization methods in the future, however, currently auto-opt is centered around hill climbing with multiple step sizes. This form of optimization while simple produces good results while easily handeling categorical values.
|
|
10
|
+
|
|
11
|
+
## Visuals
|
|
12
|
+
|
|
13
|
+
Screenshots will be added at a later data.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
This code based can be downloaded via gitlab at (https://code.osu.edu/cliffel.11/auto-opt-package) or can be installed and utilized via pip.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Usage examples will be added at a later date.
|
|
22
|
+
|
|
23
|
+
## Support
|
|
24
|
+
|
|
25
|
+
For bug reports and other issues please contact cliffel.11@osu.edu
|
|
26
|
+
|
|
27
|
+
## Roadmap
|
|
28
|
+
|
|
29
|
+
In the coming months we will finish the BayesOpt optimizer and add more node types. While the GNN based search is laid out it has not been throughly tested but will be in the future.
|
|
30
|
+
|
|
31
|
+
## Contributing
|
|
32
|
+
|
|
33
|
+
Right now we are not accepting contributions from others due to contribution requirements not having been established but hope to in the future.
|
|
34
|
+
|
|
35
|
+
## Authors and acknowledgment
|
|
36
|
+
|
|
37
|
+
Nick Cliffel (cliffel.11@osu.edu)
|
|
38
|
+
Rajiv Ramnath
|
|
39
|
+
|
|
40
|
+
National Science Foundation (NSF) funded AI institute for Intelligent Cyberinfrastructure with Computational Learning in the Environment (ICICLE) (OAC 2112606)
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
This project is licensed under the MIT License. See the `LICENSE.txt` file for details.
|
|
45
|
+
|
|
46
|
+
## Project status
|
|
47
|
+
|
|
48
|
+
The project is currently undergoing development. The hill climbing based optimizers are stable and can be used freely. The BayesOpt optimizer is still incomplete at this time, however, is included in the release as it shows how to use the developed models for inference. The GNN search should has not been throughly tested and is still relatively unstable.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "auto-opt"
|
|
7
|
+
version = "0.0.01"
|
|
8
|
+
authors = [
|
|
9
|
+
{name="Nick Cliffel", email="cliffel.11@osu.edu"}
|
|
10
|
+
]
|
|
11
|
+
description="An AutoDL Package"
|
|
12
|
+
readme="README.md"
|
|
13
|
+
requires-python=">=3.8"
|
|
14
|
+
dependencies = [
|
|
15
|
+
"tapipy>=1.0.0",
|
|
16
|
+
"joblib>=1.5.3",
|
|
17
|
+
"matplotlib>=3.11.1",
|
|
18
|
+
"netext>=0.5.0",
|
|
19
|
+
"networkx>=3.4.2",
|
|
20
|
+
"numpy>=2.5.2",
|
|
21
|
+
"pandas>=3.0.5",
|
|
22
|
+
"psutil>=7.2.2",
|
|
23
|
+
"pyro_ppl>=1.9.1",
|
|
24
|
+
"rich>=15.0.0",
|
|
25
|
+
"scikit_learn>=1.9.0",
|
|
26
|
+
"threadpoolctl>=3.6.0",
|
|
27
|
+
"torch>=2.11.0",
|
|
28
|
+
"torch_geometric>=2.8.0",
|
|
29
|
+
"tqdm>=4.67.3"
|
|
30
|
+
]
|
|
31
|
+
classifiers = [
|
|
32
|
+
"Programming Language :: Python :: 3",
|
|
33
|
+
"License :: OSI Approved :: MIT License",
|
|
34
|
+
"Operating System :: OS Independent"
|
|
35
|
+
]
|
|
36
|
+
[tool.setuptools.packages.find]
|
|
37
|
+
where = ["src"]
|
auto_opt-0.0.1/setup.cfg
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import torch
|
|
2
|
+
import torch_geometric as pyg
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def custom_collate_fn(batch:list) -> dict:
|
|
6
|
+
# creating labels
|
|
7
|
+
labels = torch.stack([item["labels"] for item in batch])
|
|
8
|
+
# stacking tabular inputs normally
|
|
9
|
+
tabular_inputs = {}
|
|
10
|
+
for key in batch[0]["tabular_inputs"]:
|
|
11
|
+
tabular_inputs[key] = torch.stack([item["tabular_inputs"][key] for item in batch])
|
|
12
|
+
# batch graph inputs using pytroch geometric
|
|
13
|
+
graph_inputs = {}
|
|
14
|
+
for key in batch[0]["graph_inputs"]:
|
|
15
|
+
graph_inputs[key] = pyg.data.Batch.from_data_list([item["graph_inputs"][key] for item in batch])
|
|
16
|
+
return {
|
|
17
|
+
"labels": labels,
|
|
18
|
+
"tabular_inputs": tabular_inputs,
|
|
19
|
+
"graph_inputs": graph_inputs
|
|
20
|
+
}
|