Skip to content

Commit

Permalink
increment version to 0.4.1, updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alphasentaurii committed Jul 3, 2023
1 parent 2e52c9e commit 5a2631a
Show file tree
Hide file tree
Showing 19 changed files with 165 additions and 54 deletions.
24 changes: 24 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
0.4.1 (2023-07-03)
==================

- bugfix set dataframe columns with bracket instead of curly bracket (resolves pandas>1.4 incompatibility)

- remove pandas pinned version

- improved log handling with spacekit/logger module

- added predict script for hst cal skope

- updated docker dashboard templates

- enhancements for loading pretrained models

- pytest configuration updates and new tests added

- plugin for external test data

- updated repo url badges

- updated documentation


0.4.0 (2022-12-08)
==================

Expand Down
2 changes: 1 addition & 1 deletion docker/images/dashboard_image/.env-template
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ VERSION="test"
TAG="dash-${APP}-${VERSION}"
DOCKER_REPO="alphasentaurii/spacekit"
DOCKER_IMAGE="${DOCKER_REPO}:${TAG}"
SPACEKIT_VERSION="0.4.0"
SPACEKIT_VERSION="0.4.1"
SRC="git" # pkg, s3, git, file
COLLECTION="calcloud" # bucketname, repo url, or local path
DATASETS="2022-02-14,2021-11-04,2021-10-28"
Expand Down
2 changes: 1 addition & 1 deletion docker/images/dashboard_image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ENV SPACEKIT_DATA=/home/developer
ENV TF_CPP_MIN_LOG_LEVEL=2
ARG PFX=archive
ENV PFX=${PFX}
ARG SPACEKIT_VERSION=0.4.0
ARG SPACEKIT_VERSION=0.4.1
ENV SPACEKIT_VERSION=${SPACEKIT_VERSION}
ARG SRC
ARG COLLECTION
Expand Down
2 changes: 1 addition & 1 deletion docker/images/dashboard_image/templates/aws/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ VERSION="aws"
TAG="dash-${APP}-${VERSION}"
DOCKER_REPO="alphasentaurii/spacekit"
DOCKER_IMAGE="${DOCKER_REPO}:${TAG}"
SPACEKIT_VERSION="0.4.0"
SPACEKIT_VERSION="0.4.1"
SRC="s3" # pkg, s3, git, file
COLLECTION="" # bucketname, repo url, or local path
DATASETS="2022-02-14-1644848448,2021-11-04-1636048291,2021-10-28-1635457222"
Expand Down
2 changes: 1 addition & 1 deletion docker/images/dashboard_image/templates/dev/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ VERSION="dev"
TAG="dash-${APP}-${VERSION}"
DOCKER_REPO="alphasentaurii/spacekit"
DOCKER_IMAGE="${DOCKER_REPO}:${TAG}"
SPACEKIT_VERSION="0.4.0"
SPACEKIT_VERSION="0.4.1"
SRC="git" # pkg, s3, git, file
COLLECTION="calcloud" # bucketname, repo url, or local path
DATASETS="2022-02-14,2021-11-04,2021-10-28"
Expand Down
2 changes: 1 addition & 1 deletion docker/images/dashboard_image/templates/latest/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ VERSION="latest"
TAG="dash-${APP}-${VERSION}"
DOCKER_REPO="alphasentaurii/spacekit"
DOCKER_IMAGE="${DOCKER_REPO}:${TAG}"
SPACEKIT_VERSION="0.4.0"
SPACEKIT_VERSION="0.4.1"
SRC="git" # pkg, s3, git, file
COLLECTION="calcloud" # bucketname, repo url, or local path
DATASETS="2022-02-14,2021-11-04,2021-10-28"
Expand Down
12 changes: 12 additions & 0 deletions docs/source/builder/blueprints.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _blueprint:

***************************
spacekit.builder.blueprints
***************************

.. currentmodule:: spacekit.builder.blueprints

.. autoclass:: Blueprint
:members:
:undoc-members:
:show-inheritance:
30 changes: 30 additions & 0 deletions docs/source/datasets/beam.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.. _beam:

**********************
spacekit.datasets.beam
**********************

.. currentmodule:: spacekit.datasets.beam

.. autofunction:: download

Retrieve dataset archive (.zip) files from the web, an s3 bucket, or local disk.
This script is primarily intended as a retrieval and extraction step before launching spacekit.dashboard
For more customized control of dataset retrieval (such as your own), use the spacekit.extractor.scrape module.

Examples:
"datasets": if set, chooses specific archive dataset filenames to retrieve and extract

src: "git" - Fetch and extract from one of the spacekit data archives:
archive: name of collection (see ``spacekit.datasets.meta``)
download(scrape="git:calcloud")
download(scrape="git:svm")

src: "file" - Fetch and extract from path on local disk
archive: path
download(scrape="file:another/path/to/data)

src: "s3" - Fetch and extract from an S3 bucket on AWS
archive: bucketname
"datasets" - string of S3 archive file basenames separated by comma (without the .zip or .tgz suffix)
download(scrape="s3:mybucketname", "2021-11-04-1636048291,2021-10-28-1635457222,2021-08-22-1629663047")
3 changes: 0 additions & 3 deletions docs/source/datasets/hst_cal.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/source/datasets/hst_svm.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/source/datasets/k2_exo.rst

This file was deleted.

16 changes: 13 additions & 3 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Builder
:maxdepth: 1

architect <builder/architect.rst>
blueprints <builder/blueprints.rst>


Dashboard
Expand All @@ -46,9 +47,7 @@ Datasets
.. toctree::
:maxdepth: 1

hst_cal <datasets/hst_cal.rst>
hst_svm <datasets/hst_svm.rst>
k2_exo <datasets/k2_exo.rst>
beam <datasets/beam.rst>


Extractor
Expand All @@ -72,13 +71,24 @@ Generator
draw <generator/draw.rst>


Logger
------

.. toctree::
:maxdepth: 1

log <logger/log.rst>


Preprocessor
------------

.. toctree::
:maxdepth: 1

encode <preprocessor/encode.rst>
ingest <preprocessor/ingest.rst>
prep <preprocessor/prep.rst>
scrub <preprocessor/scrub.rst>
transform <preprocessor/transform.rst>

Expand Down
8 changes: 8 additions & 0 deletions docs/source/logger/log.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. _log:

*******************
spacekit.logger.log
*******************

.. automodule:: spacekit.logger.log
:members:
8 changes: 8 additions & 0 deletions docs/source/preprocessor/ingest.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. _ingest:

****************************
spacekit.preprocessor.ingest
****************************

.. automodule:: spacekit.preprocessor.ingest
:members:
8 changes: 8 additions & 0 deletions docs/source/preprocessor/prep.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. _prep:

****************************
spacekit.preprocessor.prep
****************************

.. automodule:: spacekit.preprocessor.prep
:members:
7 changes: 7 additions & 0 deletions docs/source/skopes/hst/cal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Calcloud Job Predict Data Dictionary
------------------------------------


.. toctree::
:maxdepth: 2

predict <cal/predict.rst>
train <cal/train.rst>


DETECTOR
--------

Expand Down
8 changes: 8 additions & 0 deletions docs/source/skopes/hst/cal/predict.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*******************************
spacekit.skopes.hst.svm.predict
*******************************

.. currentmodule:: spacekit.skopes.hst.cal.predict

.. automodule:: spacekit.skopes.hst.cal.predict
:members:
77 changes: 41 additions & 36 deletions docs/source/skopes/hst/cal/train.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,42 +33,47 @@ python -m spacekit.skopes.hst.cal.train data/2021-11-04-1636048291
using this script produces a specific file output structure which can optionally be compressed and uploaded to s3.
The dataset used for training is updated with model predictions and can optionally be stored in a dynamodb table.

|- data/2021-11-04-1636048291
|- data
|- latest.csv
|- models
|- tx_data.json
|- mem_clf
|- {saved model binaries}
|- mem_reg
|- {saved model binaries}
|- wall_reg
|- {saved model binaries}
|- results
|- mem_bin {standard classifier filenames}
|- acc_loss
|- cmx
|- cmx_norm
|- fnfp
|- history
|- report
|- roc_auc
|- test_idx
|- y_onehot
|- y_pred
|- y_scores
|- memory {standard regressor filenames}
|- history
|- loss
|- predictions
|- residuals
|- test_idx
|- wallclock {standard regressor filenames}
|- history
|- loss
|- predictions
|- residuals
|- test_idx

.. code-block:: python
"""
|- data/2021-11-04-1636048291
|- data
|- latest.csv
|- models
|- tx_data.json
|- mem_clf
|- {saved model binaries}
|- mem_reg
|- {saved model binaries}
|- wall_reg
|- {saved model binaries}
|- results
|- mem_bin {standard classifier filenames}
|- acc_loss
|- cmx
|- cmx_norm
|- fnfp
|- history
|- report
|- roc_auc
|- test_idx
|- y_onehot
|- y_pred
|- y_scores
|- memory {standard regressor filenames}
|- history
|- loss
|- predictions
|- residuals
|- test_idx
|- wallclock {standard regressor filenames}
|- history
|- loss
|- predictions
|- residuals
|- test_idx
"""
examples:

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = spacekit
version = 0.4.0
version = 0.4.1
author = Ru Keïn
author_email = [email protected]
license = MIT
Expand Down

0 comments on commit 5a2631a

Please sign in to comment.