update
This commit is contained in:
parent
06de968a60
commit
9a7af89691
|
|
@ -9,6 +9,7 @@ results
|
||||||
*.csv
|
*.csv
|
||||||
*.txt
|
*.txt
|
||||||
simulations/.ipynb_checkpoints
|
simulations/.ipynb_checkpoints
|
||||||
|
dist/SimCAD-0.1.tar.gz
|
||||||
|
|
||||||
build
|
build
|
||||||
SimCAD.egg-info
|
SimCAD.egg-info
|
||||||
15
README.md
15
README.md
|
|
@ -19,7 +19,7 @@ A/B testing policies, monte carlo analysis and other common numerical methods is
|
||||||
**1. Install Dependencies:**
|
**1. Install Dependencies:**
|
||||||
```bash
|
```bash
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install -e .
|
python3 setup.py sdist bdist_wheel
|
||||||
```
|
```
|
||||||
|
|
||||||
**2. Configure Simulation:**
|
**2. Configure Simulation:**
|
||||||
|
|
@ -33,25 +33,19 @@ Examples:
|
||||||
**3. Import SimCAD & Run Simulation:**
|
**3. Import SimCAD & Run Simulation:**
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
`/demos/sim_test.py` or `test.ipynb`
|
`/simulations/sim_test.py` or `/simulations/test.ipynb`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
from tabulate import tabulate
|
from tabulate import tabulate
|
||||||
|
|
||||||
|
# The following imports NEED to be in the exact order
|
||||||
# The following imports NEED to be in the exact same order
|
|
||||||
|
|
||||||
from SimCAD.engine import ExecutionMode, ExecutionContext, Executor
|
from SimCAD.engine import ExecutionMode, ExecutionContext, Executor
|
||||||
from simulations.validation import config1, config2
|
from validation import config1, config2
|
||||||
from SimCAD import configs
|
from SimCAD import configs
|
||||||
|
|
||||||
|
|
||||||
# ToDo: pass ExecutionContext with execution method as ExecutionContext input
|
|
||||||
|
|
||||||
exec_mode = ExecutionMode()
|
exec_mode = ExecutionMode()
|
||||||
|
|
||||||
|
|
||||||
print("Simulation Execution 1")
|
print("Simulation Execution 1")
|
||||||
print()
|
print()
|
||||||
first_config = [configs[0]] # from config1
|
first_config = [configs[0]] # from config1
|
||||||
|
|
@ -59,7 +53,6 @@ single_proc_ctx = ExecutionContext(context=exec_mode.single_proc)
|
||||||
run1 = Executor(exec_context=single_proc_ctx, configs=first_config)
|
run1 = Executor(exec_context=single_proc_ctx, configs=first_config)
|
||||||
run1_raw_result, tensor_field = run1.main()
|
run1_raw_result, tensor_field = run1.main()
|
||||||
result = pd.DataFrame(run1_raw_result)
|
result = pd.DataFrame(run1_raw_result)
|
||||||
|
|
||||||
print()
|
print()
|
||||||
print("Tensor Field:")
|
print("Tensor Field:")
|
||||||
print(tabulate(tensor_field, headers='keys', tablefmt='psql'))
|
print(tabulate(tensor_field, headers='keys', tablefmt='psql'))
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -3,12 +3,11 @@ from tabulate import tabulate
|
||||||
|
|
||||||
# The following imports NEED to be in the exact order
|
# The following imports NEED to be in the exact order
|
||||||
from SimCAD.engine import ExecutionMode, ExecutionContext, Executor
|
from SimCAD.engine import ExecutionMode, ExecutionContext, Executor
|
||||||
from simulations.validation import config1, config2
|
from validation import config1, config2
|
||||||
from SimCAD import configs
|
from SimCAD import configs
|
||||||
|
|
||||||
exec_mode = ExecutionMode()
|
exec_mode = ExecutionMode()
|
||||||
|
|
||||||
|
|
||||||
print("Simulation Execution 1")
|
print("Simulation Execution 1")
|
||||||
print()
|
print()
|
||||||
first_config = [configs[0]] # from config1
|
first_config = [configs[0]] # from config1
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"import pandas as pd\n",
|
"import pandas as pd\n",
|
||||||
|
"from tabulate import tabulate\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# The following imports NEED to be in the exact order\n",
|
"# The following imports NEED to be in the exact order\n",
|
||||||
"from SimCAD.engine import ExecutionMode, ExecutionContext, Executor\n",
|
"from SimCAD.engine import ExecutionMode, ExecutionContext, Executor\n",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue