https://github.com/trustbit/logisim
Samples for the Logistic Simulation blog post series
https://github.com/trustbit/logisim
Last synced: about 1 year ago
JSON representation
Samples for the Logistic Simulation blog post series
- Host: GitHub
- URL: https://github.com/trustbit/logisim
- Owner: trustbit
- License: mit
- Created: 2022-08-08T12:29:04.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T13:25:59.000Z (almost 4 years ago)
- Last Synced: 2024-04-16T22:24:56.815Z (about 2 years ago)
- Language: Python
- Size: 57.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Logistic Simulator Blog Post series
## Summary
This repository accompanies blog post series about building logistic simulator.
# Quickstart
To set up this project, make sure you have a python and virtualenv installed. Then:
```bash
# create a new virtual environment
# this environment will keep this project and its depedencies safely isolated
virtualenv -p `which python3` venv
# activate this virtual environment in the terminal
source venv/bin/activate
# install python package into this environment in editable mode
# this leverages remove_brackets_and_call_setup.py package format and installs
# we include code for both prediction and training
pip install --editable '.'
```
From here you could open the folder in PyChart, VS Code or run individual steps.
```bash
logisim2 --origin Steamdrift --dest Leverstorm
# prints:
# 0.00h DEPART Steamdrift
#14.26h ARRIVE Cogburg
#24.81h ARRIVE Irondale
#31.88h ARRIVE Leverstorm
logisim3 --origin Steamdrift --dest Leverstorm --test_ratio 0.1
# prints:
# Mean squared error is 46.7742
# 0.00h DEPART Steamdrift
#17.62h ARRIVE Cogburg
#31.28h ARRIVE Copperhold
#38.83h ARRIVE Leverstorm
```