StackGP 0.0.10__tar.gz → 0.0.12__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.
- {stackgp-0.0.10 → stackgp-0.0.12}/PKG-INFO +1 -1
- {stackgp-0.0.10 → stackgp-0.0.12}/StackGP/StackGP.py +14 -3
- {stackgp-0.0.10 → stackgp-0.0.12}/StackGP.egg-info/PKG-INFO +1 -1
- {stackgp-0.0.10 → stackgp-0.0.12}/pyproject.toml +1 -1
- {stackgp-0.0.10 → stackgp-0.0.12}/LICENSE +0 -0
- {stackgp-0.0.10 → stackgp-0.0.12}/README.md +0 -0
- {stackgp-0.0.10 → stackgp-0.0.12}/StackGP/__init__.py +0 -0
- {stackgp-0.0.10 → stackgp-0.0.12}/StackGP.egg-info/SOURCES.txt +0 -0
- {stackgp-0.0.10 → stackgp-0.0.12}/StackGP.egg-info/dependency_links.txt +0 -0
- {stackgp-0.0.10 → stackgp-0.0.12}/StackGP.egg-info/requires.txt +0 -0
- {stackgp-0.0.10 → stackgp-0.0.12}/StackGP.egg-info/top_level.txt +0 -0
- {stackgp-0.0.10 → stackgp-0.0.12}/setup.cfg +0 -0
|
@@ -812,8 +812,19 @@ def uncertainty(data,trim=0.3):
|
|
|
812
812
|
return h
|
|
813
813
|
else:
|
|
814
814
|
return 0
|
|
815
|
-
|
|
815
|
+
|
|
816
816
|
def evaluateModelEnsemble(ensemble, inputData):
|
|
817
|
+
responses=[evaluateGPModel(mod, inputData) for mod in ensemble]
|
|
818
|
+
if type(responses[0])==np.ndarray:
|
|
819
|
+
responses=np.transpose(responses)
|
|
820
|
+
predictions=[np.median(res) for res in responses]
|
|
821
|
+
else:
|
|
822
|
+
|
|
823
|
+
predictions=[np.median(responses)]
|
|
824
|
+
|
|
825
|
+
return predictions
|
|
826
|
+
|
|
827
|
+
def evaluateModelEnsembleUncertainty(ensemble, inputData):
|
|
817
828
|
responses=[evaluateGPModel(mod, inputData) for mod in ensemble]
|
|
818
829
|
if type(responses[0])==np.ndarray:
|
|
819
830
|
responses=np.transpose(responses)
|
|
@@ -821,10 +832,10 @@ def evaluateModelEnsemble(ensemble, inputData):
|
|
|
821
832
|
else:
|
|
822
833
|
|
|
823
834
|
uncertainties=[uncertainty(responses,0)]
|
|
824
|
-
|
|
825
835
|
return uncertainties
|
|
836
|
+
|
|
826
837
|
def relativeEnsembleUncertainty(ensemble,inputData):
|
|
827
|
-
output=
|
|
838
|
+
output=evaluateModelEnsembleUncertainty(ensemble,inputData)
|
|
828
839
|
return np.array(output)
|
|
829
840
|
|
|
830
841
|
def createUncertaintyFunc(ensemble):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|