📜 notebooks and scripts for ai experiments and aws batch jobs.
Project description
📜 notebooks & scripts
📜 notebooks and scripts for ai experiments and aws batch jobs.
pip install notebooks-and-scripts
🔷 scripts 🔷 ukraine-timemap 🇺🇦 🔷 workflow 🔷
scripts
scripts are maintained as legacy and are replaced with @docker eval - <command>
.
also: sagesemseg
.
ukraine-timemap 🇺🇦
ukraine-timemap
ingests the Civilian Harm in Ukraine TimeMap dataset, available through this UI and this API, and generates a geojson
, a QGIS project, and more.
> ukraine_timemap help
ukraine_timemap browse \
[dataset|github]
. browse ukraine-timemap.
ukraine_timemap ingest \
[dryrun,~upload] \
[-|<object-name>] \
[--verbose 1]
. ingest the latest dataset from https://github.com/bellingcat/ukraine-timemap.
example use,
@select ukraine-timemap-$(@@timestamp)
ukraine_timemap ingest - . --verbose 1
@open . QGIS
@publish tar .
download the latest ingested object: ukraine-timemap.tar.gz.
sandbox: ukraine-timemap/sandbox.ipynb.
more: https://arash-kamangir.medium.com/%EF%B8%8F-openai-experiments-93-bf0cee062693
workflow
also home to workflow
, an abstraction to run mixed-type (cpu/gpu/...) DAGs of bash commands on aws batch.
> workflow help
workflow create \
pattern=a-bc-d|hourglass,~upload \
-|<job-name> \
<command-line>
. create a <pattern> workflow.
workflow monitor \
~download,~upload \
.|<job-name>
. monitor workflow.
workflow submit \
~download,dryrun,to=aws_batch|generic|local|localflow,~upload \
.|<job-name>
. submit workflow.
@select - open
workflow create pattern=hourglass .
workflow submit to=aws_batch
@watch - @download
from https://arash-kamangir.medium.com/%EF%B8%8F-openai-experiments-54-e49117dc69ef
a-bc-d 🔗 |
hourglass 🔗 |
map-reduce 🔗 |
---|---|---|
To use on AWS SageMaker replace <plugin-name>
with nbs
and follow these instructions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for notebooks_and_scripts-4.521.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aafb49d799fb843639fc3081674e98967b874a2b7ca335df9b57cdfec2c4101 |
|
MD5 | 071011ec7f4125b97e2818d12588fbe4 |
|
BLAKE2b-256 | 954e3e927070597ef79ad2b9709a9575ee94252de3e26f44774b556be6dcca28 |
Hashes for notebooks_and_scripts-4.521.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4e9e8e9666b8110f3b40bd8f6e42b7245cef248c4e606c9853500f3301684ce |
|
MD5 | c195d44d16249d00f7f0f4608716e51e |
|
BLAKE2b-256 | 27e5e46977e9d39eb5ac75b6f0d63c2bd2095e1a0b1eb3472a464a7ea84b014f |