analysistoolbox 2.1.0__tar.gz → 2.1.2__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.
Files changed (125) hide show
  1. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/PKG-INFO +1 -1
  2. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/CreateSLURPDistribution.py +12 -8
  3. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/__init__.py +2 -1
  4. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox.egg-info/PKG-INFO +1 -1
  5. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/setup.py +1 -1
  6. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/LICENSE.md +0 -0
  7. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/README.md +0 -0
  8. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/__init__.py +0 -0
  9. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/calculus/FindDerivative.py +0 -0
  10. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/calculus/FindLimitOfFunction.py +0 -0
  11. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/calculus/FindMinimumSquareLoss.py +0 -0
  12. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/calculus/PlotFunction.py +0 -0
  13. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/calculus/__init__.py +0 -0
  14. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_collection/ExtractTextFromPDF.py +0 -0
  15. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_collection/FetchPDFFromURL.py +0 -0
  16. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_collection/FetchUSShapefile.py +0 -0
  17. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_collection/FetchWebsiteText.py +0 -0
  18. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_collection/GetGoogleSearchResults.py +0 -0
  19. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_collection/GetZipFile.py +0 -0
  20. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_collection/__init__.py +0 -0
  21. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/AddDateNumberColumns.py +0 -0
  22. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/AddLeadingZeros.py +0 -0
  23. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/AddRowCountColumn.py +0 -0
  24. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/AddTPeriodColumn.py +0 -0
  25. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/AddTukeyOutlierColumn.py +0 -0
  26. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/CleanTextColumns.py +0 -0
  27. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/ConductAnomalyDetection.py +0 -0
  28. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/ConductEntityMatching.py +0 -0
  29. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/ConvertOddsToProbability.py +0 -0
  30. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/CountMissingDataByGroup.py +0 -0
  31. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/CreateBinnedColumn.py +0 -0
  32. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/CreateDataOverview.py +0 -0
  33. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/CreateRandomSampleGroups.py +0 -0
  34. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/CreateRareCategoryColumn.py +0 -0
  35. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/CreateStratifiedRandomSampleGroups.py +0 -0
  36. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/GeocodeUSAddresses.py +0 -0
  37. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/ImputeMissingValuesUsingNearestNeighbors.py +0 -0
  38. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/VerifyGranularity.py +0 -0
  39. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/data_processing/__init__.py +0 -0
  40. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/descriptive_analytics/ConductManifoldLearning.py +0 -0
  41. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/descriptive_analytics/ConductPrincipalComponentAnalysis.py +0 -0
  42. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/descriptive_analytics/ConductPropensityScoreMatching.py +0 -0
  43. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/descriptive_analytics/CreateAssociationRules.py +0 -0
  44. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/descriptive_analytics/CreateGaussianMixtureClusters.py +0 -0
  45. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/descriptive_analytics/CreateHierarchicalClusters.py +0 -0
  46. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/descriptive_analytics/CreateKMeansClusters.py +0 -0
  47. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/descriptive_analytics/GenerateEDAWithLIDA.py +0 -0
  48. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/descriptive_analytics/__init__.py +0 -0
  49. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/file_management/ConvertWordDocsToPDF.py +0 -0
  50. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/file_management/CreateCopyOfPDF.py +0 -0
  51. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/file_management/CreateFileTree.py +0 -0
  52. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/file_management/ImportDataFromFolder.py +0 -0
  53. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/file_management/__init__.py +0 -0
  54. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/ChiSquareTestOfIndependence.py +0 -0
  55. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/ChiSquareTestOfIndependenceFromTable.py +0 -0
  56. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/ConductCoxProportionalHazardRegression.py +0 -0
  57. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/ConductLinearRegressionAnalysis.py +0 -0
  58. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/ConductLogisticRegressionAnalysis.py +0 -0
  59. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/ConductSurvivalAnalysis.py +0 -0
  60. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/OneSampleTTest.py +0 -0
  61. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/OneWayANOVA.py +0 -0
  62. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/TTestOfMeanFromStats.py +0 -0
  63. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/TTestOfProportionFromStats.py +0 -0
  64. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/TTestOfTwoMeansFromStats.py +0 -0
  65. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/TwoSampleTTestOfIndependence.py +0 -0
  66. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/TwoSampleTTestPaired.py +0 -0
  67. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/hypothesis_testing/__init__.py +0 -0
  68. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/linear_algebra/CalculateEigenvalues.py +0 -0
  69. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/linear_algebra/ConvertMatrixToRowEchelonForm.py +0 -0
  70. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/linear_algebra/ConvertSystemOfEquationsToMatrix.py +0 -0
  71. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/linear_algebra/PlotVectors.py +0 -0
  72. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/linear_algebra/SolveSystemOfEquations.py +0 -0
  73. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/linear_algebra/VisualizeMatrixAsLinearTransformation.py +0 -0
  74. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/linear_algebra/__init__.py +0 -0
  75. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/llm/SendPromptToAnthropic.py +0 -0
  76. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/llm/SendPromptToChatGPT.py +0 -0
  77. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/llm/__init__.py +0 -0
  78. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/predictive_analytics/CreateARIMAModel.py +0 -0
  79. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/predictive_analytics/CreateBoostedTreeModel.py +0 -0
  80. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/predictive_analytics/CreateDecisionTreeModel.py +0 -0
  81. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/predictive_analytics/CreateLinearRegressionModel.py +0 -0
  82. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/predictive_analytics/CreateLogisticRegressionModel.py +0 -0
  83. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/predictive_analytics/CreateNeuralNetwork_SingleOutcome.py +0 -0
  84. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/predictive_analytics/__init__.py +0 -0
  85. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/prescriptive_analytics/CreateContentBasedRecommender.py +0 -0
  86. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/prescriptive_analytics/__init__.py +0 -0
  87. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/probability/ProbabilityOfAtLeastOne.py +0 -0
  88. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/probability/__init__.py +0 -0
  89. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/CreateMetalogDistribution.py +0 -0
  90. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/CreateMetalogDistributionFromPercentiles.py +0 -0
  91. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/CreateSIPDataframe.py +0 -0
  92. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/SimulateCountOfSuccesses.py +0 -0
  93. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/SimulateCountOutcome.py +0 -0
  94. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/SimulateCountUntilFirstSuccess.py +0 -0
  95. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/SimulateNormallyDistributedOutcome.py +0 -0
  96. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/SimulateTDistributedOutcome.py +0 -0
  97. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/SimulateTimeBetweenEvents.py +0 -0
  98. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/simulations/SimulateTimeUntilNEvents.py +0 -0
  99. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/statistics/CalculateConfidenceIntervalOfMean.py +0 -0
  100. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/statistics/CalculateConfidenceIntervalOfProportion.py +0 -0
  101. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/statistics/__init__.py +0 -0
  102. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/Plot100PercentStackedBarChart.py +0 -0
  103. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotBarChart.py +0 -0
  104. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotBoxWhiskerByGroup.py +0 -0
  105. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotBulletChart.py +0 -0
  106. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotCard.py +0 -0
  107. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotClusteredBarChart.py +0 -0
  108. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotContingencyHeatmap.py +0 -0
  109. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotCorrelationMatrix.py +0 -0
  110. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotDensityByGroup.py +0 -0
  111. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotDotPlot.py +0 -0
  112. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotHeatmap.py +0 -0
  113. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotOverlappingAreaChart.py +0 -0
  114. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotRiskTolerance.py +0 -0
  115. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotScatterplot.py +0 -0
  116. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotSingleVariableCountPlot.py +0 -0
  117. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotSingleVariableHistogram.py +0 -0
  118. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/PlotTimeSeries.py +0 -0
  119. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/RenderTableOne.py +0 -0
  120. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox/visualizations/__init__.py +0 -0
  121. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox.egg-info/SOURCES.txt +0 -0
  122. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox.egg-info/dependency_links.txt +0 -0
  123. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox.egg-info/requires.txt +0 -0
  124. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/analysistoolbox.egg-info/top_level.txt +0 -0
  125. {analysistoolbox-2.1.0 → analysistoolbox-2.1.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: analysistoolbox
3
- Version: 2.1.0
3
+ Version: 2.1.2
4
4
  Summary: A collection tools in Python for data collection and processing, statistics, analytics, and intelligence analysis.
5
5
  Home-page: https://github.com/KyleProtho/AnalysisToolBox/tree/master/analysistoolbox
6
6
  Author: Kyle Protho
@@ -65,25 +65,29 @@ def CreateSLURPDistribution(training_dataframe,
65
65
 
66
66
  # Get the list of mean, lower bound, and upper bound values from pred_interval
67
67
  list_of_values = []
68
- for value in ['mean', 'obs_ci_lower', 'obs_ci_upper']:
68
+ for value in ['obs_ci_lower', 'mean', 'obs_ci_upper']:
69
69
  list_of_values.append(pred_interval[value].values[0])
70
- print("Values before adjustment: ", list_of_values)
70
+ # print("Values before adjustment: ", list_of_values)
71
71
 
72
72
  # If the minimum and maximum values are outside the bounds, set them to the bounds
73
- if lower_bound is not None and list_of_values[1] < lower_bound:
73
+ if lower_bound is not None and list_of_values[0] < lower_bound:
74
74
  list_of_values[1] = float(lower_bound) * 1.00001
75
75
  if upper_bound is not None and list_of_values[2] > upper_bound:
76
76
  list_of_values[2] = float(upper_bound) * 0.99999
77
77
 
78
78
  # If the mean is outside the bounds, slightly above/below the reference bound
79
- if lower_bound is not None and list_of_values[0] < lower_bound:
80
- list_of_values[0] = list_of_values[1] * 1.00001
81
- if upper_bound is not None and list_of_values[0] > upper_bound:
79
+ if lower_bound is not None and list_of_values[1] < lower_bound:
80
+ list_of_values[0] = list_of_values[0] * 1.00001
81
+ if upper_bound is not None and list_of_values[1] > upper_bound:
82
82
  list_of_values[0] = list_of_values[2] * 0.99999
83
- print("Values after adjustment: ", list_of_values)
83
+ # print("Values after adjustment: ", list_of_values)
84
84
 
85
85
  # Set the list of percentiles
86
- list_of_percentiles = [0.5, (1 - prediction_interval) / 2, 1 - (1 - prediction_interval) / 2]
86
+ list_of_percentiles = [
87
+ (1 - prediction_interval) / 2, # Lower bound
88
+ 0.5, # Middle
89
+ 1 - (1 - prediction_interval) / 2 # Upper bound
90
+ ]
87
91
  # print("Percentiles: ", list_of_percentiles)
88
92
 
89
93
  # Use the prediction interval to simulate the prediction distribution
@@ -1,10 +1,11 @@
1
1
  from .CreateMetalogDistributionFromPercentiles import CreateMetalogDistributionFromPercentiles
2
2
  from .CreateMetalogDistribution import CreateMetalogDistribution
3
3
  from .CreateSIPDataframe import CreateSIPDataframe
4
+ from .CreateSLURPDistribution import CreateSLURPDistribution
4
5
  from .SimulateCountOfSuccesses import SimulateCountOfSuccesses
5
6
  from .SimulateCountOutcome import SimulateCountOutcome
6
7
  from .SimulateCountUntilFirstSuccess import SimulateCountUntilFirstSuccess
7
8
  from .SimulateNormallyDistributedOutcome import SimulateNormallyDistributedOutcome
8
9
  from .SimulateTDistributedOutcome import SimulateTDistributedOutcome
9
10
  from .SimulateTimeBetweenEvents import SimulateTimeBetweenEvents
10
- from .SimulateTimeUntilNEvents import SimulateTimeUntilNEvents
11
+ from .SimulateTimeUntilNEvents import SimulateTimeUntilNEvents
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: analysistoolbox
3
- Version: 2.1.0
3
+ Version: 2.1.2
4
4
  Summary: A collection tools in Python for data collection and processing, statistics, analytics, and intelligence analysis.
5
5
  Home-page: https://github.com/KyleProtho/AnalysisToolBox/tree/master/analysistoolbox
6
6
  Author: Kyle Protho
@@ -12,7 +12,7 @@ setup(
12
12
  long_description=long_description,
13
13
  long_description_content_type='text/markdown',
14
14
  url="https://github.com/KyleProtho/AnalysisToolBox/tree/master/analysistoolbox",
15
- version='2.1.0',
15
+ version='2.1.2',
16
16
  author='Kyle Protho',
17
17
  author_email='kyletprotho@gmail.com',
18
18
  license='GNU GPLv3',