Skip to main content

A hyperparameter optimizer for MoonLine.

Project description

Space-X

A hyperparameter optimizer for Moonline.

Running

To run Space-X using poetry, use the following command:

$ poetry run python space-x -c <config_file>

Generating Documentation

$ poetry run pdoc --config show_type_annotations=True --html --force space_x/

Working on Documentation

pdoc can be switched into hot-reload mode by appending the following:

$ poetry run pdoc --config show_type_annotations=True --html --force space_x/ --http :

Creating A Configuration File

In keeping with the way MoonLine handles options, they are specified via a configuration file in INI format. This has the added benefit of being able to quickly switch between various configurations simply by pointing it at a different configuration file.

Example Configuration

[MoonLine]
path = moonline-config.ini

[SpaceX]
iterations = 10

[Output]
path = out/
best_tearsheet = tearsheet_best.pdf

[Parameters]
path = params/
name = ParamsA

Sections

MoonLine

Describes the MoonLine configuration to run.

path

The path to the MoonLine file configuration file().

Space-X

Space-X execution options.

iterations

The number of iterations to run. This giverns how many parameter combinations can be checked. More iterations means more space for testing combinations. This is multiplied by the number of jobs if parallel execution is enabled. While the iterations will stay fixed (20 by default), if i.e. 4 worker processes are active, 4 times as many parameters will be explored within the same iteration.

Output

Paths for output artifacts.

path

The path to a directory. If the directory exists, it will be overwritten. This will output sub-directories with MD5 hashes for names containing the output of a specific MoonLine run.

best_tearsheet

The path to a file (PDF). If the file exists, it will be overwritten. This will output a tearsheet in PDF format containing multiple analytical charts to assess the performance of a given strategy. This tearsheet will only be generated for the run with the best parameters.

Parameters

Describes the parameter space to run.

path

The path to the directory containing the parameter file(s).

name

Either the exact filename of a parameter file inside the parameter directory (i.e. crypto_parameters.py) or the class name of a parameter definition.

If given a class name, Space-X will automatically look for and instantiate the given parameter class, so you can freely refactor your parameters and rename their files and it will still be able to pick it up.

If given a filename, only a single parameter class can be contained in the given file. When a class name is given, multiple parameters can be housed in the same file.

Usage

Usage: space-x [OPTIONS] [ARGS]...

Options:
  -c, --config FILE  A file containing Space-X configuration options
                     [required]

  -v, --verbose
  --help             Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

space-x-0.2.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

space_x-0.2.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file space-x-0.2.0.tar.gz.

File metadata

  • Download URL: space-x-0.2.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.8 Linux/5.4.0-48-generic

File hashes

Hashes for space-x-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d96583e9599b48a75c5ba83e9ef9444bd8030d7d41abf4eaf21a7b87a47d7364
MD5 c19a763a12d567ab363136bb2f4a9af3
BLAKE2b-256 734e0ae137baa9b6127aee8f6c7bd2015597742c2c23fcfdbc77948c5da711b2

See more details on using hashes here.

File details

Details for the file space_x-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: space_x-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.8 Linux/5.4.0-48-generic

File hashes

Hashes for space_x-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63c454a6e10b3b10a77bff0112e339f29af2556f9c6634842965adcc2c3d2084
MD5 e67f899be447c3f5e8abfcfa07a05d19
BLAKE2b-256 ac2d871d57f92c610bb0409de5e819b296895f613f43b82cddc361efbb848dd3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page