-
Notifications
You must be signed in to change notification settings - Fork 7
feature: Add four new distributions: uniform, beta, cauchy and pareto I type #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6d730e6
feat: add cauchy, beta, uniform and pareto I type distributions
iraedeus 8d7b22f
fix: deterministic experimental environment
iraedeus 224e2e6
test: add tests for deterministic expenv and core module
iraedeus 759ba73
fix: remove unnecessary file, fix pyproject.toml
iraedeus 09fad09
docs: add first version of docs and design doc
iraedeus 1685405
fix: fix copilot comments
iraedeus acde4af
tests: fix test
iraedeus 9ca8767
docs: fix paths to images
iraedeus c43f868
Merge branch 'main' into iraedeus/new-distributions
iraedeus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Minimal makefile for Sphinx documentation | ||
| # | ||
|
|
||
| # You can set these variables from the command line, and also | ||
| # from the environment for the first two. | ||
| SPHINXOPTS ?= | ||
| SPHINXBUILD ?= sphinx-build | ||
| SOURCEDIR = source | ||
| BUILDDIR = build | ||
|
|
||
| # Put it first so that "make" without argument is like "make help". | ||
| help: | ||
| @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
|
||
| .PHONY: help Makefile | ||
|
|
||
| # Catch-all target: route all unknown targets to Sphinx using the new | ||
| # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
| %: Makefile | ||
| @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| @ECHO OFF | ||
|
|
||
| pushd %~dp0 | ||
|
|
||
| REM Command file for Sphinx documentation | ||
|
|
||
| if "%SPHINXBUILD%" == "" ( | ||
| set SPHINXBUILD=sphinx-build | ||
| ) | ||
| set SOURCEDIR=source | ||
| set BUILDDIR=build | ||
|
|
||
| %SPHINXBUILD% >NUL 2>NUL | ||
| if errorlevel 9009 ( | ||
| echo. | ||
| echo.The 'sphinx-build' command was not found. Make sure you have Sphinx | ||
| echo.installed, then set the SPHINXBUILD environment variable to point | ||
| echo.to the full path of the 'sphinx-build' executable. Alternatively you | ||
| echo.may add the Sphinx directory to PATH. | ||
| echo. | ||
| echo.If you don't have Sphinx installed, grab it from | ||
| echo.https://www.sphinx-doc.org/ | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| if "%1" == "" goto help | ||
|
|
||
| %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
| goto end | ||
|
|
||
| :help | ||
| %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
|
|
||
| :end | ||
| popd |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| mpest | ||
| ===== | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 4 | ||
|
|
||
| mpest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| mpest.core | ||
| ================== | ||
|
|
||
| .. automodule:: mpest.core | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| mpest.core.distribution module | ||
| ------------------------------ | ||
|
|
||
| .. automodule:: mpest.core.distribution | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.core.mixture\_distribution module | ||
| --------------------------------------- | ||
|
|
||
| .. automodule:: mpest.core.mixture_distribution | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.core.problem module | ||
| ------------------------- | ||
|
|
||
| .. automodule:: mpest.core.problem | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| mpest.em.breakpointers | ||
| ============================== | ||
|
|
||
| .. automodule:: mpest.em.breakpointers | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| mpest.em.breakpointers.param\_differ\_breakpointer module | ||
| --------------------------------------------------------- | ||
|
|
||
| .. automodule:: mpest.em.breakpointers.param_differ_breakpointer | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.em.breakpointers.step\_count\_breakpointer module | ||
| ------------------------------------------------------- | ||
|
|
||
| .. automodule:: mpest.em.breakpointers.step_count_breakpointer | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.em.breakpointers.unionable\_breakpointer module | ||
| ----------------------------------------------------- | ||
|
|
||
| .. automodule:: mpest.em.breakpointers.unionable_breakpointer | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| mpest.em.distribution\_checkers | ||
| ======================================= | ||
|
|
||
| .. automodule:: mpest.em.distribution_checkers | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| mpest.em.distribution\_checkers.finite\_checker module | ||
| ------------------------------------------------------ | ||
|
|
||
| .. automodule:: mpest.em.distribution_checkers.finite_checker | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.em.distribution\_checkers.prior\_probability\_threshold\_checker module | ||
| ----------------------------------------------------------------------------- | ||
|
|
||
| .. automodule:: mpest.em.distribution_checkers.prior_probability_threshold_checker | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.em.distribution\_checkers.unionable\_distribution\_checker module | ||
| ----------------------------------------------------------------------- | ||
|
|
||
| .. automodule:: mpest.em.distribution_checkers.unionable_distribution_checker | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| mpest.em.methods | ||
| ======================== | ||
|
|
||
| .. automodule:: mpest.em.methods | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| mpest.em.methods.abstract\_steps module | ||
| --------------------------------------- | ||
|
|
||
| .. automodule:: mpest.em.methods.abstract_steps | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.em.methods.l\_moments\_method module | ||
| ------------------------------------------ | ||
|
|
||
| .. automodule:: mpest.em.methods.l_moments_method | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.em.methods.likelihood\_method module | ||
| ------------------------------------------ | ||
|
|
||
| .. automodule:: mpest.em.methods.likelihood_method | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.em.methods.method module | ||
| ------------------------------ | ||
|
|
||
| .. automodule:: mpest.em.methods.method | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| mpest.em | ||
| ================ | ||
|
|
||
| .. automodule:: mpest.em | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| Subpackages | ||
| ----------- | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 4 | ||
|
|
||
| mpest.em.breakpointers | ||
| mpest.em.distribution_checkers | ||
| mpest.em.methods | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| mpest.em.em module | ||
| ------------------ | ||
|
|
||
| .. automodule:: mpest.em.em | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| mpest.models | ||
| ==================== | ||
|
|
||
| .. automodule:: mpest.models | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| mpest.models.abstract\_model module | ||
| ----------------------------------- | ||
|
|
||
| .. automodule:: mpest.models.abstract_model | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.models.beta module | ||
| ------------------------ | ||
|
|
||
| .. automodule:: mpest.models.beta | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.models.cauchy module | ||
| -------------------------- | ||
|
|
||
| .. automodule:: mpest.models.cauchy | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.models.exponential module | ||
| ------------------------------- | ||
|
|
||
| .. automodule:: mpest.models.exponential | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.models.gaussian module | ||
| ---------------------------- | ||
|
|
||
| .. automodule:: mpest.models.gaussian | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.models.pareto module | ||
| -------------------------- | ||
|
|
||
| .. automodule:: mpest.models.pareto | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.models.weibull module | ||
| --------------------------- | ||
|
|
||
| .. automodule:: mpest.models.weibull | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| mpest.optimizers | ||
| ======================== | ||
|
|
||
| .. automodule:: mpest.optimizers | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| mpest.optimizers.abstract\_optimizer module | ||
| ------------------------------------------- | ||
|
|
||
| .. automodule:: mpest.optimizers.abstract_optimizer | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.optimizers.scipy\_cg module | ||
| --------------------------------- | ||
|
|
||
| .. automodule:: mpest.optimizers.scipy_cg | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.optimizers.scipy\_cobyla module | ||
| ------------------------------------- | ||
|
|
||
| .. automodule:: mpest.optimizers.scipy_cobyla | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.optimizers.scipy\_nelder\_mead module | ||
| ------------------------------------------- | ||
|
|
||
| .. automodule:: mpest.optimizers.scipy_nelder_mead | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.optimizers.scipy\_newton\_cg module | ||
| ----------------------------------------- | ||
|
|
||
| .. automodule:: mpest.optimizers.scipy_newton_cg | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.optimizers.scipy\_slsqp module | ||
| ------------------------------------ | ||
|
|
||
| .. automodule:: mpest.optimizers.scipy_slsqp | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: | ||
|
|
||
| mpest.optimizers.scipy\_tnc module | ||
| ---------------------------------- | ||
|
|
||
| .. automodule:: mpest.optimizers.scipy_tnc | ||
| :members: | ||
| :show-inheritance: | ||
| :undoc-members: |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's need to be a MixtureDistribution, not a Misture