CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for Testing 18.04.

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download
Project: Testing 18.04
Views: 921
Kernel: Python 3 (system-wide)

Design of Experiments

doepy in python 3 (system-wide)

https://doepy.readthedocs.io/en/latest/#quick-start

from doepy import build
samples = build.space_filling_lhs( { 'Pressure': [40, 55, 70], 'Temperature': [290, 320, 350], 'Flow rate': [0.2, 0.4], 'Time': [5, 11] }, num_samples=20) samples
Pressure had more than two levels. Assigning the end point to the high level. Temperature had more than two levels. Assigning the end point to the high level.
from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt # plot fig = plt.figure(figsize=(12, 8)) ax = fig.add_subplot(111, projection='3d') ax.scatter3D(samples.Pressure, samples.Temperature, samples['Flow rate'], s=50) ax.set_xlabel('Pressure') ax.set_ylabel('Temperature') ax.set_zlabel('Flow rate'); ax.view_init(30, 125) plt.show()
Image in a Jupyter notebook