pyoptex


Namepyoptex JSON
Version 1.0.0rc1 PyPI version JSON
download
home_pageNone
SummaryFlexible and accessible design of experiments in Python. Provides industry with an easy package to create designs based with limited expert knowledge. Provides researchers with the ability to easily create new criteria and design structures.
upload_time2025-01-18 12:31:51
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseBSD 3-Clause License Copyright (c) 2022-2025, Mathias Born Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords python flexible accessible data-analysis design-of-experiments pyoptex innovation cost-optimization
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyOptEx

| | |
| --- | --- |
| Package | [![PyPI Latest Release](https://img.shields.io/pypi/v/pyoptex.svg)](https://pypi.org/project/pyoptex/) [![PyPI Downloads](https://img.shields.io/pypi/dm/pyoptex.svg?label=PyPI%20downloads)](https://pypi.org/project/pyoptex/) |
| Meta | [![License - BSD 3-Clause](https://img.shields.io/pypi/l/pyoptex.svg)](https://github.com/mborn1/pyoptex/blob/main/LICENSE) [![docs](https://img.shields.io/readthedocs/pyoptex)](https://pyoptex.readthedocs.io/en/latest/) |


PyOptEx (or Python Optimal Experiments) is a package designed to create optimal design of experiments with Python. It is fully open source and can be used for any purpose.

The package is designed for both engineers, and design of experiment researchers. Engineers can use the precreated functions to generate designs for their problems,
especially the cost-optimal algorithms. Researchers can easily develop new metrics (criteria) and test them.

To generate experimental designs, there are two main options:

* **Fixed structure**: These designs have a fixed number of runs and fixed randomization
  structure, known upfront. Well-known designs include split-plot, strip-plot, and 
  regular staggered-level designs. A specialization is also included for splitk-plot
  designs using the update formulas as described in 
  [Born and Goos (2025)](https://www.sciencedirect.com/science/article/pii/S0167947324001129).

* **Cost-optimal designs**: These design generation algorithms follow a new 
  DoE philosophy. 
  Instead of fixing the number of runs and randomization structure, the algorithm 
  optimizes directly based on the underlying resource constraints. The user must only 
  specify a budget and a function which computes the resource consumption of a design. 
  Go to Creating a cost-optimal design for an example. The currently implemented 
  algorithm is CODEX.

**_NOTE:_**  This package does not have a release version yet and is still under active development.

## Main features

* The **first complete Python package for optimal design of experiments**. Model
  [everything](https://pyoptex.readthedocs.io/en/latest/_docs/doe/example_scenarios.html#example-scenarios) including continuous factors, categorical factors, 
  mixtures, blocked experiments, split-plot experiments, staggered-level experiments.

* **Intuitive design of experiments** with 
  [cost-optimal designs](https://pyoptex.readthedocs.io/en/latest/_docs/doe/quickstart.html#qc-cost) 
  for everyone. No longer requires expert statistical knowledge before creating
  experiments.

* Accounts for **any constraint** you require. Not only can you choose 
  the randomization structure 
  [manually](https://pyoptex.readthedocs.io/en/latest/_docs/doe/quickstart.html#qc-other-fixed), 
  or let the 
  [cost-optimal](https://pyoptex.readthedocs.io/en/latest/_docs/doe/quickstart.html#qc-cost) 
  design algorithms figure it out automatically, you can also specify the physically 
  possible factor combinations for a run.

* **Augmenting** designs was never easier. Simply read your initial design 
  to a pandas dataframe and augment it by passing it as a 
  [prior](https://pyoptex.readthedocs.io/en/latest/_docs/doe/customization.html#cust-augment).

* **Customize** any part of the algorithm, including the 
  [optimization criteria](https://pyoptex.readthedocs.io/en/latest/_docs/doe/customization.html#cust-metric) (metrics), 
  [linear model](https://pyoptex.readthedocs.io/en/latest/_docs/doe/customization.html#cust-model), 
  [encoding of the categorical factors](https://pyoptex.readthedocs.io/en/latest/_docs/doe/customization.html#cust-cat-encoding), 
  and much more.

* Directly optimize for **Bayesian** 
  [a-priori variance ratios](https://pyoptex.readthedocs.io/en/latest/_docs/doe/customization.html#cust-bayesian-ratio)
  in designs with hard-to-change factors.

* High-performance **model selection** using 
  [SAMS](https://pyoptex.readthedocs.io/en/latest/_docs/analysis/customization.html#a-cust-sams)
   (simulated annealing model selection)
  [(Wolters and Bingham, 2012)](https://www.tandfonline.com/doi/abs/10.1198/TECH.2011.08157).

## Getting started

Install this package using pip

```
pip install pyoptex
```

## Documentation
The documentation for this package can be found at [here](https://pyoptex.readthedocs.io/en/latest/)

## Create your first design
See the documentation on [Your first design](https://pyoptex.readthedocs.io/en/latest/_docs/doe/quickstart.html)

## Analyze your first dataset
See the documentation on [Your first dataset](https://pyoptex.readthedocs.io/en/latest/_docs/analysis/quickstart.html)

## License
BSD-3 clause, meaning you can use and alter it for any purpose,
open-source or commercial!
However, any open-source contributions to this project are much
appreciated by the community.

## Contributing
Any ideas, bugs and features requests can be added as an [issue](https://github.com/mborn1/pyoptex/issues). Any direct code contributions can be added via pull requests.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyoptex",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "python, flexible, accessible, data-analysis, design-of-experiments, pyoptex, innovation, cost-optimization",
    "author": null,
    "author_email": "Mathias Born <mathiasborn2@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/27/0e/018d8749afaeeab11604bda6304c33391cf7a2531bbcd50045465b1e6e1b/pyoptex-1.0.0rc1.tar.gz",
    "platform": null,
    "description": "# PyOptEx\n\n| | |\n| --- | --- |\n| Package | [![PyPI Latest Release](https://img.shields.io/pypi/v/pyoptex.svg)](https://pypi.org/project/pyoptex/) [![PyPI Downloads](https://img.shields.io/pypi/dm/pyoptex.svg?label=PyPI%20downloads)](https://pypi.org/project/pyoptex/) |\n| Meta | [![License - BSD 3-Clause](https://img.shields.io/pypi/l/pyoptex.svg)](https://github.com/mborn1/pyoptex/blob/main/LICENSE) [![docs](https://img.shields.io/readthedocs/pyoptex)](https://pyoptex.readthedocs.io/en/latest/) |\n\n\nPyOptEx (or Python Optimal Experiments) is a package designed to create optimal design of experiments with Python. It is fully open source and can be used for any purpose.\n\nThe package is designed for both engineers, and design of experiment researchers. Engineers can use the precreated functions to generate designs for their problems,\nespecially the cost-optimal algorithms. Researchers can easily develop new metrics (criteria) and test them.\n\nTo generate experimental designs, there are two main options:\n\n* **Fixed structure**: These designs have a fixed number of runs and fixed randomization\n  structure, known upfront. Well-known designs include split-plot, strip-plot, and \n  regular staggered-level designs. A specialization is also included for splitk-plot\n  designs using the update formulas as described in \n  [Born and Goos (2025)](https://www.sciencedirect.com/science/article/pii/S0167947324001129).\n\n* **Cost-optimal designs**: These design generation algorithms follow a new \n  DoE philosophy. \n  Instead of fixing the number of runs and randomization structure, the algorithm \n  optimizes directly based on the underlying resource constraints. The user must only \n  specify a budget and a function which computes the resource consumption of a design. \n  Go to Creating a cost-optimal design for an example. The currently implemented \n  algorithm is CODEX.\n\n**_NOTE:_**  This package does not have a release version yet and is still under active development.\n\n## Main features\n\n* The **first complete Python package for optimal design of experiments**. Model\n  [everything](https://pyoptex.readthedocs.io/en/latest/_docs/doe/example_scenarios.html#example-scenarios) including continuous factors, categorical factors, \n  mixtures, blocked experiments, split-plot experiments, staggered-level experiments.\n\n* **Intuitive design of experiments** with \n  [cost-optimal designs](https://pyoptex.readthedocs.io/en/latest/_docs/doe/quickstart.html#qc-cost) \n  for everyone. No longer requires expert statistical knowledge before creating\n  experiments.\n\n* Accounts for **any constraint** you require. Not only can you choose \n  the randomization structure \n  [manually](https://pyoptex.readthedocs.io/en/latest/_docs/doe/quickstart.html#qc-other-fixed), \n  or let the \n  [cost-optimal](https://pyoptex.readthedocs.io/en/latest/_docs/doe/quickstart.html#qc-cost) \n  design algorithms figure it out automatically, you can also specify the physically \n  possible factor combinations for a run.\n\n* **Augmenting** designs was never easier. Simply read your initial design \n  to a pandas dataframe and augment it by passing it as a \n  [prior](https://pyoptex.readthedocs.io/en/latest/_docs/doe/customization.html#cust-augment).\n\n* **Customize** any part of the algorithm, including the \n  [optimization criteria](https://pyoptex.readthedocs.io/en/latest/_docs/doe/customization.html#cust-metric) (metrics), \n  [linear model](https://pyoptex.readthedocs.io/en/latest/_docs/doe/customization.html#cust-model), \n  [encoding of the categorical factors](https://pyoptex.readthedocs.io/en/latest/_docs/doe/customization.html#cust-cat-encoding), \n  and much more.\n\n* Directly optimize for **Bayesian** \n  [a-priori variance ratios](https://pyoptex.readthedocs.io/en/latest/_docs/doe/customization.html#cust-bayesian-ratio)\n  in designs with hard-to-change factors.\n\n* High-performance **model selection** using \n  [SAMS](https://pyoptex.readthedocs.io/en/latest/_docs/analysis/customization.html#a-cust-sams)\n   (simulated annealing model selection)\n  [(Wolters and Bingham, 2012)](https://www.tandfonline.com/doi/abs/10.1198/TECH.2011.08157).\n\n## Getting started\n\nInstall this package using pip\n\n```\npip install pyoptex\n```\n\n## Documentation\nThe documentation for this package can be found at [here](https://pyoptex.readthedocs.io/en/latest/)\n\n## Create your first design\nSee the documentation on [Your first design](https://pyoptex.readthedocs.io/en/latest/_docs/doe/quickstart.html)\n\n## Analyze your first dataset\nSee the documentation on [Your first dataset](https://pyoptex.readthedocs.io/en/latest/_docs/analysis/quickstart.html)\n\n## License\nBSD-3 clause, meaning you can use and alter it for any purpose,\nopen-source or commercial!\nHowever, any open-source contributions to this project are much\nappreciated by the community.\n\n## Contributing\nAny ideas, bugs and features requests can be added as an [issue](https://github.com/mborn1/pyoptex/issues). Any direct code contributions can be added via pull requests.\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License  Copyright (c) 2022-2025, Mathias Born  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
    "summary": "Flexible and accessible design of experiments in Python. Provides industry with an easy package to create designs based with limited expert knowledge. Provides researchers with the ability to easily create new criteria and design structures.",
    "version": "1.0.0rc1",
    "project_urls": {
        "Documentation": "https://pyoptex.readthedocs.io/en/latest/",
        "Homepage": "https://github.com/mborn1/pyoptex",
        "Issues": "https://github.com/mborn1/pyoptex/issues",
        "Repository": "https://github.com/mborn1/pyoptex"
    },
    "split_keywords": [
        "python",
        " flexible",
        " accessible",
        " data-analysis",
        " design-of-experiments",
        " pyoptex",
        " innovation",
        " cost-optimization"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22184f23431d7b3c02094e0b2a183746bf129eff464f5821fe850f66e5efecd7",
                "md5": "046b8e89610060e1c2ecab407cb20cf5",
                "sha256": "a29a62c47281b91e4a7c78e414c4978728c27df9ba4a5c10bb7f6b9f47907c2f"
            },
            "downloads": -1,
            "filename": "pyoptex-1.0.0rc1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "046b8e89610060e1c2ecab407cb20cf5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 140434,
            "upload_time": "2025-01-18T12:31:48",
            "upload_time_iso_8601": "2025-01-18T12:31:48.791551Z",
            "url": "https://files.pythonhosted.org/packages/22/18/4f23431d7b3c02094e0b2a183746bf129eff464f5821fe850f66e5efecd7/pyoptex-1.0.0rc1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "270e018d8749afaeeab11604bda6304c33391cf7a2531bbcd50045465b1e6e1b",
                "md5": "69fc1f0e1fea1a200cd880088770ae81",
                "sha256": "b7e5fcfede28d0de6dac17554242acaa894045ff2892377495933aa7de34e176"
            },
            "downloads": -1,
            "filename": "pyoptex-1.0.0rc1.tar.gz",
            "has_sig": false,
            "md5_digest": "69fc1f0e1fea1a200cd880088770ae81",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 107503,
            "upload_time": "2025-01-18T12:31:51",
            "upload_time_iso_8601": "2025-01-18T12:31:51.437213Z",
            "url": "https://files.pythonhosted.org/packages/27/0e/018d8749afaeeab11604bda6304c33391cf7a2531bbcd50045465b1e6e1b/pyoptex-1.0.0rc1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-18 12:31:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mborn1",
    "github_project": "pyoptex",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyoptex"
}
        
Elapsed time: 0.46037s