Skip to main content

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.

Metadata

Release files for space-x 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for space-x 0.3.2
File Size Uploaded
space-x-0.3.2.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for space-x 0.3.2
File Interpreter ABI Platform
space_x-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / space-x-0.3.2.tar.gz

Download URL space-x-0.3.2.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
00d2521faf3e16364819ae706a0a51f83824ec871e713ba9d78040645ad5b69c
BLAKE2b-256 checksum
How to use checksums
5f9c602e917e0b3a618660397a6cb71a3c4c63d0a5678e452bb70e16b3b71138
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.10 Linux/5.4.0-72-generic

Release files / space_x-0.3.2-py3-none-any.whl

Download URL space_x-0.3.2-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b3b2367ab476833d43991282538635f3ce38922fa7673dc43a387012446b516
BLAKE2b-256 checksum
How to use checksums
b33eaf1d50635a2810616873ac7bf96f8a47c271ad1f6324cd6e16c2cadb365d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.10 Linux/5.4.0-72-generic

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page