📜 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 .
latest ingested object: ukraine-timemap.tar.gz, sandbox: ukraine-timemap/sandbox.ipynb.
last build 🔗
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.537.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41363a15fab81336dcb2d41334e33e21d86fccd3e8acf9de096e5b2cb491bc8f |
|
MD5 | 9fd0f14b58cf705cefd465d2df627130 |
|
BLAKE2b-256 | ffdb2a8cce38797a0bc901dc01d2a46d10fbe303805d8a5e8fc840f53bc5f65b |
Hashes for notebooks_and_scripts-4.537.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1873b5ace271e9598352059327427aa70f7bcb57acd0959de177c83c44bf67c0 |
|
MD5 | a7d96e5fbfdb12b53531b1de306d1dcc |
|
BLAKE2b-256 | 3fc8ce8385863177dad9bb3a537d509b18c41daf06b18f828be1a4ecb2ef6d17 |