Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gedeck committed May 7, 2024
1 parent 219b062 commit 6b66678
Show file tree
Hide file tree
Showing 10 changed files with 306 additions and 290 deletions.
2 changes: 1 addition & 1 deletion IndustrialStatistics/InstallPackages.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"metadata": {},
"outputs": [],
"source": [
"pip install matplotlib numpy pandas scipy statsmodels seaborn pingouin lifelines dtreeviz svglib pwlf pyDOE2 diversipy pylibkriging inspyred"
"pip install matplotlib numpy pandas scipy statsmodels seaborn pingouin lifelines dtreeviz svglib pwlf pyDOE3 diversipy pylibkriging inspyred"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion IndustrialStatistics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ These Python packages are used in the code of _Industrial Statistics_:
- dtreeviz
- svglib
- pwlf
- pyDOE2
- pyDOE3
- diversipy
- pylibkriging
- inspyred
Expand Down
4 changes: 2 additions & 2 deletions IndustrialStatistics/code/Chap005.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,13 @@ def renderDesign(design, mainEffects, to_latex=False):
style = style.format(precision=0)
return style.to_latex(hrules=True, column_format='c'+'r'*(len(columns)-1))

from pyDOE2 import fracfact
from pyDOE3 import fracfact
design = pd.DataFrame(fracfact('A B C ABC'), columns='A B C ABC'.split())

renderDesign(design, 'A B C'.split())

print(renderDesign(design, 'A B C'.split(), to_latex=True))
from pyDOE2 import fracfact
from pyDOE3 import fracfact
# define the generator
generator = 'A B C ABC'
design = pd.DataFrame(fracfact(generator), columns=generator.split())
Expand Down
Loading

0 comments on commit 6b66678

Please sign in to comment.